#pips-wallet-switch
1 messages · Page 1 of 1 (latest)
So this is saving that PaymentMethod without any kind of purchase correct?
yes
my thought was use a setupintent but to use confirmCardSetup on web you need to provide a paymentmethod ID, and to get a paymentmethod id you need to use a paymentrequest button, which requires an amount
didn't know if passing true for pending and 0 or 0.01 for the amount on the paymentitem for paymentrequest would just not show an amount
You can do this for Apple Pay for Subscription recurring payments but reusing it for non subscription payments can result in declines https://stripe.com/docs/apple-pay?platform=web#recurring-payments
Checking on Google Pay...
yes, saw that, but this assumes a user is setting up a new subscription rather than say they were paying directly with their VISA and wanted to switch future payments on their subscription to Apple Pay
Good point. Sorry for the delay here, still looking in to this.
no problem!
Apologies for the long delay there. You can actually use the PaymentRequest button with an amount of 0 and then use confirmCardSetup to create a SetupIntent
ok great!