September 2017
Intermediate to advanced
450 pages
11h 24m
English
Let's perform the following steps to get integrated with Stripe as a payment processor; we will add a simple test route to add customers to our account and return customer data from it:
const keyPublishable = process.env.stripeAPIPublishableKey;const keySecret = process.env.stripeAPISecretKey;const stripe = require("stripe")(keySecret);var self = module.exports = { createCustomer: function(req, res, next) { return stripe.customers.create({ ...
Read now
Unlock full access