capacitor-stripe-terminal icon indicating copy to clipboard operation
capacitor-stripe-terminal copied to clipboard

Tap to Pay for Android

Open kyleabens opened this issue 1 year ago • 3 comments

Stripe now offers tap to pay for Android devices and was wondering if this could be added like you have for iOS. Also any idea when a stable v3 will be out? Thanks!

kyleabens avatar Jun 22 '23 17:06 kyleabens

There is WiP pull request apparently #123.

For my use case I made the modification necessary to make it work on top of the version 3.0.0-beta.8 available from npm.

If you want to do the same, just extract patches.tar.gz in the root of your project, then run

npm install [email protected]
npm install --save-dev patch-package
npx patch-package

For the moment I tested only with Capacitor 5.2.2 and it's working fine. In your app when you discover readers you should set discoveryMethod: DiscoveryMethod.LocalMobile.

Also, if you want to test the real production UI, with simulated: false, you have to compile your app as 'non-debuggable' (i.e, "release" variant on Android Studio).

While testing with simulated: false I faced a weird issue with the Stripe backend server, I was continously getting a "Attestation Error/Invalid request" from the Stripe API. I solved removing my app data, then uninstalling and reinstalling my app.

zolfariot avatar Aug 18 '23 00:08 zolfariot

@zolfariot since you got it working could you please review PR #123 ? An additional endorsement may help with the merge.

paolo-arge-lf avatar Aug 20 '23 23:08 paolo-arge-lf

Also @nprail any update on this or Capacitor v6 support?

kyleabens avatar Aug 01 '24 20:08 kyleabens