PaymentMethod object and set it on the paymentMethod attribute of the AutoBill object and specify Direct Debit as the paymentMethodType (value = DirectDebit). If you do not specify a paymentMethod attribute, Subscribe uses the first payment method in the sort order on the associated Account object.
The following example constructs an EDD-based paymentMethod object, and sets it as the payment method for an AutoBill object. The example then creates the AutoBill object on the Vindicia server by calling update() on AutoBill with payment method validation turned on. (Note that this example shows a recurring transaction with a full rebill amount.)
To construct a UK DD-based PaymentMethod object, substitute the appropriate country code and currency type. Because EDD and UK DD are both direct debit payment methods, routing is determined by country code and currency type. With country code GB and currency GBP, the payment will route to UK DD. With one of the European country codes and the euro or a local currency, payment will route to EDD.
AutoBill object is in place, the recurring EDD or UK DD-based transactions it generates determine its status and the entitlements it grants to the associated Account object, as follows:
- Subscribe validates (the payment method for) a recurring transaction before submitting it to the payment processor for capture. (For more information, see the
AutoBill.``validatemethod in the Subscribe API Guide.)- If the validation fails, Subscribe sets the
AutoBillstatus toHard Error. This rarely happens if you validate the EDD or UK DD payment method when creating anAutoBillobject or when updating its payment method. - If the transaction passes the validation, Subscribe submits it to the payment processor. The processor checks the account number and bank routing number for the EDD or UK DD payment method against a negative file. If the transaction passes, Subscribe considers the transaction
Authorized, and the funds withdrawal process begins. Subscribe sets theAutoBillstatus toGood Standing(or retains that status), andAutoBillgrants (or continues to grant) the customer entitlements.
- If the validation fails, Subscribe sets the
- During the funds deposit process:
- If the processor receives a decline return code (a soft error due to insufficient funds, for example), the retry process starts. The payment processor triggers this process according to the retry schedule defined by the merchant. A retry does not affect the
AutoBillstatus, which remainsGood Standing. The rebillTransactionmoves to theDepositRetryPendingstatus, which is internal to Subscribe. The customer continues to have the entitlements granted by theAutoBillobject. - If the processor receives a reject return code, (a hard error because, for example, the customer bank account has been closed), and you have not provided a retry schedule to the processor, the rebill transaction fails. Subscribe sets the transaction status to
Cancelledand the correspondingAutoBillstatus toHard Error. - If Subscribe receives no response from the processor for four banking days, Subscribe sets the
Transactionstatus toCaptured. TheAutoBillobject retains itsGood Standingstatus until the beginning of the next billing period, and the customer’s entitlements remain valid until the next billing date.
- If the processor receives a decline return code (a soft error due to insufficient funds, for example), the retry process starts. The payment processor triggers this process according to the retry schedule defined by the merchant. A retry does not affect the
- Understanding Mandates for Recurring Billing with EDD
- Understanding Mandates for Recurring Billing with UK DD

