#anrighiwr_api
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1352295478800154624
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- anrighiwr_api, 21 hours ago, 28 messages
Hello there
Are you trying to create this Subscription later after your customer is off session?
Or is this going to happen immediately while they are still in your flow?
immediately
Okay then you don't want to be creating a SetupIntent at all here.
we need to create two different subscriptions in a row, hence we want to use a setup intent
The better route is to just use the PaymentIntent from the initial Subscription to collect the payment method.
Then once successful you generate the second Subscription using that PaymentMethod.
we tried that here: https://discord.com/channels/841573134531821608/1351958930577686661
Ah okay it looks like you are using the 3184 test card
Which will always require 3DS: https://docs.stripe.com/testing#authentication-and-setup
You want to use the 4000002500003155 test card to test if it has been correctly set up initially to then be used again without 3DS
That PaymentMethod was not successfully set up initially.
Ah wait it was with a SetupIntent
I was looking at the other Subscription
Which is what I was saying before... would recommend not using a SetupIntent at all here.
That said, you are confirming the PaymentIntent here server-side
Without passing off_session: true
Let's pause.
What you really want to do, if you already have the PaymentMethod, is you want to create the Subscription passing off_session: true: https://docs.stripe.com/api/subscriptions/create#create_subscription-off_session
And, you should use payment_behavior: 'allow_incomplete'
That will immediately attempt to charge that PaymentMethod.
If it is properly set up, and the issuer doesn't force 3DS (which they can always do though is extremely rare) then the initial payment will be immediately successful.
So create a new Subscription and pass both of those parameters
The 3155 test card does still prompt 3DS for on-session as it indicates in the docs: https://docs.stripe.com/testing#authentication-and-setup
However, on-session payments with this card always require authentication.
This is why you still saw 3DS requested with that test card.
is there a test card that should work?
You are using the proper test card already.
If you want the 3DS exemption then you should be marking these Subscriptions as off_session
You are still confirming the PaymentIntent: https://dashboard.stripe.com/test/logs/req_bQeR6lS4hye25M
Oh
And you still have the 3184 PaymentMethod set as the default on the Customer
Yay!