Your first test payment in 5 minutes
Take a real test payment through Monek without building a website. You'll create a payment with one command, open the payment link, and pay with a test card.
Try the interactive demo on the Checkout Page. It walks through the same steps without needing an account.
Step 1: Get a test account
Email support@monek.com and ask for a test Merchant ID. Test Merchant IDs never charge real cards. They return simulated responses based on the amount.
Both Monek gateways are live. Never use your live Merchant ID for testing, and never use real card details with a test Merchant ID.
Step 2: Create a payment
Run one of these commands, replacing YOUR_TEST_MID with your test Merchant ID. It asks Monek to prepare a £10.00 payment and gives you back a payment link that's valid for 60 minutes.
- PowerShell (Windows)
- cURL (macOS / Linux)
$MerchantId = 'YOUR_TEST_MID'
$body = @{
MerchantID = $MerchantId
Amount = 1000
CountryCode = '826'
CurrencyCode = '826'
MessageType = 'ESALE_KEYED'
Dispatch = 'NOW'
ResponseAction = 'REDIRECT'
ThreeDSAction = 'ACSDIRECT'
SuccessUrl = 'https://www.example.com/payments/success'
FailureUrl = 'https://www.example.com/payments/failure'
PaymentReference = 'QUICKSTART-001'
PreparedPaymentAction = 'JSON'
PreparedPaymentMinutes = 60
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$response = Invoke-RestMethod -Uri 'https://elite.monek.com/Secure/iPayPrepare.ashx' -Method Post -Body $body
$url = "https://elite.monek.com/Secure/Checkout.aspx?PaymentToken=$([Uri]::EscapeDataString($response.Token))"
$url
Start-Process $url
This prints the payment link and opens it in your browser.
curl -X POST https://elite.monek.com/Secure/iPayPrepare.ashx \
--data-urlencode "MerchantID=YOUR_TEST_MID" \
--data-urlencode "Amount=1000" \
--data-urlencode "CountryCode=826" \
--data-urlencode "CurrencyCode=826" \
--data-urlencode "MessageType=ESALE_KEYED" \
--data-urlencode "Dispatch=NOW" \
--data-urlencode "ResponseAction=REDIRECT" \
--data-urlencode "ThreeDSAction=ACSDIRECT" \
--data-urlencode "SuccessUrl=https://www.example.com/payments/success" \
--data-urlencode "FailureUrl=https://www.example.com/payments/failure" \
--data-urlencode "PaymentReference=QUICKSTART-001" \
--data-urlencode "PreparedPaymentAction=JSON" \
--data-urlencode "PreparedPaymentMinutes=60"
Monek replies with a token:
{"Token":"ros0r__702oH-XcyyZgmyQ!5CrFNkEJ...","ExpiryDate":"2026-11-04T12:00:00.0000000+00:00"}
Put the token on the end of this address and open it in your browser:
https://elite.monek.com/Secure/Checkout.aspx?PaymentToken=YOUR_TOKEN
In a real integration, your server makes this call. Your Merchant ID and payment details never appear in the customer's browser. See Prepared Payments.
Step 3: Pay with a test card
The Monek Checkout Page opens, showing £10.00. Fill it in with this test card:
| Field | Value |
|---|---|
| Cardholder Name | Any name |
| Card number | 4015 5011 5000 0216 |
| Expiry | 12 / the current year, e.g. 12 / 26 |
| CVC | 276 |
Click Pay £10.00. If you're asked to complete a 3-D Secure check, follow the prompts.
More test cards are on the Test Cards page.
Step 4: Check the result
After paying, you're sent to the SuccessUrl you set. The page itself won't load, because example.com isn't a real shop, but the result is in your browser's address bar:
https://www.example.com/payments/success?ResponseCode=00&Message=AUTHCODE%3A123456&CrossReference=...
ResponseCode=00means the payment was authorised.CrossReferenceis Monek's reference for the payment. You'd store it for refunds and later charges.
Test Merchant IDs respond based on the amount. Change Amount in Step 2 to 7500 (£75.00) to see a referral, or 12000 (£120.00) to see a decline. These amounts are for the standard test band. See Test Cards for the other bands.
Next steps
You've taken a test payment. To build it into your website:
- Checkout Page: the full guide, with the fields you'll need and a go-live checklist.
- Webhooks: get payment results sent straight to your server.
- Checkout SDK: if you'd rather show card fields on your own page.