#anishsubedi1_83944

1 messages ยท Page 1 of 1 (latest)

plush kindleBOT
noble cave
#

Yes, the subscription's page in the dashboard will show what payment method is used for that subscription

junior herald
#

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.

noble cave
#

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"

junior herald
#

Default part is okay. How do I know adding new credit card was successful through dashboard?

noble cave
#

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

junior herald
#

response looks good though..default payment method is updated though

noble cave
#

Glad to hear that that update worked. Do you need any other help here at the moment?

junior herald
#

I want to verify if update is successful or not? Can I retrieve payment method based on subscription id?

noble cave
#

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

#
junior herald
#

yea...I just did for the customer. default payment method is not getting updated even i use new credit card.

noble cave
#

How did you try to update that ID? Was it through the Customer's dashboard page from the screenshots earlier?

junior herald
#

When I change credit card:

  1. In customer, invoice_settings>> default_payment_method is not changing
  2. In subscription (inside that customer) >>default_payment_method gets changed.

Is this correct?

plush kindleBOT
junior herald
#

Steups I followed to change credit card on existing subscription:

  1. Create new setupIntent
  2. confirm setupIntent
  3. update existing subscription
            default_payment_method: confirmSetupIntent.payment_method,
          },
bronze girder
#

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

junior herald
#

ohhh okay.

#

So, I need to update this for customer?

bronze girder
#

Depends on your usecase

junior herald
#

,Even If updated default payment method, on dashboard is not changing. Do you think it's dashboard issue?

bronze girder
#

Can you share the customer ID you're updating?

junior herald
#

cus_OUX1elYSoDRJ79

bronze girder
#

The default payment method under invoice setting for that customer is pm_1NhZgjDq5ExucUL8Kdtvx8PV which is what the dashboard is showing