-
-
Save NeilVicente/b51fb354a6d54002de79 to your computer and use it in GitHub Desktop.
Dwolla offsite gateway
This file contains 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
<?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