#vaibhavkhush
1 messages ยท Page 1 of 1 (latest)
I invite you to check this guide:
https://stripe.com/docs/india-recurring-payments
i have read this but nothing cleared
Creating Customer
Then for 3ds charge 1 rupee from customer by payment Intent then refund it
Creating subscription with that payment Id
then confirming with customer and sending invoice
check my flow
are you online ?
What is not clear exatly? and are you facing any particular issue ?
about the subscription flow
for 3ds i am charging user 1rs and refunding back is that correct
just tell me right flow don't give me link of documentation
What is the question here? can you clarify/share more details please?
i am creating subscription model in stripe for Indian payment it is necessary to do 3ds authentication so first I charge 1 rupees to user then refund that after card is saved i create subscription with that payment id and it provide invoice url to confirm payment after confirming payment get successfull
is that right way to create subscription in stripe with 3ds
Please be patient, we are monitoring all threads, checking...
๐
๐ taking over for my colleague. Let me catch up.
you can read more about India recurring payment here https://stripe.com/docs/india-recurring-payments
please do come back with any follow-ups
i have read this
its not clear
can you tell me right flow for subscription or check my flow and correct me if i am doing anything wrong
i am creating subscription model in stripe for Indian payment it is necessary to do 3ds authentication so first I charge 1 rupees to user then refund that after card is saved i create subscription with that payment id and it provide invoice url to confirm payment after confirming payment get successfull
is that right way to create subscription in stripe with 3ds
what isn't exactly?
my subscription flow pls read above flow
To create a subscription in Stripe with 3DS authentication for Indian payments, you can follow the following steps:
-
Charge 1 rupee: Initiate the subscription process by charging 1 rupee from the user's card. This step helps verify that the card is valid and supports 3DS authentication.
-
Refund the charge: Once the card is verified, refund the 1 rupee charge to the user. This ensures that the user is not actually charged for this amount.
-
Save payment ID: After the successful charge and refund, save the payment ID associated with the 1 rupee transaction. This payment ID will be used in the next step to create the subscription.
-
Create subscription: Use the saved payment ID to create a subscription for the user. This subscription will specify the billing frequency, plan details, and associated customer information.
-
Invoice confirmation: Stripe will automatically generate an invoice for the created subscription. Provide the user with the invoice URL to confirm the payment.
-
Confirm payment: Once the user accesses the invoice URL, they will be prompted for 3DS authentication to complete the payment. Upon successful authentication, the payment will be confirmed, and the subscription will be active.
By following these steps, you ensure that the user's card supports 3DS authentication, verify its validity with a minimal charge, and proceed with creating the subscription after confirming successful payment.
where did these steps come from?
i created my subscription according to this is this correct?
from which doc you got those steps?
I have shared with you the official doc for recurring payments in India
please follow the steps from that doc!
and if you have a particular question regarding that doc feel free to come back and ask it here
its not cleared in doc
its saying same to first create paymentIntent then charge user
via subscription
can you tell me once
?
@frosty tiger what specific question do you have?
my subscription flow i am using for 3ds with stripe
To create a subscription in Stripe with 3DS authentication for Indian payments, you can follow the following steps:
-
Charge 1 rupee: Initiate the subscription process by charging 1 rupee from the user's card. This step helps verify that the card is valid and supports 3DS authentication.
-
Refund the charge: Once the card is verified, refund the 1 rupee charge to the user. This ensures that the user is not actually charged for this amount.
-
Save payment ID: After the successful charge and refund, save the payment ID associated with the 1 rupee transaction. This payment ID will be used in the next step to create the subscription.
-
Create subscription: Use the saved payment ID to create a subscription for the user. This subscription will specify the billing frequency, plan details, and associated customer information.
-
Invoice confirmation: Stripe will automatically generate an invoice for the created subscription. Provide the user with the invoice URL to confirm the payment.
-
Confirm payment: Once the user accesses the invoice URL, they will be prompted for 3DS authentication to complete the payment. Upon successful authentication, the payment will be confirmed, and the subscription will be active.
By following these steps, you ensure that the user's card supports 3DS authentication, verify its validity with a minimal charge, and proceed with creating the subscription after confirming successful payment.
is this correct
No, doesn't sound correct to me, it's unusual to charge a customer real money and then refund it, so I don't think steps 1 and 2 make any sense, unless you read them in an official Stripe doc.
you'd use the guide at https://stripe.com/docs/billing/subscriptions/build-subscriptions. I recommend using the "low code" option that uses Checkout.
i am using custom checkout page
you can do that too (note it is lot more development work required, but it's possible). It's documented on the same page.
yes but is not cleared as paymentIntent dont pass subscription id it can only use to charge customer immmediately and setup intent not save card without transaction
so how i use 3d authentication with stripe because my custome checkout page i am creating paymenMethod with customer card but not able to attach it with customer without 3ds
I don't understand your English sorry.
In any case, you do not create your own PaymentIntent, you don't need to. You create a Subscription, and the Subscription creates an Invoice, and the Invoice has a PaymentIntent, and you use that PaymentIntent on the frontend payment page. It just works if you follow the guide.
and subscription its saying paymentMethod is required
follow the guide and use payment_behavior=default_incomplete to avoid it needing the PaymentMethod immediately.
should i pass paymentMethodId with subscription as it required 3ds i cannot attach with customer
no.
also if i use defaultIncomplete then user has to again add card details on invoice Url
but he has already added in custom checkout page
so what should be right case flow
you are building it wrong then
can you please help me
the correct way to build it is to follow the guide. You create a Subscription, and the Subscription creates an Invoice, and the Invoice has a PaymentIntent. You use that PaymentIntent on your 'custom checkout page'. That will charge the card and save it, all in one step.
please follow the guide, write some code, and only ask another question when you have some specific code to talk about. Thank you!
the Invoice has a PaymentIntent. You use that PaymentIntent on your 'custom checkout page
without passing card details how will paymentIntent will be created
where should i pass my card details to create payment Method Id
card details are not required to create the PaymentIntent.
you don't. You confirm the PaymentIntent.
confirming the PaymentIntent pays the Invoice, activates the subscription and saves the PaymentMethod.
in custom checkout page i am taking card details of user what should i do with that
it's all explained in https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements. Follow the guide, write the code and use the sample projects.
you shoud not do that, and you should do what I said instead : You create a Subscription, and the Subscription creates an Invoice, and the Invoice has a PaymentIntent. You use that PaymentIntent on your 'custom checkout page'.
You use that PaymentIntent on your 'custom checkout page'.
where to use it
on checkout page
I'm going to give you an hour timeout so you can go read the guide and try things out. You can follow the guide, write some code, and only ask another question when you have some specific code to talk about. Thank you!
ok