Callback Instant Transaction Notification
1. With PUT request.
In the call back Instant Transaction Notification, Smobilpay for e-commerce calls the configured notification URL.
URL | <notificationUrl>/<your_reference_id> |
HTTP method | PUT |
Request | |
Content-Type | application/json |
Path Params | merchantReferenceId |
Query Params | none |
Body | PaymentStatusNotificationRequest - [JSON] |
2. With GET request.
URL | <notificationUrl> |
HTTP method | GET |
Request | |
Content-Type | application/json |
Path Params | none |
Query Param | tx_id |
Query Param | status |
Body | none |
Data Types
Input Data Types:
Name | Type | Required | Maximum Length | Description |
status | string | Y | 25 | The payment status. Possible values: |
Example with PUT
Assuming the notification URL was configured as:
http://api.e-shop.maviance.de/callback
The generated URL request will be:
http://api.e-shop.maviance.de/callback/2f370df2
Request |
PUT /2f370df2 HTTP/1.1 |
Response |
HTTP/1.1 200 OK |
Example with GET
Assuming the notification URL was configured as:
http://api.e-shop.maviance.de/callback
Request |
curl -X 'GET' 'https://site/callback?tx_id=9823a2a22312874&status=CONFIRMED' |
Response |
HTTP/1.1 200 OK |