Supporting Bangkok Bank's BBL iPay in Android
✓ Published0🌍 Public
55un
Last edited Aug 1, 2016
Created on Aug 1, 2016
This example shows an Android Activity that integrates Bangkok Bank's BBL iPay mobile payment service into a native app. It demonstrates how to launch a WebView-based payment flow, passing merchant credentials, order details, and currency codes via POST data. The code uses `android.webkit.WebView`, `WebViewClient`, and `WebChromeClient` to intercept redirects to success, fail, and cancel URLs, returning corresponding result codes. It constructs form fields manually and calls `postUrl()` to submit them, relying on the bank's hosted payment page.
AI-generated description