Skip to content

Instantly share code, notes, and snippets.

@hmarr
Created September 17, 2012 13:08
Show Gist options
  • Save hmarr/3737176 to your computer and use it in GitHub Desktop.
Save hmarr/3737176 to your computer and use it in GitHub Desktop.
GoCardless Client Libraries
GoCardless.AccountDetails = new AccountDetails {
AppId = "APP123",
AppSecret = "S3CR3T",
Token = "ACCESSTOKEN123 manage_merchant:MERCHANT123"
};
GoCardless.Connect.NewBillUrl(new BillRequest("MERCHANT123", 30m));
GoCardless.accountDetails.setAppId("APP123");
GoCardless.accountDetails.setAppSecret("S3CR3T");
GoCardless.accountDetails.setAccessToken("ACCESSTOKEN123");
GoCardless.accountDetails.setMerchantId("MERCHANT123");
Bill bill = new Bill(merchantId, new BigDecimal("30.0"));
GoCardless.connect.newBillUrl(bill, redirectUri, cancelUri, state);
GoCardless::set_account_details(array(
'app_id' => 'APP123',
'app_secret' => 'INSERT_APP_SECRET_HERE',
'merchant_id' => 'MERCHANT123',
'access_token' => 'ACCESSTOKEN123'
));
$url = GoCardless::new_bill_url(array(
'amount' => '30.00',
'name' => 'Donation'
));
gocardless.set_details(
app_id="APP123",
app_secret="S3CR3T",
access_token="ACCESSTOKEN123",
merchant_id="MERCHANT123",
)
gocardless.client.new_bill_url(30.00, name="Donation")
GoCardless.account_details = {
app_id: 'APP123',
app_secret: 'S3CR3T',
token: 'ACCESSTOKEN123',
merchant_id: 'MERCHANT123',
}
GoCardless.new_bill_url(amount: "30.00", name: "Donation")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment