#sagar051192

1 messages · Page 1 of 1 (latest)

clever lionBOT
orchid chasm
#

did you set the default_payment_method for either the Subscription [0] or invoice_settings.default_payment_method [1] on the customer after the customer made payment?

Otherwise, you can also set payment_settings.save_default_payment_method = on_subscription [2] so that it's automatically done for you

[0] https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
[1] https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
[2] https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-save_default_payment_method

fast raft
#

a I have created subscription with below code.
const session = await stripe.checkout.sessions.create({
mode: 'subscription',
line_items: [
{
price: price.id,
quantity: 1,
},
],
success_url: config.stripe.WEB_SUCCESS_URL + '?transaction=' + transactionData._id.toString(),
cancel_url: config.stripe.WEB_CANCEL_URL + '?transaction=' + transactionData._id.toString(),
customer: userData.stripeCustomerId,
/payment_method_types: ['card', 'us_bank_account'],/
client_reference_id: transactionData._id.toString(),
locale: 'auto',
});

orchid chasm
#

can you share the Subscription id?

fast raft
#

sub_1NdWHzHw0s3gHfDX5g8Jfpv9

#

It's in test mode

orchid chasm
fast raft
#

I have paid again from the stripe invoice payment link

orchid chasm
#

can you generate a new one, and not pay it from the Stripe invoice payment link then so that I can take a look

fast raft
#

Invoice id : "in_1NdYB0Hw0s3gHfDXRQldvhEH"

orchid chasm
#

^ this invoice is for a different subscription : sub_1NdBfUHw0s3gHfDXYQ2cq0MD

fast raft
#

Please check payment intent : pi_3NdZJUHw0s3gHfDX1Z39WYv9
connected to subscription sub_1NdBfUHw0s3gHfDXYQ2cq0MD

Intent was failed on 10th with error payment menthod require and then today i have paid it again

orchid chasm
#

give me a while to look into this, i'll get back to you

fast raft
#

Sure

clever lionBOT
copper mural
#

👋 Taking over this thread

#

Looking into it now

#

Can I suggest you to write in to us https://support.stripe.com/contact, so that we can follow up and check with the relevant team? It’ll be helpful if you can include the subscription and payment intent ID in your email.

fast raft
#

It was failed on 10th with error payment method required. and then today i have paid via stripe invoice link

#

I want to know why it was failed on 10th as it should be auto paid right?

copper mural
#

I understand, but I don't find much information why the payment is failed and why it is so. Please write in to Support https://support.stripe.com/contact, so that we can check with the relevant team and get back to you.