Skip to content

Payment gateways for apps in the Gulf: how the integration works

Payments 3 min read
Payment gateways for apps in the Gulf: how the integration works

Connecting online payments is more than adding a "Pay now" button. Payment methods differ from one country to another, every gateway has its own sign-up rules, fees and integration method, and small implementation mistakes can mean duplicate charges or money that never arrives. This guide explains how the integration works and how to choose.

How payment works inside an app

  1. The app sends the purchase request to your server, not directly to the gateway.
  2. The server creates a payment with the gateway for the amount, currency and order number, and receives a payment link or session token.
  3. The app shows the gateway's secure payment page or ready-made fields, so the customer enters their details with the gateway, not with you.
  4. The gateway verifies the card and may require an extra check (3-D Secure).
  5. The gateway tells your server the result through a background notification (webhook), and the server updates the order status.

The golden rule: never store card numbers in your app or on your server. Leave that to the gateway so you avoid the heavy PCI DSS requirements.

Payment methods by market

  • Saudi Arabia: mada is the foundation, alongside Visa, Mastercard, Apple Pay and STC Pay, with instalment options such as Tabby and Tamara.
  • UAE: Visa and Mastercard cards, Apple Pay, and common instalment options.
  • Kuwait: KNET for local cards.
  • Qatar, Bahrain and Oman: local methods such as NAPS in Qatar and Benefit in Bahrain.
  • Egypt: cards, Fawry, Vodafone Cash, InstaPay and Meeza, available through local providers.

Check the methods of your target market before choosing the gateway; an international card alone is not enough in Saudi Arabia.

How to choose a gateway

  • Country and currency coverage: does it support your target markets and their currencies?
  • Local payment methods: mada, KNET and Fawry depending on the market.
  • Fees: the per-transaction percentage, fixed fees, refund fees and any monthly fee.
  • Settlement time: when does the money reach your account?
  • Documentation and SDKs: quality of the guides and availability of packages for Flutter and servers.
  • Onboarding: required documents, which often take longer than the coding, so start early.

Well-known gateways in the region include HyperPay, Moyasar, PayTabs, Tap and Checkout.com, and in Egypt Paymob and Fawry. Each has its strengths, and we choose with you according to your market, not by fame.

Technical details not to skip

  • Rely on the webhook: do not rely on the customer returning to the app to confirm payment; they may close the app or lose connection. The webhook is the reliable source.
  • Prevent duplicates: use a unique key per transaction (idempotency) so a request can be retried without charging twice.
  • Verify the signature: confirm the gateway's notification is genuine through its signature before changing the order status.
  • Handle failure: declined card, expired session and cancellation each need a message and an action.
  • Refunds and cancellations: design a clear path from the dashboard, as in the admin dashboard article.
  • Test environment: test everything in sandbox mode before launch.

These details depend on well-designed APIs; see REST API design rules.

Security and compliance

Saudi Arabia applies the Personal Data Protection Law (PDPL), and the UAE and Egypt have similar laws. Keep a clear privacy policy, collect the least data possible, and review the terms of the banks and the gateway. We recommend consulting a legal specialist about licensing requirements for your activity.

Previous work

We have built e-commerce stores and online ordering apps, including Shoobek Loobek, the E-Market store and the Mountain Lakes Bagels online ordering site. Learn about payment gateway integration and e-commerce stores and apps, and see our market pages for Saudi Arabia and the UAE. If you plan to take payments in your app, put it in the requirements checklist from the start. Contact us and we will choose the best gateway for you.

Read the next article: REST API design for mobile apps: seven rules

Our work

Projects where we applied these ideas

Real examples from our portfolio close to this article.

All projects

Keep reading

Related articles

Software Company in Cairo: What to Ask Before You Start

Software Company in Cairo: What to Ask Before You Start

Cairo hosts startups, public bodies, retail and real estate, each with different software needs. Here is how to match the solution to your business.

Read article
Software Company in Giza: Tourism, Industry and Universities

Software Company in Giza: Tourism, Industry and Universities

Giza combines technology hubs, pyramid-area tourism, industrial zones and universities. We show how software serves each sector with specific solutions.

Read article
Software Company in Alexandria: Port, Health and Tourism Apps

Software Company in Alexandria: Port, Health and Tourism Apps

Alexandria is a port, trade, summer tourism and healthcare city. We explain how to build software that fits its seasonal rhythm and customers.

Read article

Have an idea or a project? Let us talk

Send us your idea and we will reply with a free, clear scope and quote.