3️⃣ Configure webhooks

  Last updated: 

 

It is strongly recommended that you configure webhooks on your JavaScript Library solution. When configured, URL notifications are sent to your system when payments are processed on your account.

  If you do not configure webhooks as explained below, you may not be notified of payments processed on your account, e.g. in cases of client-side errors that occur prior to the response being returned.

  1. Sign in to Portal.
  2. Search for your sitereference using the search box found at the top of the page.
  3. When viewing your site details, click “Rule manager“.

CJ1-EN.png

  1. Select the action type “URL notification” from the drop-down and your browser will be redirected.

CJ2-EN.png

  1. Create a new URL notification rule:
    • (A) Click “Add new condition” and specify the circumstances in which the URL notification is to be triggered following a transaction. In the Requests box displayed, ensure “AUTH” is ticked (meaning the notification is triggered following payment authorisations).
      Click here to learn more about configuring conditions.
    • (B) Click “Add new action” and specify the endpoint for the URL notification.
      Click here to learn more about URL notification actions.
    • (C) Using the drop-down boxes, assign the condition to the action and click “Create rule“.

CJ3-EN.png

  1. Ensure the rule is active (this is shown with a tick under the Active column). Once enabled, the rule will be applied to all payment sessions for the given sitereference, and the URL notification will be triggered whenever the condition specified is met.

  All new rules should be created on your test sitereference and tested to ensure they work as expected before being added to your live sitereference.

  1. You must configure your system to respond to all URL notifications received from Trust Payments with an HTTP 200 OK response.
    For example: “HTTP/1.0 200 OK”.
    Your system must reply within 8 seconds of receiving a notification.

 


 

Your progress

Now you have configured webhooks for your JavaScript Library solution, we now recommend you process your first test transactions.

Proceed to Step 4   

Was this article helpful?
0 out of 0 found this helpful