Android
On this page, we will showcase code snippets used for building and managing URI in the app for Android.
Introduction
To return to App2App from MobilePOS, you should state that in the intent-filter.
Introduction
<intent-filter> <data android:host="payment" android:scheme="demonexi" /> <data
Payment
Request
Request
Uri.Builder builder = new Uri.Builder(); builder.scheme("demonexi") .authority("payment");
Response Parsing
Response Parsing
if (getIntent() != null && getIntent().getData() != null && getIntent().getData().getHost() != null && (getIntent().getData().getHost().equals("payment")){
Reversal
Request
Request
Uri.Builder builder = new Uri.Builder(); builder.scheme("demonexi") .authority("reversal");
Response Parsing
Response Parsing
if (getIntent() != null && getIntent().getData() != null && getIntent().getData().getHost() != null && (getIntent().getData().getHost().equals("reversal")){
Accounting Closure
Request
Request
Uri.Builder builder = new Uri.Builder(); builder.scheme("demonexi") .authority("accounting_closure");
Response Parsing
Response Parsing
if (getIntent() != null && getIntent().getData() != null && getIntent().getData().getHost() != null && (getIntent().getData().getHost().equals("accounting_closure")){