Anchor | ||||
---|---|---|---|---|
|
Return Webhook
POST GET https://<return_url>?res=12345
Headers
Content-TypestringContent type.Authorizationstring
Access token generated from create token request.
Attributes
transaction_idstring
Transaction ID.statusstring
Status.notestring
Note.transaction_id=BL-002A12345&status=Pending%2BSubmission¬e=Pending%2BSubmission&merchant_data=%257B%2522order_id%2522%253A%2522dd-12345678%2522%257D
Request
Code Block |
---|
POSTGET https://my_domain/return?res=QkwtMDBGN0Q…..1Ng%3D%3Dtransaction_id=BL-002A12345&status=Pending%2BSubmission¬e=Pending%2BSubmission&merchant_data=%257B%2522order_id%2522%253A%2522dd-12345678%2522%257D HTTP/1.1 Content-Type: application/json |
Response
Code Block |
---|
HTTP/1.1 200 OK
Content-Type: application/json |
Anchor | ||||
---|---|---|---|---|
|
Notification Webhook
POST https://v1/pay/notification<notification_url>
Headers
Content-Typestring
Content type is JSON.
Attributes
Authorizationtransaction_idstring
Access token generated from create token request.
Attributes
notification_urlTransaction id.
statusstring
The new status of the transaction.
notestring
Notification urlnote.payment_intentstring
Payment Intent
merchant_datajson
JSON string of all the optional data sent by the merchant.
Request
Code Block |
---|
POST https://secure.blinkpayment.co.uk/api/v1/pay/my_domain/notification HTTP/1.1 Content-Type: application/json Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG... { "notificationtransaction_urlid": "https://mydomain.com/notificationBL-****", "payment_intentstatus": "pi_****" } |
Response
Code Block |
---|
HTTP/1.1 200 OK Content-Type: application/json {Captured", "note": "Status changes to Captured", "messagemerchant_data": { "Success" } "order_id": 1234567 } } |
Response
Code Block |
---|
HTTP/1.1 200 OK |