3. Handle completed session
Receiving hooks
You should configure hooks when creating sessions that you listen to to know when a session has completed. Hooks sent by Briqpay will contain the event type, status, sessionId and merchant references. The most common Signup use-case will look like this:
Session Status hook
"hooks": [
{
"eventType": "session_status",
"statuses": ["completed"],
"method": "POST",
"url": "https://example.com/notifications"
}
],
Since hooks are unauthenticated, you must read the session to verify that the hook is valid.