#anishsubedi1_83944
1 messages ยท Page 1 of 1 (latest)
Yes, the subscription's page in the dashboard will show what payment method is used for that subscription
Payment method for that customer is not showing. Right now in testmode. 4242 is getting added by default but after that I used 2 test cards.
Ah right, it will only show if you set the default payment method on the subscription itself. Otherwise the subscription will use the default payment method for the customer (if you have the subscription set to charge your customer automatically)
To set a PM as the default you can click on one of those ... icons and then "Set as default"
Default part is okay. How do I know adding new credit card was successful through dashboard?
It will show up in that list of payment methods. If not, then the PaymentMethod was not saved to that customer.
It sounds like you may want to talk to our support team about this https://support.stripe.com/?contact=true
They can talk about dashboard issues and questions about specific customers. This server is more for coding questions
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
response looks good though..default payment method is updated though
Glad to hear that that update worked. Do you need any other help here at the moment?
I want to verify if update is successful or not? Can I retrieve payment method based on subscription id?
You can retrieve either the Customer or the Subscription depending on where you set this and then you can check either invoice_settings.default_payment_method on the Customer or default_payment_method on the subscription
https://stripe.com/docs/api/subscriptions/object#subscription_object-default_payment_method
https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-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.
yea...I just did for the customer. default payment method is not getting updated even i use new credit card.
How did you try to update that ID? Was it through the Customer's dashboard page from the screenshots earlier?
When I change credit card:
- In customer, invoice_settings>> default_payment_method is not changing
- In subscription (inside that customer) >>default_payment_method gets changed.
Is this correct?
Steups I followed to change credit card on existing subscription:
- Create new setupIntent
- confirm setupIntent
- update existing subscription
default_payment_method: confirmSetupIntent.payment_method,
},
Hello ๐
When you create a SetupIntent, it just attaches the payment method to a customer. It doesn't update the default.
If you want to update the default payment method for customer's invoice setting then the API expects a separate request for this.
Step 3 in your directions above means you're updating the payment method on the subscription and NOT the customer
Depends on your usecase
,Even If updated default payment method, on dashboard is not changing. Do you think it's dashboard issue?
Can you share the customer ID you're updating?
cus_OUX1elYSoDRJ79
The default payment method under invoice setting for that customer is pm_1NhZgjDq5ExucUL8Kdtvx8PV which is what the dashboard is showing
It was set as default with this request
https://dashboard.stripe.com/test/logs/req_9iMp7Qq7N4mPqi