Discussions

Ask a Question
Back to All

Issues with Integrating PayMongo API for Subscription Payments

Hello everyone,

I’m currently working on integrating PayMongo’s API for handling subscription payments on my platform, but I’ve run into a specific issue I hope someone here can help with. level devil

I’m using the create_subscription endpoint to set up recurring payments, but I’m not sure how to properly handle cases where a subscription fails due to an expired card or insufficient funds. Is there a way to programmatically detect such issues and automatically retry the payment without requiring manual intervention from the customer? Also, how do I effectively manage webhooks for subscription status updates, especially for failed payments or cancellations?

Any insights on these questions would be greatly appreciated! Thanks in advance for your help!