Skip to content

Instantly share code, notes, and snippets.

@NeilVicente
Last active March 9, 2016 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeilVicente/b51fb354a6d54002de79 to your computer and use it in GitHub Desktop.
Save NeilVicente/b51fb354a6d54002de79 to your computer and use it in GitHub Desktop.
Dwolla offsite gateway
<?php
require_once "Dwolla/init.php";
$purchaseOrder = array(
'total' => '25.00',
'destinationId' => 'SECRETDESINATIONID',
);
$checkout = new Dwolla\Checkouts();
$checkout->settings->client_id = "SECRETCLIENTID";
$checkout->settings->client_secret = "SECRETCLIENTSECRET";
$checkout->settings->sandbox = true;
$result = $checkout->create($purchaseOrder, array(
'redirect' => "http://example.com",
));
var_dump($result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment