flutter-plugin icon indicating copy to clipboard operation
flutter-plugin copied to clipboard

The applePay button is not displayed if no card is added

Open isyshuai opened this issue 1 year ago • 3 comments

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 avatar Aug 13 '24 03:08 isyshuai

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?

isyshuai avatar Aug 16 '24 09:08 isyshuai

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

mths0x5f avatar Sep 16 '24 20:09 mths0x5f

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

isyshuai avatar Sep 30 '24 02:09 isyshuai