Last active
August 14, 2017 20:46
-
-
Save matthewarkin/d52b92027935ca78cae5 to your computer and use it in GitHub Desktop.
Stripe Checkout Custom Button CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
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
How would one implement this when using wordpress?