Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tap to Pay for Android #128

Open
kyleabens opened this issue Jun 22, 2023 · 3 comments · May be fixed by #129
Open

Tap to Pay for Android #128

kyleabens opened this issue Jun 22, 2023 · 3 comments · May be fixed by #129

Comments

@kyleabens
Copy link

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!

@zolfariot
Copy link

zolfariot commented Aug 18, 2023

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 capacitor-stripe-terminal@3.0.0-beta.8
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.

@paolo-arge-lf
Copy link

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

@zolfariot zolfariot linked a pull request Jan 23, 2024 that will close this issue
@kyleabens
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants