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

Express Payment buttons are frozen when cancelling Apply Pay popup #192

Open
Sidsector9 opened this issue Jul 30, 2024 · 0 comments
Open
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug.

Comments

@Sidsector9
Copy link
Member

Describe the bug

This issue came out of PR #188

When there are no cards in Apple Wallet, when you click on Apple Pay it shows a popup that suggests either adding a card or cancel the flow. If cancelled, the express payment buttons are in a frozen state.

This is because when the button is clicked, it tokenizes:

const tokenResult = await button.tokenize();

but when cancelled, this line should ideally return false or throw an exception, which it doesn't.
So we don't have a way to unfreeze the buttons by detecting the flow has been cancelled.

This may be a bug in Safari or the SDK.

To reproduce

  1. Remove all cards from Apple Wallet.
  2. Click Apple Pay button on Shop/Cart/Checkout page.
  3. Observe a popup and click Cancel.
  4. Observe that the payment express buttons are frozen.

Screenshots

Expected behavior

The express payment buttons should not be frozen after clicking "Cancel" on the Apple Pay popup.

@vikrampm1 vikrampm1 added priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug. labels Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low The issue/PR is low priority—not many people are affected or there’s a workaround, etc. type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

2 participants