#shudhanshu_59118
1 messages · Page 1 of 1 (latest)
Hi there!
How can I help?
Can you share the request ID (req_xxx) of the error? You can find it here https://dashboard.stripe.com/test/logs
There's no error with req_6OwdRraTdekmwI that you shared.
req_6wNviKAUYWxiTR
This customer has no default payment set, so it's expected to fail.
What are you trying to do? Reuse the payment method saved on the customer, or collect a new payment method?
I want to use the saved card on the customer and create a subscription form that saved card
I want to use the saved card on the customer
Then you need to update the customer to set their payment method as the default one: https://stripe.com/docs/api/customers/update?lang=node#update_customer-invoice_settings-default_payment_method
Or when creting the Subscription set the PaymentMethod to use: https://stripe.com/docs/api/subscriptions/create?lang=node#create_subscription-default_payment_method
Yes also after this error i have set the saved card as default directly from the dashboard but after that the subscription is created but its status is INCOMPLETE
Can you share a Subscription ID (sub_xxx) with this issue?
sub_1O2BbXSFXTYvwKhVB36A0gfK
But taking a step back, why are you doing this? In general we recommend to first create a Subscription, and then use the PaymentIntent created by the subscription to collect a payment method.
Your approach of first collecting the payment method and then creating the subscription has a big downside: the bank may request 3DS two times in a row: first when creating the payment method and then we trying to charge for the first month of the subscription.
sub_1O2BbXSFXTYvwKhVB36A0gfK
This subscription is active, so I don't see any issues
The thing is i don't want my customer to enter card details every time he subscribe to a susbscription
My client wants to add card details only one time
Yes sure:
- For the very first subscription, first create the subscription, then use the PaymentIntent created by the subscription to collect a payment method
- For the next subscription, don't collect a payment method, just reuse the one saved on the customer
How can i use use the payment method saved by the customer ?
I want to add coupon on subscription on minimum order condition but there is only one option to add promotion code for minimum order. Do we have any option to add coupon on minimum order only.
On the server end
How can i use use the payment method saved by the customer ?
I already answered this: #1163807366752514068 message
@dim fractal please open a new thread in #dev-help with your question
@gaunt sundial Hi, this is the new Subscription Id :- sub_1O2CR1SFXTYvwKhV9NHkz7jv which i have created but its status is Incomplete but the customer has a default Payment Method.
that's normal, you can see the PaymentIntent requires 3DS: https://dashboard.stripe.com/test/payments/pi_3O2CR2SFXTYvwKhV0wWEJ0pp
So you need to confirm the PaymentIntent on the frontend. Or use a test card that don't require 3DS.
Sure you can see all our test scards here: https://stripe.com/docs/testing
However since your account is in Inda, note that all international payments require 3DS as mentioned here: https://support.stripe.com/questions/3d-secure-authentication-for-international-card-payments-to-indian-businesses