#.fallenblade

1 messages · Page 1 of 1 (latest)

remote lynxBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

dusty lark
#

Unfortunately not. If you have Link turned on and a customer is logged in, the PE will show them their saved Link PaymentMethods by default, but it isn't possible to prefill the Payment Element via our API + javascript

#

Typically for saved payment methods, the pattern is to list them out yourself and then use their pm_ ID when confirming the payment intent

spiral cipher
#

Okay. Is it possible to replace the saved payment method? For example, the user currently saved his debit card and the user wanted to replace it with Google Pay. Is that possible? If yes, can you guide me on how to implement it?

dusty lark
#

As in replace the one that you have set as the default for subscriptions?

#

Or something else?

spiral cipher
#

Yes

#

default for subscription

dusty lark
#

Where you collect a new PaymentMethod using a SetupIntent

#

And then set that new PM as the user's default payment method by setting the Customer object's invoice_settings[default_payment_method] field