Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

A webhook is an event driven notification from Blink to your system.

The return webhook is triggered when the payment has been processed and the notification webhook is triggered when the transaction status is changed in Blink.

The user is redirected to the return_url or notification_url specified in the intent request.

The return webook passes a paramater called res in the URL. This res is the transaction_id in base64_encoded format, which you need decode using base64_decoded.



Return Webhook

POST https://<return_url>?res=12345

Headers

Content-Type string
Content type.

Authorization string
Access token generated from create token request.

Attributes

transaction_id string
Transaction ID.

status string
Status.

note string
Note.

Request

POST https://my_domain/return?res=QkwtMDBGN0Q…..1Ng%3D%3D HTTP/1.1
Content-Type: application/json

Response

HTTP/1.1 200 OK
Content-Type: application/json


Notification Webhook

POST https://v1/pay/notification

Headers

Content-Type string
Content type.

Authorization string
Access token generated from create token request.

Attributes

notification_url string
Notification url.

payment_intent string
Payment Intent.

Request

POST https://secure.blinkpayment.co.uk/api/v1/pay/notification HTTP/1.1
Content-Type: application/json
Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbG...

{
    "notification_url": "https://mydomain.com/notification",
    "payment_intent": "pi_****" 
}

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
    "message": "Success"
}

  • No labels