#Suren-subs
1 messages ยท Page 1 of 1 (latest)
Hello! Can you rephrase your questions? I don't completely understand what you're asking
I just want to make it so that the user can pay himself after an unsuccessful payment
subscriptions
for example, at the end of the month there are not enough funds on the card
and the subscription cannot be updated
after that, I want to make sure that as soon as the user refills his balance, he manually pays
I of course made it so that stripe tried to do it on its own, but I still need to do it manually
Ah, gotcha - so you just want to build a flow into your integration that would a user to come back and pay for a subscription after updating payment details?
after a successful subscription to the plan of the month!.
one month later the card has no balance
and for example after 2 days
the user has replenished the balance
and then I don't want to wait for automatic stripe charging
but instead I want to repeat the payment by clicking the button
All you'd have to do is reconfirm the underlying Payment Intent again with their payment method to re-attempt payment
You can find the payment intent you need to pay at subscription.latest_invoice.payment_intent
yes, but I don't understand how to get and re-pay for subscriptions when the user clicks
Are you asking how to know which subscription needs to be repaid?
I can find out, but I do not understand how to pay for a specific subscription after a failed payment
As I said before - if you know the Subscription ID all you need to do is confirm it's latest Payment Intent (found at subscription.latest_invoice.payment_intent) with the Payment Method you want to pay with. You can read more about these flows here (https://stripe.com/docs/billing/subscriptions/overview#requires-payment-method)
You will want to expand that property when retrieving the Invoice https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
When retrieving the subscription
if I do so, will it be right?
the first one only
Does that give you an error or are you saying it it still not expanding?
Can you send me the text of the entire call?
Interesting. That should work. Testing myself now
If you retrieve the invoice separately and expand the payment_intent property does it show up?
to be honest, I haven't tried it yet, I'll try now
Interesting. Expanding that property on my subscription creation call works for me
Can you send me the request ID (req_123) of the creation request where that expansion did not work?
the extension does not work for me at all
nowhere
is there a workaround?
for example get payment intent via invoice id
Can you send me the request Id so I can look in to this?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I understood everything already
you really helped me a lot
I really appreciate your work
thank you very much
Of course, happy to help