Skip to content

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 ​

  1. Your organisation is approved.
  2. Your key is in a server secret and not in a web page, a mobile app or a repository.
  3. Each person who needs access has the right role.

Create call ​

  1. The amount is in minor units. A test of 100 is 1.00.
  2. The body has only amount, reference, description, return_url and phone.
  3. Idempotency-Key is your order id. You store it with the order.
  4. return_url uses https.
  5. phone has digits only.
  6. You call the host of the correct country.

Confirm ​

  1. You store the checkout id with the order.
  2. You call GET before you fulfill.
  3. You fulfill only when status is completed.
  4. You fulfill each checkout once.
  5. 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.

  1. Pay a checkout. The GET response shows completed, and payment.provider_receipt has a receipt.
  2. Decline the prompt. The checkout stays open. Pay again and it completes.
  3. Wait for a checkout to expire. The status is expired. You do not fulfill it.
  4. Send the same Idempotency-Key twice. You get the same checkout.
  5. Open the return_url link by hand with a made-up status. Your server ignores it and reads the checkout.

Switch to live ​

  1. Create a mkp_live_ key for the production deployment. See Environments.
  2. Change the host and the key in your configuration.
  3. Send new orders to MOOKHPay.
  4. Let orders that started on the legacy gateway finish there.
  5. Watch the first live payments.
  6. Stop calling the legacy API only after these payments pass.

Staging documentation. A checkout made with a secret key on staging charges a real phone. See Environments.