Transak Docs
Search…
πŸ€–
Android
To add Transak to you Android app add the below code:

MainActivity.Java

Make sure to add your API key and customise using query parameters​
import android.webkit.WebView;
...
​
webView = (WebView) findViewById(R.id.transakWidget);
webView.getSettings().setJavaScriptEnabled(true);
webView.loadUrl("<https://global.transak.com?apiKey=[YOUR_PRODUCTION_API_KEY]&[QUERY_PARAMETERS]>");

Activity_main.xml

<WebView xmlns:android="<http://schemas.android.com/apk/res/android>"
android:id="@+id/transakWidget"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>

Provide permission in AndroidManifest.XML

<uses-permission android:name="android.permission.INTERNET"/>
Last modified 7mo ago
Copy link
On this page
MainActivity.Java
Activity_main.xml
Provide permission in AndroidManifest.XML