ONESTOP  © 2013 | Privacy Policy

You can add HTML directly into this element to render on the page.

Just edit this element to add your own HTML. // Require the Stripe library with a test secret key. const stripe = require('stripe')('sk_test_BQokikJOvBiI2HlWgH4olfQ2'); // Create a payment intent to start a purchase flow. let paymentIntent = await stripe.paymentIntents.create({ amount: 2000, currency: 'usd', description: 'My first payment', }); // Complete the payment using a test card. paymentIntent = await stripe.paymentIntents.confirm(, { payment_method: 'pm_card_mastercard', }); // Click “▶ run” to try this code live and create your first payment.