Display the hosted payment page
After obtaining the transaction ID, present the hosted payment page to your user.
There are several methods to display the hosted payment page:
Redirect within the existing page
Open in a new tab
Embed within an iFrame
Display within a webview
Use the URL provided below with appropriate parameters to specify your preference.
Pre-requisite
You have collected a transaction ID return after payment request initiation.
Details
Base URL
Environment | Base URL |
---|---|
Sandbox | |
Production |
Query parameters
Parameter | Required | Description |
---|---|---|
txn_id | Mandatory | Mandatory The transaction ID you've collected after initiating the payment |
browser_type | Optional | Optional If your user is on a mobile device, If any other value or none is passed, the payment page will be optimised for a desktop view. |
utm_souce | Optional | utm_source as it is detected in your page URL. For example, utm_souce=google, utm_source=coda |
utm_medium | Optional | utm_medium as it is detected in your page URL. For example, utm_medium=banner, utm_medium=email |
utm_campaign | Optional | utm_campaign as it is detected in your page URL. For example, utm_campaign=spring_sale, utm_campaign=new_season_launch |
utm_content | Optional | utm_content as it is detected in your page URL. For example, utm_content=, utm_content=email |
Samples
Unlocking Marketing analytics on payment page
Our payment page supports marketing analytics out-of-the-box. You can pass along UTM parameters from your store's page to the Codapay page. The UTMs will then be available in your payment funnel data analysis & marketing channel attribution analysis.
* We recommend that you pass along UTM parameters without any modifications, so that analytics data collected on the hosted payment page can be used together with other analytics data captured on your web page (e.g: captured using Google Analytics) without any discrepancies.
Example:
The user landed on your page with this UTM tracked URL:
Then, when the user makes a purchase, you can pass along the UTMs to the Codapay page URL along with other mandatory URL parameters:
Special Considerations for Webviews
Handling redirection
Some channels may redirect users to their wallet app. To handle the redirections properly when using Webviews, you will need to use WebViewClient.shouldOverrideUrlLoading using the intents below:
Regions | Channel list | Override URL |
---|---|---|
Brazil | PicPay | picpay:// |
Brazil | AmeDigital | amedigital:// |
Indonesia | GO-PAY | gojek:// |
Indonesia | Shopee Pay | shopeeid:// |
Indonesia | Dana | danaid:// & market://details?id=id.dana |
Malaysia | GrabPay | grab:// |
Malaysia | Shopee Pay | shopeemy:// |
Malaysia | Maxis | sms:32083 |
Singapore | GrabPay | grab:// |
Philippines | GrabPay | grab:// |
Thailand | Shopee Pay | intent:// |
Taiwan | Line Pay | intent:// |
Myanmar | KBZPay | intent:// |
Vietnam | MoMo | momo:// |
Common Webview Pitfalls and Tips
Last updated