executePayment
Executes a payment using the SessionId you have from the initiateSession
endpoint. This endpoint will return a payment URL to redirect your customers to the payment page.
Query Parameters
The API Key of your account.
The SessionId you have from the initateSession
endpoint.
Sample: 783851c4-b10f-4e40-bb2c-fcb657975ffb
.
The invoice total amount that should be paid by the customer.
Sample: 313.14
.
Your Supplier Code (you’ll get it after joining DashPay)
Sample: 123
.
Set this property to true
to send the request to the development
environment.
Response properties
The response status.
The description of the response status.
List of validation errors (if any).
A unique integer value of the created invoice.
true
or false
to indicate if this URL for Direct Payment method.
The URL that you should redirect the customer to OR submit the card details to process the payment.
Refers to the order or transaction ID in your system that you have sent in the request earlier.
Error Codes
Here’s a list of possible error codes of this endpoint.
Code | Description |
---|---|
1 | Missing or invalid api key |
2 | InvoiceValue is a required parameter. |
3 | Suppliers is not valid. |
4 | wrong supplier code. |
5 | An error meessage from the bank. |