#redpanda-prbutton
1 messages · Page 1 of 1 (latest)
hello, you can use PaymentRequest Button with SetupIntents too
you still use the same doc as before, just create a SetupIntent and call confirmCardSetup()
@turbid wedge but the PaymentRequestButton requires paymentRequest: PaymentRequest; to be passed in it's option prop so I am not sure how to pull it off
looking one sec
yep you still need all of the PaymentRequest props
the only thing that changes is what you do in the paymentmethod event of PaymentRequest Button
That would still require me to do a paymentrequest
What I am confused about is that creating a payment requests seems to require a price whereas doing it with a card I just pass in the payment method and it's fine
So I still need to set up the payment request for the amount that will be charged in the future?
So I still need to set up the payment request for the amount that will be charged in the future?
yes, setting up PaymentRequest is a requirement for PaymentRequest Button but it doesn't mean a payment is taken
You can customize the PaymentRequest Button to say "charge $X at Jan 2022" or "pending" for your case where you charge in the future
yeah with Google Pay in Chrome that probably isn't as customizable (the button label) but it doesn't cause any payment
payment is done by confirming a PaymentIntent
Okay great, I'll just make the label of the PaymentRequest as descriptive as possible about the taken action. Thank you!