Created
September 17, 2012 13:08
-
-
Save hmarr/3737176 to your computer and use it in GitHub Desktop.
GoCardless Client Libraries
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
GoCardless.AccountDetails = new AccountDetails { | |
AppId = "APP123", | |
AppSecret = "S3CR3T", | |
Token = "ACCESSTOKEN123 manage_merchant:MERCHANT123" | |
}; | |
GoCardless.Connect.NewBillUrl(new BillRequest("MERCHANT123", 30m)); |
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
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); |
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
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' | |
)); |
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
gocardless.set_details( | |
app_id="APP123", | |
app_secret="S3CR3T", | |
access_token="ACCESSTOKEN123", | |
merchant_id="MERCHANT123", | |
) | |
gocardless.client.new_bill_url(30.00, name="Donation") |
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
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