Take card payments through MyFatoorah, on its payment page or on your checkout page, with refunds back to the card.
Where to find itShopSettingsPayment GatewaysMYFATOORAH
Before you start
The Payment Gateways tab must be available to you, and your platform must allow this gateway for your shop. Ask support if the Payment Gateways tab or a gateway is missing.
Needs
Turned on by support
Who can use this
Shop owner
MyFatoorah takes payments in your shop's currency. By default customers pay on a MyFatoorah page and return to your store. You can also let them pay by card, Google Pay and Apple Pay without leaving your checkout page.
Before you start
You need your own account with MyFatoorah.
Your shop's currency must be one MyFatoorah takes: SAR, BHD, AED, QAR, OMR, KWD, JOD or EGP. With another currency, no MyFatoorah payment is created.
Go to Shop › Settings › Payment Gateways and select the MYFATOORAH card to unfold it.
Fill in the connection details
Field
Required
What to enter
Is Sandbox Mode
No
On: MyFatoorah's test environment, with a test API key and test cards. Off: your live account
API key
Yes
From the MyFatoorah portal › Integration Settings › API Key. The test key with sandbox mode on; the live key, which starts with SK_ and your country (for example SK_ARE_), with it off. Write-only
Webhook secret key
No, but recommended
The secret key of the webhook (next step). Write-only
Apple Pay in the form on your checkout page. See Apple Pay
Saved cards
No
Signed-in customers can save a card in MyFatoorah's form and pay with it next time. MyFatoorah must first enable "Save Card" on your account: ask your MyFatoorah account manager
Register the webhook
The card shows a webhook address. In the MyFatoorah portal, open Integration Settings › Webhook Settings and enable the webhook. Add the address, tick the events Transaction Status Changed and Refund Status Changed, choose version V2 with a secret key, and save. Copy that secret key into Webhook secret key on the card.
With the webhook, a customer who closes the page after paying still gets their order, and refunds are confirmed by themselves. Without the secret key, a message from MyFatoorah is only taken as a prompt to check the payment with MyFatoorah.
Switch it on and save
Add MYFATOORAH to the Payment Gateways list at the top of the tab, then select Save Settings. The card shows Switched on.
Live payments go to MyFatoorah in your account's country (UAE, Saudi Arabia, Qatar or Egypt, otherwise MyFatoorah's main service for Kuwait, Bahrain, Jordan and Oman). The live key names the country, so there is nothing to choose. The customer's phone number is sent with your shop's country code.
On your checkout page
With Pay on the checkout page on, MyFatoorah's secure form opens inside your checkout, and customers pay by card or Google Pay there. Off, they are sent to the MyFatoorah payment page. Methods that need their own page, such as KNET or Benefit, always stay on the MyFatoorah payment page. See Pay on the checkout page.
Apple Pay
Apple Pay shows in the form on your checkout page only when Apple Pay on the checkout page is on and every domain of your website is registered for Apple Pay with your MyFatoorah account. Until then Apple Pay stays on the MyFatoorah payment page. MyFatoorah's Apple Pay domain file is added by support: ask them. Your website then serves it, and every domain is registered with MyFatoorah automatically.
Under Apple Pay on your website domains the card shows:
You see
Meaning
Apple Pay can be offered
Every domain is registered. Apple Pay shows once the switch is on
Apple Pay not offered yet
"Apple Pay shows on the checkout page only once the switch is on and every website domain below is registered."
Then each domain with its state:
State
Meaning
Registered
Ready for Apple Pay
Register again (file or API key changed)
The API key, the sandbox switch or the domain file changed since. It is registered again by itself when you save with the Apple Pay switch on
Not serving the file
The domain does not show the domain file yet, with the reason. For a new custom domain this is usually its certificate, which is still being issued
Failed
MyFatoorah refused the domain, with its message. Often the file belongs to another MyFatoorah account, or to sandbox instead of live. Contact support
Removed
A domain your website no longer uses
A new custom domain is registered when it becomes active. Until it is, Apple Pay is off on the whole website.
Refunds
A MyFatoorah payment can be refunded back to the card: choose Original payment method when you refund a return. Partial refunds are allowed, several per payment, up to what is left.
MyFatoorah carries out a refund later, through its finance team or Auto Refund on your account. Until then it is pending. Once MyFatoorah reports it refunded through the webhook, it is recorded as refunded.
MyFatoorah refunds in your account's base currency. When that is not your shop's currency, the refund is refused with "MyFatoorah refunds in your account's currency (KWD), not in AED: refund this payment in the MyFatoorah portal."
A payment made before automatic refunds is refused with "This MyFatoorah payment was made before automatic refunds: refund it in the MyFatoorah portal."
If MyFatoorah did not answer, the return shows the refund outcome as unknown. Check Refunds › Refunds List in the MyFatoorah portal, then record it as refunded or not refunded. See Refunds by payment method.
Amount and currency check
A MyFatoorah payment counts only when MyFatoorah reports exactly the amount and currency it was created for. Otherwise no order is placed and the incomplete order shows Refused capture with the reason. Money may have been taken: check the payment in your MyFatoorah portal and refund it there. See Payments needing attention.
Test it
Connect with a test API key and Is Sandbox Mode on, so the card reads Sandbox. Place a test order, choose this method and pay with a test card from MyFatoorah's own documentation. Check that the order arrives in Orders. Then enter your live API key, switch Is Sandbox Mode off and confirm the pill reads Live. Try one small real payment on the MyFatoorah payment page first, then, if you use it, on your checkout page.
Common problems
The save is refused with "MYFATOORAH is switched on but is missing: …". Fill the fields it names, or take MYFATOORAH out of the list.
The card reads Not connected: a required field is empty.
A customer paid but closed the page, and no order came: register the webhook and save its secret key.