Appearance
Go-live checklist
Work through this list in order. Keep your legacy integration running until every item passes.
Staging charges real money
A mkp_test_ key opens real checkouts, and a staging checkout charges a real phone. A checkout made with a secret key has no test mode. Test with the smallest amount and your own phone. The test numbers pay a checkout from a Pay Button test key and a direct charge from a mkp_test_ key, never a checkout from a secret key. See Environments.
Account
- Your organisation is approved.
- Your key is in a server secret and not in a web page, a mobile app or a repository.
- Each person who needs access has the right role.
Create call
- The amount is in minor units. A test of
100is 1.00. - The body has only
amount,reference,description,return_urlandphone. Idempotency-Keyis your order id. You store it with the order.return_urluseshttps.phonehas digits only.- You call the host of the correct country.
Confirm
- You store the checkout
idwith the order. - You call
GETbefore you fulfill. - You fulfill only when
statusiscompleted. - You fulfill each checkout once.
- You poll the checkouts that you still wait for every 10 to 30 seconds. See Confirming a payment.
Test cases
Run each case with your own phone.
- Pay a checkout. The
GETresponse showscompleted, andpayment.provider_receipthas a receipt. - Decline the prompt. The checkout stays
open. Pay again and it completes. - Wait for a checkout to expire. The status is
expired. You do not fulfill it. - Send the same
Idempotency-Keytwice. You get the same checkout. - Open the
return_urllink by hand with a made-upstatus. Your server ignores it and reads the checkout.
Switch to live
- Create a
mkp_live_key for the production deployment. See Environments. - Change the host and the key in your configuration.
- Send new orders to MOOKHPay.
- Let orders that started on the legacy gateway finish there.
- Watch the first live payments.
- Stop calling the legacy API only after these payments pass.