How to set up Paymob, Kashier or Fawry payment gateway in WooCommerce
If you sell online in Egypt, your customers expect to pay by card, mobile wallet or Fawry reference code. This guide shows how to set up a Paymob, Kashier or Fawry payment gateway in WooCommerce: getting your merchant keys, installing the right plugin, connecting the callback URL and running a safe test before you go live.
For an overview of every payment option (cash on delivery, bank transfer, wallets and gateways) read How to set up payment methods for a WooCommerce store in Egypt first. This article focuses on the technical connection.
Before you start
- Your website must use HTTPS. Gateways reject callbacks to plain HTTP sites. See How to get a free SSL certificate for your website (AutoSSL).
- Open a merchant account with the gateway and finish its verification (business documents, bank account). Approval time and fees are set by the provider, not by EgWeb.
- Update WordPress, WooCommerce and your theme, and take a backup (How to back up and restore your website).
Step 1: Get your keys from the gateway dashboard
Each gateway gives you a set of credentials. The names differ slightly, but you will usually find:
- Paymob: an API key, a public key and a secret key, an HMAC secret, and one Integration ID per payment method (cards, mobile wallets, kiosk and so on).
- Kashier: a merchant ID and API keys for test mode and live mode.
- Fawry (FawryPay): a merchant code and a security key, with separate staging and production environments.
Copy them into a safe place. Never paste them in emails, screenshots or support chats with anyone you do not trust.
Step 2: Install the official plugin
- In WordPress go to Plugins → Add New and search for the gateway name.
- Install the plugin published by the gateway itself (check the author name and the number of active installs). If it is not in the WordPress directory, download it from the gateway's merchant dashboard or developer docs.
- Activate it. Avoid unofficial "nulled" copies: they are a common way to infect stores with malware.
Step 3: Enter the keys in WooCommerce
- Go to WooCommerce → Settings → Payments.
- Find the new gateway in the list, enable it and click Manage (or Set up).
- Paste the keys, choose test / sandbox mode first, and set the title the customer will see at checkout, for example "Pay by card or wallet".
- For Paymob, add each Integration ID for the methods you want to show.
- Save the settings.
Step 4: Set the callback (webhook) URL
After a payment, the gateway tells your store whether it succeeded. That is what moves the order from Pending payment to Processing. The plugin settings page usually shows the exact callback or webhook URL to copy. Paste it into the matching field in the gateway dashboard (for Paymob, in the integration settings for each payment method). If this step is missing, customers pay but the order stays pending.
Step 5: Test, then go live
- Place a test order using the test card numbers from the gateway's documentation.
- Check that the order status changes to Processing and that the order note shows the transaction ID.
- Test a failed payment too: the order should become Failed or stay Pending, and no stock should be lost permanently.
- Switch to the live keys, place one small real order, then refund it from the gateway dashboard.
Common problems
- Customer paid but the order is still pending: the callback URL is missing or wrong, the HMAC secret does not match, or a security plugin or firewall is blocking the gateway's request. Check the plugin's log (often under WooCommerce → Status → Logs).
- "Invalid integration" or authentication errors: you mixed test keys with live mode, or copied a key with an extra space.
- The gateway does not appear at checkout: it is not enabled, the currency is not EGP, or the plugin is not compatible with the block-based checkout. Check the plugin page for "Cart and Checkout blocks" support, or switch the checkout page to the classic
[woocommerce_checkout]shortcode.
Frequently asked questions
Can I use more than one gateway at the same time?
Yes. WooCommerce can show several payment methods. Many stores offer a card gateway plus cash on delivery. Keep the list short so customers are not confused.
How much does each gateway charge?
Fees and settlement periods are set by each provider and change over time. Ask the gateway's sales team for current rates before you sign.
Can EgWeb set this up for me?
Yes. Send us your merchant keys through a secure support ticket and our team can install and test the gateway on your store. See also our web design services.