mobile-shopping Mobile Integration

Fatora gateway offers a solution for integrating mobile payment and your application. It is based on the use of the WebView component. Fatora also offers SDK for native IOS and Android applications and Ionic applications

Payment Process

mobileintegration

Steps to make integrate a payment gateway in a mobile app:

  1. The mobile application initializes the standard checkout API request via the merchant server.

  2. The merchant server sends the standard checkout API request to the gateway.

  3. The Fatora gateway generates a checkout URL and returns it to the mobile application.

  4. The merchant server sends a checkout URL to the mobile application.

  5. The mobile application opens the checkout page in a WebView.

  6. The client enters his or her card details and clicks pay.

  7. When your client completes the payment, Fatora gateway will redirect to the default Fatora success | failure page including payment_id, order_id, and transaction_id in the query parameter,

    • then redirects to your success_url | failure_url page if you passed them at requesting the Standard Checkout API, including order_id, transaction_id, and response_code in the query parameters.
    • sends a push notification if you passed fcm_token at requesting the Standard Checkout API.
    • triggers your webhook, if you configure webhook, passing parameters to URL in this form:
      https://domain.com/payments/webhook?
      transaction_id=XXXXXX&order_id=XXXXXX&mode=XXX&
      response_code=XXX&description=XXXXXXXXXX

  8. your app must listen to Webview URL change event, if it is equal to the Fatora completion URL(success|failure), it should redirect the client to the completion page.

server-key Server Key

To get server key you must following these steps:

  1. Go to Firebase Google and then go to the console.
  2. If you have your project so you need to open it and then from the settings icon on the top left behind project overview choose (Project settings) after that you should choose (Cloud Messaging) Tab that is included (Server key)
  3. If you don’t have a project you should create it first by clicking (Add Project) to connect your mobile apps (android, iOS, or both), when you finish creating it you should go back to step 2 to get your app (Server key).
technical-support

🛠️ Technical Support