Native App Checkout Integration¶
You should fetch the available payment options from us before displaying Tamara on your checkout page. We will return the minimum and maximum order limits to you and based on that information, you can allow the customer to pay with Tamara or not.
When a customer chooses Tamara and proceeds to checkout on your mobile app, your app will send a request to your backend server then your backend should generate a request to us transmitting the details of purchase. The response to this request contains an order reference and the URL for completing the transaction.
Your mobile app then opens the WebView and loads the transaction URL provided by us.
Tamara will send the OTP to the customer’s mobile number via SMS.
The customer verifies himself with the received OTP and completes the checkout process.
The customer will then be redirected to your mobile app via the URLs that were provided in your request.
Your mobile app will display corresponding message based on the redirection URL.
We provide iOS and Android SDKs to help you save some integration effort from step 3 to 7, please check this link for more details
Apple Pay with WebView on iOS notes
We recommend using SFSafariViewController with the WebView in order to support Apple Pay the best.
In case you cannot use SFSafariViewController and go with UIWebView nor WKWebview, you have to follow some below points in order to make it works:
Webpages loaded in WKWebView can now accept Apple Pay. In order to protect the security of Apple Pay transactions in WKWebView, Apple Pay cannot be used alongside of script injection APIs such as WKUserScript or
If these APIs are invoked before a webpage uses Apple Pay, Apple Pay will be disabled. If a webpage uses Apple Pay before
For more details, please check this link