datatrans / android-sdk

Accept payments on your Android apps: Our mobile SDKs support your entire payment and registration process and simplify the integration of any payment method in your mobile apps.
Other
6 stars 0 forks source link

Android: Twint Redirect Back to the App doesn't work #27

Open msio opened 1 month ago

msio commented 1 month ago

Hi,

We can't get done returning from Twint App back to our App after the payment in the Twint app was confirmed in Android. Tested on Sandbox

SDK Version: 3.6.1.

Our Java Code

Transaction transaction = new Transaction(mobileToken);
transaction.getOptions().setTesting(true);
transaction.getOptions().setAppCallbackScheme("com.example.payment");
TransactionRegistry.INSTANCE.startTransaction(this, transaction);

AndroidManifest.xml

<activity android:name="ch.datatrans.payment.ExternalProcessRelayActivity"
                android:launchMode="singleTask"
                android:exported="true">
            <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="com.example.payment" />
            </intent-filter>
</activity>

The configuration above works with Paypal payment without hassle.

Twint Config - Version 38.0.0.46 Screenshot_20240924-104854

Twint Configurable - Version 48.0.0.8

I also tried your Showcase https://play.google.com/store/apps/details?id=ch.datatrans.mobilesdkshowcase&hl=en and it doesn't work either unfortunatelly

Many Thanks

Cheers Michal :-)