#Geoffrey-PRB
1 messages · Page 1 of 1 (latest)
Hi there, no you can't customize the labels of PaymentRequstButton. You would have to build your own button as you linked.
Hmm, that's too bad. Thanks for the prompt answer though!
Do you have any examples in the Stripe docs for this?
For creating your own button?
Ya, do I just swap out
if (paymentRequest) {
return <PaymentRequestButtonElement options={{paymentRequest}} />
}
with
if (paymentRequest) {
return <button onClick={() => paymentRequest.show() } />
}
?