Skip to content

Instantly share code, notes, and snippets.

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;
//
// ViewController.swift
// Stripe-SwiftSample
//
// Created by Karthik Murugesan on 3/15/15.
// Copyright (c) 2015 Karthik. All rights reserved.
//
import UIKit
import Stripe
'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());
@Manny7311
Manny7311 / node.js
Created November 24, 2016 05:24
Webtask Stripe
'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());