#pips-wallet-switch

1 messages · Page 1 of 1 (latest)

warped canopy
prisma aspen
#

So this is saving that PaymentMethod without any kind of purchase correct?

next knot
#

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

prisma aspen
#

Checking on Google Pay...

next knot
#

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

prisma aspen
#

Good point. Sorry for the delay here, still looking in to this.

next knot
#

no problem!

prisma aspen
#

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

next knot
#

ok great!