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

The applePay button is not displayed if no card is added #272

Open
isyshuai opened this issue Aug 13, 2024 · 3 comments
Open

The applePay button is not displayed if no card is added #272

isyshuai opened this issue Aug 13, 2024 · 3 comments

Comments

@isyshuai
Copy link

If the card is not added, userCanPay returns false, resulting in the button not being displayed. Shouldn't the pop-up window guide the user to add the card under normal circumstances?

@isyshuai
Copy link
Author

I have to add the card in the wallet before I can do it. If I delete the card in the wallet, I will not be allowed to support it. Why not pop-up prompt to add the card?

@mths0x5f
Copy link

mths0x5f commented Sep 16, 2024

Apple Pay payment sheet will only be callable if the user already have a card registered because canMakePayments(usingNetworks:) would return false. That's documented behavior.

You're supposed to roll out your own messaging encouraging users to open Apple Pay and register a card: https://developer.apple.com/apple-pay/marketing/ and https://developer.apple.com/documentation/passkit_apple_pay_and_wallet/pkpaymentbuttontype/setup

@isyshuai
Copy link
Author

I have Fork, and canMakePayments(usingNetworks:) changed to canMakePayments(), there is no card page display click to add the card, so far seems to be no problem

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

No branches or pull requests

2 participants