#nacho-customer-paymentmethods

1 messages · Page 1 of 1 (latest)

scarlet galleonBOT
latent rivet
#

Hi there 👋 what are you running into troubles with when trying to do this?

shell verge
#

I want to edit the payment method, on my application user can add multiple payment methods

latent rivet
shell verge
#

The card or the billing address

latent rivet
#

Those are two pretty different things. You can update the billing address through the API, as shown in our reference that I linked to. You can't update card details that way though, you will need to create a new Payment Method if you want to collect new card details.

shell verge
#

Ok I understand, so creating a new payment method how can I use that new one to replace the existing payment method

latent rivet
#

Replace it where? Where/how are you using the previous one?

#

I'll need more insight into how you've structured your integration in order to provide guidance about it.

shell verge
#

Ok user can add payment methods which is being stored on stripe to a customerID, I want to be able to edit any of the cards I sent to stripe. Creating a new payment method means adding another to the existing array or can a customer only have one on stripe ?

scarlet galleonBOT
latent rivet
#

Customers can have as many Payment Methods as you create for them. If you're setting a default for use with Invoices and Subscriptions, then they can only have one default set.

shell verge
#

I know you can have one default set, you still don’t get me that default how can I change the card details in that or do I have to delete and add another

#

I saw something about adding a new payment method and it being tokenized how can I achieve that. I believe I can send that token to the backend and replace the payment method

latent rivet
#

You have to create a new Payment Method if you want to change card details. Then if the previous Payment Method was set as a default and that needs to be updated, you need to update the Customer (or Subscription object depending on your integration) to set the new Payment Method as the default.

latent rivet
#

You already have a flow for creating Payment Methods, right? The one you described in your initial message, you should reuse that.

shell verge
#

Ok

#

Thanks