Morocco

Learn about the dLocal supported payment methods in Morocco.

Market specifications

Take a look of all the payment methods available.

Country reference Cards supported Alternative Payment Method supported

Cards

Find all the information about the card supported capabilities.

Capabilities Process Card Payments

Alternative Payments

Learn how to integrate cash, bank transfer or wallet payment.

Wafacash


Market specifications

Do you want to know more information about Morocco's market? Go to the Morocco’s economy and eCommerce market article.

Country reference

country codecurrency codedocument namedocument formatdocument required?
MAMADCNIEBetween 5 to 20 charactersYes

Cards supported

payment_method_idBrand IDNamepayment_method_typeDetailsAllowed FlowsLogo
CARDVIVisaCARDCredit Card ​DIRECT REDIRECT
CARDVDVisa Debit ​CARDDebit Card ​DIRECT REDIRECT
CARDMCMastercardCARDCredit Card ​DIRECT REDIRECT
CARDMDMastercard Debit ​CARDDebit Card ​DIRECT REDIRECT
CARDUPUnionPayCARDCredit Card ​DIRECT REDIRECT

ℹ️

To offer all the card options that may be available in your integration, send the payment_method_id as CARD.

Alternative Payment Method

payment_method_idNamepayment_method_typeDetailsAllowed FlowsLogo
WFWafacashTICKETCash PaymentsDIRECT REDIRECT


Cards

Capabilities

Visa CreditMastercard CreditVisa DebitMastercard DebitUnionPay
RefundsYesYesYesYesYes
RecurringYesYesYesYesYes
Chargeback optionYesYesYesYesYes
Chargeback Dispute optionYesYesYesYesYes
DescriptorMerchant nameMerchant nameMerchant nameMerchant nameMerchant name

How to process Card Payments?

Learn how to process payments with credit and debit cards with dLocal in our Card Payments section.



Alternative Payment Method

Wafacash

Wafacash is an extremely attractive option for merchants looking to dive into the country. It is currently the leader in cash methods.

Capabilities

Wafacash
Max. expiration time supported5 days
Notification delayImmediate
RefundsYes
FlowDIRECT
REDIRECT

Request Parameters

PropertyTypeDescriptionMandatory?
amountNumberAmount to be charged.Yes
currencyStringMAD

Transaction currency in ISO 4217.
Yes
countryStringMA

Transaction country in ISO 3166.
Yes
payment_method_idStringWF

ID of the selected payment method
Yes
payment_method_flowStringDIRECT or REDIRECTYes
payer.nameStringName of the payer.Yes
payer.emailStringEmail of the payer.Yes
payer.documentNumberDocument of the payer.Yes
order_idNumberID of the capture given by the merchant in their system. Think of it as an external ID of the capture.No
notification_urlStringNotifications will be sent in every change of status of a payment to the notification_url specified by the merchant.No

Examples

{
    "amount": 1000,
    "currency": "MAD",
    "country": "MA",
    "payment_method_id": "WF",
    "payment_method_flow": "DIRECT",
    "payer": {
        "name": "Jane Doe",
        "email": "[email protected]",
        "document": "12345678",
        "address": {
            "country": "MA",
            "state": "Casablanca",
            "city": "Casablanca",
            "zip_code": "8858",
            "street": "Main St.",
            "number": "540"
        }
    },
    "order_id": "34545sk3483kqw0",
    "description": "Tshirt",
    "notification_url": "http://merchantsite.com/notification/new",
    "callback_url": "http://merchantsite.com/success_page"
}
{
    "id": "D-4-04254154-fc96-4d2e-3edq-1cb8f161bce8",
    "amount": 1000,
    "currency": "MAD",
    "payment_method_id": "WF",
    "payment_method_type": "TICKET",
    "payment_method_flow": "DIRECT",
    "country": "MA",
    "bank_transfer": {},
    "ticket": {
        "type": "CUSTOM",
        "number": "720420093952",
        "expiration_date": "2023-01-28T22:59:00.000+0000",
        "id": "1100351374387",
        "company_name": "Depansum Marruecos",
        "provider_name": "apm-binga",
        "provider_logo": "https://static.dlocal.com/images/providers/logo_wafa.png",
        "image_url": "https://pay.dlocal.com/gmf-apm/payments/M-ce2fbbe6-98hg-4193-bb04-9e5c18139ccf",
        "amount": 1000,
        "currency": "MAD"
    },
    "created_date": "2023-01-23T17:40:36.000+0000",
    "status": "PENDING",
    "status_detail": "The payment is pending.",
    "status_code": "100",
    "order_id": "34545sk3483kqw0",
    "notification_url": "http://merchant.com/notification/new"
}

Example ticket

Example Wafacash UI

Example Wafacash UI