Skip to content

Instantly share code, notes, and snippets.

@matthewarkin
Last active August 14, 2017 20:46
Show Gist options
  • Save matthewarkin/d52b92027935ca78cae5 to your computer and use it in GitHub Desktop.
Save matthewarkin/d52b92027935ca78cae5 to your computer and use it in GitHub Desktop.
Stripe Checkout Custom Button CSS
<link rel="stylesheet" href="https://checkout.stripe.com/v3/checkout/button.css"></link>
<script src="https://checkout.stripe.com/checkout.js"></script>
<button id="customButton" class="stripe-button-el">
<span style="display: block; min-height: 30px;">Pay with Card</span>
</button>
@c-well
Copy link

c-well commented May 15, 2016

How would one implement this when using wordpress?

@leewallis
Copy link

In your functions.php file @c-well - (I know it's rather late, but is anyone comes across this again see below)

function themename_custom_css() {
    wp_enqueue_style( 'stripe-css', 'https://checkout.stripe.com/v3/checkout/button.css', array(), '1.0.0', 'screen' );
}
add_action( 'wp_enqueue_scripts', 'themename_custom_css' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment