#anrighiwr_api

1 messages ¡ Page 1 of 1 (latest)

sour urchinBOT
#

👋 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.

neat spruce
#

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?

languid ledge
#

immediately

neat spruce
#

Okay then you don't want to be creating a SetupIntent at all here.

languid ledge
#

we need to create two different subscriptions in a row, hence we want to use a setup intent

neat spruce
#

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.

languid ledge
neat spruce
#

Ah okay it looks like you are using the 3184 test card

#

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

languid ledge
#

req_3ZTyucGcH6JeVG

#

this is with 3155 test card, not working anyway

neat spruce
#

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.

#

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

languid ledge
#

is there a test card that should work?

neat spruce
#

You are using the proper test card already.

#

If you want the 3DS exemption then you should be marking these Subscriptions as off_session

languid ledge
#

req_rJF2jzMfG4yx7K

#

not working

neat spruce
#

Oh

#

And you still have the 3184 PaymentMethod set as the default on the Customer

languid ledge
#

thank you

#

that was the problem

#

we were missing default_payment_method

neat spruce
#

Yay!