This file contains hidden or 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
import stripe from 'stripe'; | |
var app = express(); | |
app.use(bodyParser.json()); | |
app.post('/payment', (req,res) => { | |
var ctx = req.webtaskContext; | |
console.log(req.body); | |
var STRIPE_SECRET_KEY = ctx.secrets.STRIPE_SECRET_KEY; |
This file contains hidden or 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
// | |
// ViewController.swift | |
// Stripe-SwiftSample | |
// | |
// Created by Karthik Murugesan on 3/15/15. | |
// Copyright (c) 2015 Karthik. All rights reserved. | |
// | |
import UIKit | |
import Stripe |
This file contains hidden or 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
'use latest'; | |
import express from 'express'; | |
import { fromExpress } from 'webtask-tools'; | |
import bodyParser from 'body-parser'; | |
import stripe from 'stripe'; | |
var app = express(); | |
app.use(bodyParser.json()); |
This file contains hidden or 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
'use latest'; | |
import express from 'express'; | |
import { fromExpress } from 'webtask-tools'; | |
import bodyParser from 'body-parser'; | |
import stripe from 'stripe'; | |
var app = express(); | |
app.use(bodyParser.json()); |