简体   繁体   中英

Stripe checkout PAY button change text

How to change the text in a stripe checkout modal box from PAY to something else.

I know I can do custom text on the button that pops up the modal.

description: 'ADD CARD',
label:'ADD CARD',

But on the actual modal window. It still just says PAY on the button. I want it to say ADD CARD.

通过简单的集成,您还可以:

data-label="Donate"

您可以使用data-panel-labelpanelLabel选项对其进行自定义: httpspanelLabel

Staying at the Stripe Checkout Reference , is only possible to edit the label attribute when using the Simple integration (via the data-* attributes).

EDIT

With the Custom integration is possible to set the button text in the panelLabel attribute.

All you have to do is use label as a property within StripeCheckout

Example:

<StripeCheckout label="Your text here" />

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM