#sagar051192
1 messages · Page 1 of 1 (latest)
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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',
});
can you share the Subscription id?
what's the invoice id of the second invoice that failed?
When i look at the subscription which you mentioned, there's no failed invoice: https://dashboard.stripe.com/test/subscriptions/sub_1NdWHzHw0s3gHfDX5g8Jfpv9
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I have paid again from the stripe invoice payment link
can you generate a new one, and not pay it from the Stripe invoice payment link then so that I can take a look
Invoice id : "in_1NdYB0Hw0s3gHfDXRQldvhEH"
^ this invoice is for a different subscription : sub_1NdBfUHw0s3gHfDXYQ2cq0MD
Yes, sorry provided wrong subsciption id to you
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
give me a while to look into this, i'll get back to you
Sure
👋 Taking over this thread
Looking into it now
Thanks for waiting! It's strange that there is invoice payment failure, but I don't seem to find the actual payment failures in https://dashboard.stripe.com/test/payments/pi_3NdZJUHw0s3gHfDX1Z39WYv9
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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.
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?
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.