Testing Your Setup
Test your setup in sandbox mode before you take real payments.
Turn on sandbox mode
- Go to WooCommerce → Settings → Payments
- Open the Moneris payment method you use
- Turn on Sandbox (Moneris (Legacy) and Moneris Checkout) or Sandbox Mode (Moneris (New API))
- Save the settings
Test credentials
Moneris (Legacy) and Moneris Checkout use a Store ID and API Token. Moneris' public test stores:
| Store ID | API Token | Use it for |
|---|---|---|
store5 | yesguy | General testing |
moneris | hurgle | 3-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
| Card | Number | Result |
|---|---|---|
| Visa | 4242424242424242 | Approved with a normal amount |
| Mastercard | 5454545454545454 | Approved with a normal amount |
| Visa | 4485621544903528 | Always declined (insufficient funds) |
Use any security code and any future expiry date.
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
| Scenario | Visa | Mastercard |
|---|---|---|
| Approved with no challenge | 4000000000002701 | 5200000000002235 |
| Customer is challenged (asked to confirm) | 4000000000002503 | 5200000000002151 |
| Challenge fails | 4000000000002370 | 5200000000002490 |
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-apifor Moneris (New API)wpheka-gateway-moneris-profor Moneris (Legacy), when Logging is onwpheka-gateway-moneris-pro-mcofor Moneris Checkout, when Logging is on
- Moneris: the test Merchant Resource Center for Moneris (Legacy) and Moneris Checkout
Going live
-
Switch to live credentials
- Turn off sandbox mode
- Enter your live credentials
- Save the settings
-
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
-
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.