Phase 2: Mobile application
Your mobile application integration must follow the following steps:
- Payment request initialization and transmission of required data
The application generates a “payload” containing the shopping cart data, buyer’s contact information, delivery details and transmits the payment request to the merchant server via a POST request.
- Payment page display in a webview,
The application initializes a webview and displays the payment page using the URL returned by the payment gateway.
- End of payment detection.
The mobile application must analyze the different URLs that pass through the webview. Since the return URLs are defined by the merchant server, you have control over the payment process and can decide when to switch over to your native application.