Created
August 3, 2020 09:50
-
-
Save chrisheseltine/9b9e0852914eee04883ed3ba652aa9da to your computer and use it in GitHub Desktop.
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
// Set your secret key. Remember to switch to your live secret key in production! | |
// See your keys here: https://dashboard.stripe.com/account/apikeys | |
const stripe = require('stripe')('sk_test_4eC39HqLyjWDarjtT1zdp7dc'); | |
const paymentIntent = await stripe.paymentIntents.create({ | |
amount: 1099, | |
currency: 'usd', | |
// Verify your integration in this guide by including this parameter | |
metadata: {integration_check: 'accept_a_payment'}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment