Payment methods
ACSS
Debit a Canadian bank account, and present the agreement the payer must see.
ACSS debits a Canadian bank account. It uses the same POST /v1/transactions/pay call as cards and ACH, with an acss object.
acss requires accountHolder, institutionNumber (3 digits), transitNumber (5 digits), and accountNumber. bankAccountType is optional and takes the same four values as ACH.
Before the first debit, the payer must see and accept a pre-authorized debit (PAD) agreement. dhango does not display it, so add it to your own checkout. Stripe describes what the agreement must include in its PAD agreement guide.
To test, use the Fake processor, which accepts ACSS payments and refunds, or a provider test account.
acss
curl -s -u "$DHANGO_KEY:$DHANGO_SECRET" \ -H "Content-Type: application/json" \ -H "accountKey: $ACCOUNT_KEY" \ -d '{"payer":"Ada Lovelace","amount":40.00,"payerFee":0,"acss":{"accountHolder":"Ada Lovelace","institutionNumber":"001","transitNumber":"12345","accountNumber":"123456789","bankAccountType":"PersonalChecking"}}' \ https://api.dhangodemo.com/v1/transactions/paybody.acss = { accountHolder: "Ada Lovelace", institutionNumber: "001", transitNumber: "12345", accountNumber: "123456789", bankAccountType: "PersonalChecking"};import os, uuid, requestsauth = (os.environ["DHANGO_KEY"], os.environ["DHANGO_SECRET"])headers = {"accountKey": os.environ["ACCOUNT_KEY"]}response = requests.post( "https://api.dhangodemo.com/v1/transactions/pay", auth=auth, headers=headers, json={ "payer": "Ada Lovelace", "amount": 40.0, "payerFee": 0, "acss": { "accountHolder": "Ada Lovelace", "institutionNumber": "001", "transitNumber": "12345", "accountNumber": "123456789", "bankAccountType": "PersonalChecking" } },)response.raise_for_status()payment = response.json()