-
-
Save benjitastic/5af5d28de10c367fc8df2b2e239bf478 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
// Require the Stripe library with a test secret key. | |
const stripe = require('stripe')('sk_test_BQokikJOvBiI2HlWgH4olfQ2'); | |
// Create a payment from a test card token. | |
const charge = await stripe.charges.create({ | |
amount: 2000, | |
currency: 'usd', | |
source: 'tok_amex', | |
description: 'My first payment' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment