#yoni_checkout-india
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/1225017930224242689
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
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
So if I want to attach a card from India I can't use checkout sessions?
not if you want to then use it for off-session payments. You will first have to get the customer's approval
I don't want to use it for off-session
you can read https://docs.stripe.com/india-recurring-payments for more details but this can't be controlled via Checkout
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?
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
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
Okay so what is the exact issue?
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.
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
Basically so the user can use that card later on without inputting the details again and again.
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.
You mean the proper option would be using a payment intent and save the card for future usage?
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?
Right now our flow is:
- User gets to a checkout page.
- They never input CC details before.
- They can't complete the transaction, and are directed to add a payment method.
- 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.
- 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:
- User gets to a checkout page.
- If payment method exists, use it to create a payment intent.
- If no payment method exists, create a checkout session in mode = payment, and save the card for future usage of on_session.
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?
Both are possible, but the user performs the transaction on session in each case
okay but if it's right after you definitely should never do this and instead accept the payment via Checkout directly
Ok, and after happens for the first time, I can reuse the created payment method for additional on session transactions right?
yes it should work because it's on session and so we can request approval each time usually via 3DS
Ok, and if they want to switch a card, do it through a new checkout session in payment mode?
yes
Ok, thanks. Will look into changing our flow to this
awesome!
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
no I don't know of a specific one sorry
Do you think a relevant test card can be added? Will Stripe support be able to do so?