#callmarl - retry payment
1 messages ยท Page 1 of 1 (latest)
Hey there, what is the error you're encountering?
DO you have a request ID as an example of this I can look at?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
eg req_123
req_oMp2QesikIBnjl
The problem is the looking view check for the status requires_action
if intent.status == "requires_action" :
# Return 3Dsec template
return render(request, self.secure_template)
But it's look the status is requires_payment_method
Hello ๐
Taking over for synthrider here
Give me a moment to catch up on the thread ๐
No problem
So it seems like the card was declined
Can you try using a different card?
It's in test mode with : 4000000000003063
It's to test the 3Dsecure behaviour
Objective is :
At first to trying to pay in backend task with the default card (in this step paiement should failed)
Then retrieve the failed invoice in user account to pay it with default user card (the manual retry should ask for 3Dsec and succeed)
The problem is in stripe paiementIntent i'm giving the id card_1KZCmDHCUoSCLMBk0ttk7Duf but the status returned by the api is requires_payment_method wherease I expect requires_action
Ah I see.
Let me take a look
Ok thank you
Oh I just solve it I forgot the rule off_session
return stripe.PaymentIntent.confirm(
s_subscription.latest_invoice.payment_intent.id,
payment_method = s_subscription.default_payment_method,
off_session = False,
setup_future_usage = "off_session"
)
Thank you
Oh I missed that ๐ฎโ๐จ
Glad that you were able to figure it out ๐