#anishsubedi1_83944

1 messages · Page 1 of 1 (latest)

rain wigeonBOT
idle garden
#

Hi 👋

Can you explain yourself a bit better? What are you referring to?

bronze cave
#

Task: Allow user to change their credit card on existing subscription

Steps I did:

  • create new SetupIntent
  • confirm the new setupIntent
  • This return object with payment_method_id
  • update the subscriber's default payment method with this new id
#

However, even doing so, it is taking previous credit card

idle garden
bronze cave
#

this should be one:
req_1SYAzQMETG3j9H

idle garden
#

No this one isn't

#

I'm looking for the API request where you update the Customer's invoice_settings.default payment method

bronze cave
#

Is this the correct one?
req_J2jusuCAa11xwG

idle garden
#

No

#

It will be a POST request for a /v1/customers/cus_XXXXXX

#

I'm looking at your account logs and I don't see any requests that fit this pattern. I think the problem is you are not doing step 4

bronze cave
#

This is getting hit:

          userDetail.userSubscriptionProfile.stripeSubscriptionId,
          {
            default_payment_method: confirmSetupIntent.payment_method,
          },
        );
idle garden
#

Ah so you are modifying the subscription, not the Customer

bronze cave
#

yea, changing credit card on existing subscription so that next month payment should go on new credit card.

#

This is the re: req_E7bNEVs8zTyTG5

idle garden
#

Okay I can see the request updated the payment method

bronze cave
#

But, it's again old credit card not what I entered on

idle garden
#

It uses pm_card_visa which is the same Payment Method as the 4242 card

bronze cave
#

Okay. I will try Mastercard debit to check? okay?

idle garden
#

Okay

bronze cave
#

Looks like didnot change: req_6oIdo1IOkK3D5c

idle garden
#

I can't do much with screenshots. Can you share the API requests?

bronze cave
#

here : req_6oIdo1IOkK3D5c

idle garden
bronze cave
#

umm

#

I will get back on Monday.

#

Thanks for help. Have good day.