Getting Started

Sections

Mobile SDKs

Who is this for - Product managers and developers who need a high-level overview of how to integrate through Mobile SDKs

Outcome - Understand the overall Mobile flow, the available checkout options, and how payment results are securely communicated back to your system


When should you use Mobile SDKs?

Use Paymob Mobile SDKs if you are building a native mobile application and want a checkout experience that feels fully integrated with your app.

Mobile SDKs are recommended when you want a native UI experience without using WebViews

Integration flow

1

Create a payment intention

Every SDK payment starts from your backend by calling the Intention Creation API.

This step is responsible for:

  • Defining the amount and currency
  • Selecting the allowed payment methods
  • Linking the payment to your internal order or reference ID

The response includes an intention reference (client secret) that will be passed to the Mobile SDK.

2

Initialize the Mobile SDK

In your mobile app (iOS or Android), you initialize the Paymob Mobile SDK using the intention reference received from your backend.

At this stage:

  • The SDK is configured with the payment intention
  • No sensitive payment data is handled by your app

This keeps your mobile application outside the PCI scope.

3

Present the native checkout UI

Once initialized, the SDK presents Paymob’s native checkout UI within your app, where the customer will complete the payment. The checkout experience follows the platform’s native look and feel, while Paymob handles input validation, security, and any required authentication (such as 3D Secure) seamlessly.

5

Callbacks and SDK result handling

After the payment is processed, Paymob sends callbacks to your backend with the final payment result and returns a status to the mobile app via the SDK callback.

  • Backend callbacks must be used to confirm the final payment status, update orders, and trigger business actions. They are the source of truth.
  • SDK callbacks should be used only to update the UI and show success or failure messages.

Always rely on backend callbacks, not SDK responses alone, to confirm payment success.

6

Callback security (HMAC)

Each callback can be authenticated using HMAC verification to ensure it was sent by Paymob and was not altered. Always verify callbacks before trusting their data

Was this section helpful?

What made this section unhelpful for you?

On this page
  • Mobile SDKs