#mysterious_pony_85112
1 messages · Page 1 of 1 (latest)
do you have a request ID req_xxx associated with this error?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
that would help yes, if you pasted the ID here
req_Psj5zgGpMcsgid
thanks!
I did just try again and same issue as you can see
this is the new id if it helps
req_8ltX2jGEqV3IrU
if you look at your API logs what's happening is
- you create the PaymentMethod
- you use a SetupIntent to setup the PaymentMethod and attach it to a customer
- the SetupIntent requires action (3D Secure)
- you do not do anything with that and don't make the customer complete it
- you try to just create the Subscription, which fails because the SetupIntent never finished and never attached the PaymentMethod to the customer.
Do you know why it works the first time and not the second time?
not really without looking at an example. Maybe the times it works is when 3D Secure is not required?
how can i show you an example?
but overall your code seems to have problems if you are trying to create this Subscription immediately without actually completing the action so it's likely broken
is it possible to have a zoom call or something?
no.
a request ID maybe of a time where it worked?
okay will send this
but like I said it seems to me like your overall approach is broken. Have you run this code in test mode using a card like 4000000000003220 that always requires 3D Secure? https://stripe.com/docs/testing#regulatory-cards
well in that case you manually attached the card to the customer before creating the Subscription : https://dashboard.stripe.com/logs/req_FQU1kqQLsdG1e6
which you did not do in the other case, so maybe you have a bug and the code for doing that is not always happening.
But the thing is - it works on my developer in india there computer with cards able to cancel and renew etc
its just mine as i am in london maybe?
Can i give you login dtails to my stripe?
and to the website for you to try?
no
this is overall you need to work with your developer to debug and you can use test mode API keys and test cards to work through it!
Okay is there anything else you suggest?
my main suggestion is to extensively test in test mode and replicate the issue there, and start from that point
OKay thanks
Do you have a generic code we can use
that everyone may use?
thanks so much for your help!
Hi, my colleague had to step away. What code are you looking for exactly?