Skip to main content
Payzone Cash lets customers in Morocco order online and pay in cash. The customer gets a payment code at checkout and presents it at a payment point in the Payzone network. Payrails processes Payzone Cash through Payzone as the payment service provider (PSP).

How a Payzone Cash payment works

Payzone Cash is a cash voucher payment method:
  1. The customer selects Payzone Cash at checkout.
  2. Payrails creates a cash reservation with Payzone and returns a redirect URL to a Payrails page that shows the payment code.
  3. The customer presents the code at a payment point in the Payzone network and pays in cash.
  4. Payzone notifies Payrails of the payment, and Payrails updates the payment.
The payment stays pending until the customer pays. Payrails captures Payzone Cash payments immediately, so a paid payment is final. To stop a payment that is still pending, cancel it. To return funds after a paid payment, refund it.

Supported currencies and countries

Payzone Cash supports MAD (Moroccan dirham) as its presentment currency.

Supported workflows

Before you begin

Complete these steps before you send your first Payzone Cash payment through Payzone:
  1. Set up a Payzone integration in your workspace. Contact your Payrails account team if Payzone isn’t listed in your Payrails Portal yet.
  2. Ask Payzone for your Payzone Cash account details: the merchant ID, the POS ID, the provider ID, and the four MAC keys.
  3. In the Payrails Portal, go to Settings → Integrations, open your Payzone integration, and fill in the fields marked Required for Payzone Cash.
  4. Select Payzone Cash under Payment methods, and save.
  5. Add Payzone Cash as a payment option in a workflow that uses instant capture.

Request fields for Payzone

Send these fields in the authorize request, in addition to the standard authorize fields. Payrails checks Required fields and returns an error when one is missing or invalid. Fields required by the PSP pass the Payrails checks but the PSP can decline the payment without them.

Authorize a Payzone Cash payment

Call authorize a payment with payzoneCash as the paymentMethodCode. The response includes the redirect to the page that shows the payment code.
Authorize request
Show the payment code page to the customer, or redirect them to it. The payment stays pending until the customer pays at a payment point. Confirm the result through webhook notifications before you fulfill the order.

How Payzone handles Payzone Cash

  • Payzone sends a callback when the customer pays, and Payrails moves the payment from pending to captured. Payrails can’t query the payment status with Payzone, so the callback is the only source of the result.
  • To stop a payment the customer hasn’t paid yet, cancel the payment. Payrails cancels the cash reservation with Payzone, and Payzone confirms a reversal through a callback.
  • Payzone can decline amounts below its minimum.
Last modified on October 2, 2026