Skip to content

Instantly share code, notes, and snippets.

@chrisheseltine
Created August 3, 2020 09:50
Show Gist options
  • Save chrisheseltine/9b9e0852914eee04883ed3ba652aa9da to your computer and use it in GitHub Desktop.
Save chrisheseltine/9b9e0852914eee04883ed3ba652aa9da to your computer and use it in GitHub Desktop.
// 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