#redpanda-prbutton

1 messages · Page 1 of 1 (latest)

turbid wedge
#

hello, you can use PaymentRequest Button with SetupIntents too

you still use the same doc as before, just create a SetupIntent and call confirmCardSetup()

weary apex
#

@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

turbid wedge
#

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

weary apex
#

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?

turbid wedge
#

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

weary apex
#

I see, I guess I was confused since the label says "Pay"

turbid wedge
#

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

weary apex
#

Okay great, I'll just make the label of the PaymentRequest as descriptive as possible about the taken action. Thank you!