Skip to content

Instantly share code, notes, and snippets.

View billwscott's full-sized avatar

Bill Scott billwscott

View GitHub Profile
@billwscott
billwscott / gist:3151596
Created July 20, 2012 16:08 — forked from jeffharrell/gist:3134368
The one page PayPal Express Checkout guide (using cURL)

One page PayPal Express Checkout guide using cURL

To integrate with Express Checkout have your API credentials ready and read on.

Step 1 - Send your transaction data to PayPal (your API credentials are required for safety):

var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);