Line break

How to change the text in a modular window to check the strip from PAY to another.

I know that I can make my own text on a button that displays modal.

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

But in a real modal window. He still just says “Page” on the button. I want him to say ADD CARD.

+10
source share
4 answers

With simple integration, you can also:

 data-label="Donate" 
+14
source

You can configure this using the data-panel-label or panelLabel : https://stripe.com/docs/checkout#optional

+12
source

Staying in the Reference Checkout Reference allows you to edit the label attribute using a simple integration (via data-* ).

EDIT

Using custom integration, you can set the button text in the panelLabel attribute.

+3
source

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

Example:

 <StripeCheckout label="Your text here" /> 
0
source

Source: https://habr.com/ru/post/1264215/


All Articles