Skip to main content

Testing Your Setup

Test your setup in sandbox mode before you take real payments.

Turn on sandbox mode​

  1. Go to WooCommerce → Settings → Payments
  2. Open the Moneris payment method you use
  3. Turn on Sandbox (Moneris (Legacy) and Moneris Checkout) or Sandbox Mode (Moneris (New API))
  4. Save the settings

Test credentials​

Moneris (Legacy) and Moneris Checkout use a Store ID and API Token. Moneris' public test stores:

Store IDAPI TokenUse it for
store5yesguyGeneral testing
monerishurgle3-D Secure testing on Moneris (Legacy)

Test transactions show in the test Merchant Resource Center: https://esqa.moneris.com/mpg/

Moneris (New API) does not use a Store ID or API Token. Use your own sandbox Client ID, Client Secret and Merchant ID from the Moneris Developer Portal. See Moneris (New API).

Test cards​

CardNumberResult
Visa4242424242424242Approved with a normal amount
Mastercard5454545454545454Approved with a normal amount
Visa4485621544903528Always declined (insufficient funds)

Use any security code and any future expiry date.

The amount decides the result

In the Moneris sandbox, the order total decides whether a payment is approved or declined, not the card. Totals such as $10.00 or $15.00 are approved. Some cent values and amount ranges decline on purpose, for example any total ending in .51. If a test payment declines unexpectedly, try a total like $15.00. To test a decline, use the always-declined card above. Moneris' Penny Value Simulator has the full list.

3-D Secure test cards​

ScenarioVisaMastercard
Approved with no challenge40000000000027015200000000002235
Customer is challenged (asked to confirm)40000000000025035200000000002151
Challenge fails40000000000023705200000000002490

On Moneris (Legacy), use the moneris / hurgle test store for 3-D Secure.

On Moneris (New API), 3-D Secure only runs once Moneris has enabled it on your sandbox account. Until then, payments go through without it and the order notes say so.

Testing checklist​

Basics​

  • The payment method shows at checkout
  • An approved payment completes the order
  • A declined payment shows the customer a clear message
  • The order gets the right status
  • The customer and admin emails arrive

Features you use​

  • Saved cards: save a card, then pay with it
  • Refunds: a partial and a full refund from the order screen
  • Authorize: authorize, then complete the order to take the payment
  • 3-D Secure: a payment with no challenge and one with a challenge
  • Subscriptions: a sign-up, then a renewal (from the subscription screen, choose Process renewal)
  • AVS and CVD rules: an order your rules should hold or reject

Checking the results​

  • Order notes: every payment adds notes to the order with what Moneris answered
  • Logs: WooCommerce → Status → Logs. Look for these sources:
    • wpheka-moneris-api for Moneris (New API)
    • wpheka-gateway-moneris-pro for Moneris (Legacy), when Logging is on
    • wpheka-gateway-moneris-pro-mco for Moneris Checkout, when Logging is on
  • Moneris: the test Merchant Resource Center for Moneris (Legacy) and Moneris Checkout

Going live​

  1. Switch to live credentials

    • Turn off sandbox mode
    • Enter your live credentials
    • Save the settings
  2. Take one real payment

    • Place a small order with a real card
    • Check that it shows in your Moneris account
    • Refund it from the order screen
  3. Watch the first orders

    • Check the first few live orders and their notes
    • Keep the log in mind if anything looks wrong

If a test fails​

  • Check the settings in the payment method's setup guide
  • Read the order notes and the log
  • Check that sandbox mode matches the credentials you entered
  • Seeing "Too many payment attempts"? Testing declines adds up quickly. Wait an hour. Or set Maximum Payment Attempts to 0 and turn off IP Rate Limiting while you test. Turn them back on before going live.
  • Contact WPHEKA support with the order number and the log lines for that order. For Moneris (New API), include the trace ID from the order notes.