Configure URL notifications for WooCommerce

  The following steps only apply if using our API plug-in (rather than the plug-in that makes use of our hosted Payment Pages solution).

Follow the steps provided below to configure and enable URL notifications in MyST, to ensure the WooCommerce plugin is updated when transactions have been processed on your Trust Payment's account. This updates the status of the order in WooCommerce from "Pending Payment" to "Processing".

  1. First of all, you will need to sign in to your WordPress Admin Panel, and go to:
    Settings > Payments > Trust Payments for WooCommerce

  2. Tick to enable Enable Url Notification and enter a password into the Url Notification Password field. You will need to enter this password again in MyST later.


  3. Sign in to MyST.

  4. Search for your Trust Payments sitereference using the search box found at the top of the page.

  5. When viewing your site details, click “Rule manager“.


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


  7. Create a new URL notification rule:

    Add new condition
    (A) Click “Add new condition” and specify the circumstances in which the URL notification is to be triggered following a transaction. Ensure the following options are ticked:

    • In the Accounts box displayed, ensure "ECOM" and "MOTO" is ticked.
    • In the Requests box displayed, ensure “AUTH” is ticked.
    • In the Error codes box displayed, ensure "0 - Ok" is ticked.
    • In the Settle statuses box displayed, ensure "not in" is selected in drop-down box and "3 - Cancelled" is ticked.

    Once saved, the condition will look like this in the Rule manager:


    Add new action
    (B) Click “Add new action” and specify the endpoint for the URL notification.

    • Ensure the settings displayed are configured as follows:
      • Action name: <Specify a recognisable name>
      • Use site security details: NO
      • Security algorithm: sha256
      • Notification password: <Enter the password you entered earlier in the WordPress Admin Panel>
      • Pipe notification to browser: NO
      • Process notification: failover
      • Website address (URL): <Your store URL> e.g.
      • Method: POST
    • You must also include the following Fields:
      • Error Code (errorcode)
      • Order Reference (orderreference)
      • Payment Type (paymenttypedescription)
      • Request Type (requesttypedescription)
      • Settle Status (settlestatus)
      • Site Reference (sitereference)
      • Transaction Reference (transactionreference)

    Once saved, the action will look like this in the Rule manager:


    Add new rule
    (C) Using the drop-down boxes, assign the condition to the action and click “Create rule“.

  8. 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. Once enabled, no further steps are needed.

      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.
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request