Payrix Hosted eDDR (electronic Direct Debit Request)
eDDR (electronic Direct Debit Request)
The Payrix platform offers the ability to utilise the Payrix Hosted eDDR (electronic Direct Debit Request) page which is implemented via a re-direction to the Payrix Hosted eDDR page. This offering is the simplest way to integrate a payment solution to your software with minimal development work required.
Functionality of an eDDR:
Purpose of eDDR is to collect payment method to submit a following scheduled payment via API to debit the payers account
Has the ability to collect either card or bank account as payment method
Payment is NOT submitted in real-time
Submit schedule via API (date and amount specified in API body request)
The process for using the Payrix eDDR token is simply:
Call the POST Generate eDDR Token to obtain a token and a redirect URL.
Redirect your customer to the URL you received with the token.
After your customer has completed the form we will redirect them back to your website using the returnURL you provided when generating the token.
Call the Token Lookup API endpoint to obtain the result of the token.
Please note the token is valid for 20 minutes. You may wish to use a landing page to trigger this if the page will not be completed as part of the flow.
The typical API workflow is noted below:
Payrix Hosted eDDR
Schedule single or multiple payments - Implement Scheduling API to debit payer
Determine result of scheduled debit - GET Search for transaction status change
Remove transaction from data set - POST Acknowledge transaction status change
Step 1 - Sample API flow for successful eDDR page completion
API |
---|
Refer to Token [eDDR] Generate Model and Token [eDDR] Payer Model for more information around the API properties. |
Sample |
---|
Example Request {{url}}/businesses/{{business-id}}/services/tokens/eddr/ "ReturnUrl": "https://www.payrix.com.au?ddr=123456789",
"Template": "Basic-eDDR",
"Payer": {
"UniqueReference": "EDDR-TOKEN-PAYER-U-1",
"GroupReference": "EDDR-TOKEN-PAYER-GRP-1",
"FamilyOrBusinessName": "Surname",
"GivenName": "FirstName",
"Email": "payer.eddr.1@payrix.com.au",
"Phone": "0733332222",
"Mobile": "0411228833",
"Address": {
"Line1": "1 Test St",
"Line2": null,
"Suburb": "Testville",
"State": "QLD",
"PostCode": "4001",
"Country": null
},
"OverrideExisting": false
},
"Schedule": null,
"Audit": {
"Username": "EddrTokenTests",
"UserIP": "1.2.3.4"
}
}'
Example Response {
"token": "28e24e60-0fb8-44e2-918e-e38e038e52f3",
"redirectToUrl": "https://sandbox.paymentsapi.io/ui/eddr/api/28e43e60-0fb8-78e2-912e-e38e038e52f3"
} |
Next Steps once page is completed and submitted
API |
---|
Call the Token Lookup API endpoint to obtain the result of the token.
|
Sample |
---|
Example Request Example Response |
Step 2 - Initiate a scheduled debit
Refer to Implement Scheduling API to debit payer
This concludes the API workflow of implementing the Payrix eDDR page. Refer to the next steps in implementation or our other methods available for accepting payments.