html - Customise stripe button -


im using stripe checkout in rails app. have been following thier tutorial here. basic , have payment process working.

what i'm having trouble styling button in following code. script contains button (im not sure if said right), brings in default button:

<script src="https://checkout.stripe.com/checkout.js" class="stripe-button"           data-key="<%= rails.configuration.stripe[:publishable_key] %>"           data-description="a month's subscription"           data-amount="500"           data-locale="auto"></script> 

iv tried applying styles strip-button class have no luck, have looked within doc provided cant find nothing within suggest how style default button.

any suggestions or thier better way in styling button?

i made little code pen

i think you'll have use selector in stylesheet:

.stripe-button-el {   width: 100px;   # ... } 

here's dom part want style:

<button type="submit" class="stripe-button-el" style="visibility: visible;">   <span style="display: block; min-height: 30px;">pay card</span> </button> 

edit:

the dom part above injected script include. (you can imagine there time). have style dom part (in css).

see pen how change styles.

i think question closed now, asked how style it.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -