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
Widgetly does not collect any information about the users of the app. | |
That's it. It's that simple. No tracking, no data storage outside your device. |
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
const stripe = require('stripe')('your-stripe-secret') | |
const { text } = require('micro') | |
module.exports = async (req, res) => { | |
// Need to process body from request coming in. | |
const body = JSON.parse(await text(req)) | |
// Process payment using details from incoming request. You might also optionally want to create a customer before initiating a payment. | |
const charge = await stripe.charges | |
.create({ |