Fawry SoftPOS Web SDK

Integrate card payments into your website using the Fawry SoftPOS Android app. The Web SDK handles the communication between your website and the SoftPOS app via deep links, providing a seamless payment experience on Android devices.


How It Works

┌───────────────┐     deep link      ┌────────────────┐     response       ┌──────────────┐
│  Your Website │ ─────────────────▶ │  SoftPOS App   │ ─────────────────▶ │ Callback Page│
│  (SDK loaded) │                    │  (Android)     │                    │ (SDK loaded) │
└──────┬────────┘                    └────────────────┘                    └──────┬───────┘
       │                                                                          │
       │  1. Build request                                               3. Parse result
       │  2. Generate deep link                                          4. Store in localStorage
       │                                                                 5. Original tab picks it up
       ▼                                                                          ▼
┌──────────────┐                                                           ┌───────────────┐
│ Your Backend │  POST /api/generate-signature                             │ Payment Result│
│ (signature)  │  ◀──── called before step 1                               │ (resolved)    │
└──────────────┘                                                           └───────────────┘
  1. Your website calls your backend to generate a signature.
  2. The SDK builds a softpos://open/{operation} deep link with the signed payload and redirects the browser. Each operation uses its own path: payment, refund, void, inquiry, or clearCache.
  3. The SoftPOS Android app processes the request and redirects back to your callback page.
  4. The SDK on the callback page parses the response, stores it in localStorage, and the original tab resolves the Promise.

Supported Operations

Operation Description
Card Sale Accept a card payment
Card Refund Refund a previous transaction
Card Void Void/cancel a recent transaction
Inquiry Query the status of a transaction
Clear Cache Clear SoftPOS app cache and keys


Requirements

  • A Fawry merchant account with SoftPOS credentials
  • An Android device with the Fawry SoftPOS app installed
  • HTTPS-enabled website (required for callback redirects)
  • A backend server to generate payment signatures (Node.js or Python examples provided)

Back to top

© Fawry Payment Solutions. All rights reserved.

This site uses Just the Docs, a documentation theme for Jekyll.