How do I automate the offline payments management using Chargebee's APIs?
Problem Statement
You want to know how to automate offline payment management using Chargebee's APIs.
Solution
Here's the workflow you can implement:
- Configure webhooks in Chargebee.
- Once this is done, you'll receive an "invoice_generated" webhook when an invoice is generated on your site.
- Collect the invoice payment outside Chargebee.
- Once the charge is collected, call the record an invoice payment API. This will move the invoice status to PAID.
So in this case, Chargebee and your gateway would function as separate entities, brought to work together using your API integration.