#Geoffrey-PRB

1 messages · Page 1 of 1 (latest)

dusk hollow
#

Hi there, no you can't customize the labels of PaymentRequstButton. You would have to build your own button as you linked.

terse leaf
#

Hmm, that's too bad. Thanks for the prompt answer though!

#

Do you have any examples in the Stripe docs for this?

dusk hollow
#

For creating your own button?

terse leaf
#

Ya, do I just swap out

if (paymentRequest) {
return <PaymentRequestButtonElement options={{paymentRequest}} />
}

with

if (paymentRequest) {
return <button onClick={() => paymentRequest.show() } />
}

?

round mason
#

Hi there 👋 taking over for @dusk hollow

#

I don't know of any docs to do this. When you run the code you mentioned, does it work?