#yoni_checkout-india

1 messages ¡ Page 1 of 1 (latest)

warm egretBOT
#

👋 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/1225017930224242689

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

real archBOT
river stump
#

Hi, let me help you with this.

real archBOT
frigid sky
#

yoni_checkout-india

#

@dusky wraith unfortunately this is not something you can control directly through Checkout at the moment unless you directly start the Subscription from Checkout itself

dusky wraith
#

So if I want to attach a card from India I can't use checkout sessions?

frigid sky
#

not if you want to then use it for off-session payments. You will first have to get the customer's approval

dusky wraith
#

I don't want to use it for off-session

frigid sky
dusky wraith
#

But I can't set it for on-session using the checkout session

#

Also, all the test cards for India, also in the https://docs.stripe.com/india-recurring-payments page, worked when I attached them with my current flow (which uses checkout session). Is there a test card that reproduces a similar kind of failure when tried to complete the setup intent?

frigid sky
#

I'm really sorry I'm struggling to follow you at the moment. India comes with really strict rules around using cards for subscriptions. You can't just collect one card with Checkout and days later do something with it.
So I would recommend carefully reading the doc I shared above first to better understand how all of this works and then map that to what you are trying to do exactly

dusky wraith
#

I just want to collect the card, but then allow the users to pay with it later on - using an on-session payment. I don't actually need to use if for a subscription. I just don't want the user to have to input a credit card every time

frigid sky
#

Okay so what is the exact issue?

dusky wraith
#

A. I wanted to see if I can setup a card for on-session payments using checkout sessions. Seems like the answer is no.
B. I can't find a test card that reproduces the failure my customer experienced when creating a setup intent.

frigid sky
#

Why would you use a SetupIntent if the goal is to use the card on session in the future though, that's the part that I'm really confused about

dusky wraith
#

Basically so the user can use that card later on without inputting the details again and again.

frigid sky
#

That doesn't really make sense to me right now I'm sorry. I think it might be a vocabulary issue.

#

Monday customer enters card details. Wednesday customer comes back to your app sees their card 4242 and pays with it and you use the pm_123456 to confirm the PaymentIntent.

dusky wraith
#

You mean the proper option would be using a payment intent and save the card for future usage?

frigid sky
#

what's not working in that flow? Can you give a detailed reproduction with a clear summary and all the details in one message? What exact error are you getting?

dusky wraith
#

Right now our flow is:

  1. User gets to a checkout page.
  2. They never input CC details before.
  3. They can't complete the transaction, and are directed to add a payment method.
  4. They input the CC details using a checkout session in mode = setup. This is saved on their Stripe customer. The only option to save the card is for usage of off_session.
  5. They return to the checkout page, and we complete a payment intent using the method that was created in the previous step.

It sounds like I'll need to change the flow to:

  1. User gets to a checkout page.
  2. If payment method exists, use it to create a payment intent.
  3. If no payment method exists, create a checkout session in mode = payment, and save the card for future usage of on_session.
frigid sky
#

They return to the checkout page, and we complete a payment intent using the method that was created in the previous step.
when is that happening? Like right after or days later?

dusky wraith
#

Both are possible, but the user performs the transaction on session in each case

frigid sky
#

okay but if it's right after you definitely should never do this and instead accept the payment via Checkout directly

dusky wraith
#

Ok, and after happens for the first time, I can reuse the created payment method for additional on session transactions right?

frigid sky
#

yes it should work because it's on session and so we can request approval each time usually via 3DS

dusky wraith
#

Ok, and if they want to switch a card, do it through a new checkout session in payment mode?

frigid sky
#

yes

dusky wraith
#

Ok, thanks. Will look into changing our flow to this

frigid sky
#

awesome!

dusky wraith
#

Is there a test card in India I can use that fails when trying to setup for future off session usage? So I can ensure the new flow works properly

frigid sky
#

no I don't know of a specific one sorry

dusky wraith
#

Do you think a relevant test card can be added? Will Stripe support be able to do so?