App Linking

Allow users to tap into your consumer application from a Zapper deep link QR code

Android App Linking

In order to facilitate app linking from Zapper created QR codes the calling app will need to make changes to the AndroidManifest.xml file.

Two intent filters will need to be added to the relevant Activity.

  1. The first intent filter will be for http scheme and *.zap.pe host.

  2. The second intent filter will be for https scheme and zapper.com host.

The intents should be added to your apps payment activity screen.

The example below illustrates the intent filters for an activity named .MainActivity

<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" android:host="*.zap.pe" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" android:host="zapper.com" />
</intent-filter>
</activity>

Using the intent the Uri can be retrieved and then passed to the decode endpoint to fetch the transaction information required to perform a payment.

Intent appLinkIntent = getIntent();
if (appLinkIntent != null) {
Uri zapperCodeUri = appLinkIntent.getData();
DecodeZapperCode(zapperCodeUri);
}

iOS App Linking

Due to limitations within the Apple ecosystem, app linking from Zapper-created QR codes to iOS driven applications requires involvement from the Zapper Platform team. Please contact [email protected] for assistance.