-
Couldn't load subscription status.
- Fork 17
docs: add comprehensive Bizao integration guide #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Complete documentation for Bizao mobile money adapter including setup, code examples, error handling, testing, and troubleshooting guide. Closes #[43]
|
Great work @Nel4Nelson ! |
|
You @Wgoeh @Einswilli can preview the rendered documentation here: https://github.com/Nel4Nelson/EasySwitch/blob/master/docs/integrations/bizao.md GitHub will automatically render the markdown when you view the file. |
| # Under development | ||
| # Bizao Integration with EasySwitch | ||
|
|
||
| ## Table of Contents |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need Table of contents section since it's auto generated by mkdocs.
| client = EasySwitch.from_dict(config) | ||
| ``` | ||
|
|
||
| ### Alternative Configuration Methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just reference the configuration part here.
| EASYSWITCH_BIZAO_TIMEOUT=60 | ||
|
|
||
| # Development credentials | ||
| EASYSWITCH_BIZAO_DEV_CLIENT_ID=your_dev_client_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All Extra attributes must have _X_ in their names.
Example
EASYSWITCH_BIZAO_DEV_CLIENT_SECRET must be EASYSWITCH_BIZAO_X_DEV_CLIENT_SECRET
that indicates to the env config loader what attribute goes to a provider extra configs (as in the json config)
|
|
||
| > **Note**: `cancel_transaction()`, `refund()`, and `get_transaction_detail()` are not supported by Bizao. See [Bizao Limitations](#bizao-limitations) for alternatives. | ||
| ### Configuration Methods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just reference the configuration section.
|
|
||
| > **Important**: `parse_webhook()` automatically calls `validate_webhook()` internally, so you don't need to validate separately when using `parse_webhook()`. | ||
| #### Webhook Configuration with EasySwitch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can split this example, so each part can have its comment and explanations.
| 2. **Support Contact**: Contact Bizao support team | ||
| 3. **Business Logic**: Track refunds in your system separately | ||
|
|
||
| ## Payment Flow Diagram |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to have this ad svg or png image.
| 8. Bizao sends webhook notification to your callback URL | ||
| 9. Your app processes webhook and confirms payment to customer | ||
|
|
||
| ## Practical Integration Examples |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'd like if you can move this examples to a separate file under docs/examples/bizao.md then reference it here.
Good job!
Complete documentation for Bizao mobile money adapter including setup, code examples, error handling, testing, and troubleshooting guide.
Closes #[43]