#dhruvs
1 messages · Page 1 of 1 (latest)
Hi there
This is possible if you want to go this route, however Payment Element supports Apple Pay and Google pay itself so you could just use Payment Element if that satisfies your use-case.
Otherwise, all Payment Requst Button really does is tokenize the card details (create a PaymentMethod) so you could still confirm that same PaymentIntent that you used to render Payment Element.
I'm looking to have a seperate button for Wallet payments above payment Elements to help with conversion. The paymentIntent I'm using is linked to a product subscription - could I have payment request button tap into the same?
Thanks!
Yep you can
When you render Payment Element you want to set wallets to never: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-wallets
Then you can see in the PRB integration that you just pass the client_secret of the PaymentIntent you want to confirm to confirmCardPayment(): https://stripe.com/docs/stripe-js/elements/payment-request-button?client=html#html-js-complete-payment