Notifications
Our APIs use webhooks for event notifications. Webhooks are push API calls that let your app know an event has happened.
In order to receive notifications about the events in your platform, you have to previously configure the notification when you do the POST
of the transaction, indicating the URL in the field callback
.
Event
Whenever an event occurs, we will send you a notification in json format using HTTP POST to the URL that you specified.
Each JSON-formatted POST notification message contains event information based on the resource type and the event type.
Note: If your app responds with any other status code, we tries to resend the notification message 5 times over the course of three days.
Security - To prevent downgrade attacks
Every notification we send to your endpoint is signed. We do this by including a header named "SmartFastPay-Signature"
in every event we send. This allows you to verify and ensure that the event was sent by SmartFastPay and not a third party.
Notification example
An example of a successful payment notification:
Successful Payment Notification
Notification data details
Parameter | Description |
---|---|
| The created transaction by the request made unique identificator. |
| The customer id stored on your platform for future identification. |
| The id of the transaction generated in you platform. |
| The amount that the client specified when initiating the transaction showed IN DOLLARS (use dot instead of comma) |
| The current status of the transaction. These are our statuses: |
| Shows the type of this transaction. |
| The current status of the payment. These are our statuses: |
| The exchange rate applied to the current transaction |
An example of an unsuccessful payout notification
Unsuccessful Payout Notification
Notification data details
Parameter | Description |
---|---|
| The created transaction by the request made unique identificator. |
| The customer id stored on your platform for future identification. |
| The id of the transaction generated in you platform. |
| The amount that the client specified when initiating the transaction showed IN DOLLARS (use dot instead of comma) |
| The current status of the transaction. These are our statuses: |
| Shows the type of this transaction. |
| The current status of the payment. These are our statuses: |
| The exchange rate applied to the current transaction |