emi
emi

Reputation: 87

Stripe Recurring payments with In App Wallet

I have a question that I'd like to hear your opinion how would you go about solving this.

The client has recurring monthly payment packages available, and he'd like to setup payment through the card or via wallet in app (if you have sufficient funds available)

So you can deposit $100 into the app once and subscribe to the package that costs eg. $50. 2 months it would subtract from the in app balance the third time once you don't have enough in there it would charge directly to the bank.

Do you have any idea how to handle this? I didn't find any webhooks triggering prior to subscription payment processing to decide whether to continue or stop?

Upvotes: 0

Views: 174

Answers (1)

RyanM
RyanM

Reputation: 2960

Based on your comment response, I suspect your best bet is to use a webhook endpoint.

I would be listening to the events around payment_intent and invoice objects. Then, on your server, you keep track of whether they have a remaining balance after each transaction and configure their next subscription charge based on whether they have another $50 in their account or not.

Upvotes: 2

Related Questions