Skip to content

Instantly share code, notes, and snippets.

@Dwolla
Dwolla / magic.qb
Created September 9, 2012 18:55
QBasic Magic
CLS
10:
INPUT A$
PRINT "Jason says: " + A$
IF A$ <> "done" THEN
GOTO 10
END IF
@Dwolla
Dwolla / gist:3351952
Created August 14, 2012 19:21
Dwolla OAuth - NodeJS
var cfg = {
client_id: 'KEY',
client_secret: 'SECRET',
redirect_uri: 'http://localhost:3000/auth/callback',
scope: 'Balance|AccountInfoFull|Send|Request|Transactions|Contacts|Funding'
};
app.get('/auth', function(req, res) {
var authUrl = 'https://www.dwolla.com/oauth/v2/authenticate?response_type=code' +
'&client_id=' + encodeURIComponent(cfg.client_id) +
@Dwolla
Dwolla / gist:3350992
Created August 14, 2012 17:23
Dwolla Pay Button - Multiple Options / Dropdown
<div id="dwolla-donation-module">
<label style="display: block; margin: 0 0 5px;">Please select package:</label>
<select onchange="this.parentNode.getElementsByTagName('a')[0].setAttribute('data-amount', this.value.replace('$', ''));" style="display: block; width: 195px; margin: 0 0 15px;">
<option value="10.00">Option One - $10</option>
<option value="20.00">Option Two - $20</option>
<option value="30.00">Option Three - $30</option>
</select>
<a href="http://www.example.com" class="dwolla_button" data-name="Production Name" data-desc="Product Description" data-amount="10.00" data-shipping="0" data-tax="0" data-key="[YOUR-KEY-HERE]">Pay with Dwolla</a>
</div>
@Dwolla
Dwolla / gist:3172085
Created July 24, 2012 19:28
Dwolla API - Send money using .NET
using System;
using System.IO;
using System.Net;
using System.Text;
using System.Web.Script.Serialization;
using System.Collections.Generic;
public class DwollaSamples
{
static public string Send()
@Dwolla
Dwolla / dwolla_s2s.php
Created July 19, 2012 14:45
Dwolla PHP Server-to-Server Checkout
<?php
$accessKey = '[YOUR APP KEY]';
$secretKey = '[YOUR APP SECRET]';
$accountnum = '812-734-7288';
$body= '{
"Key": "'.$accessKey.'",
"Secret": "'.$secretKey.'",
"PurchaseOrder": {