Created
November 14, 2013 14:12
-
-
Save stevedomin/7467434 to your computer and use it in GitHub Desktop.
GoCardless PHP example
This file contains hidden or 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 | |
// Include GoCardless | |
include_once 'gocardless-php/lib/GoCardless.php'; | |
// Set up configuration | |
$account_details = array( | |
'app_id' => "", | |
'app_secret' => "", | |
'access_token' => "", | |
'merchant_id' => "" | |
); | |
// Set GC account details | |
GoCardless::set_account_details($account_details); | |
$subscriptions = GoCardless_Merchant::find($account_details['merchant_id']) | |
->subscriptions(); | |
print_r($subscriptions); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment