#adr_error

1 messages ¡ Page 1 of 1 (latest)

upper roseBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1414926348132028428

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

white leaf
#

hi there!

drowsy valley
#

hello, hope there's enough information, I wasn't sure what the correct category for this question is

white leaf
#

which line of code is throwing that error?

drowsy valley
#

it's thrown when attempting to show the payment sheet paymentRequest.show()

#

I believe the canMakePayment call returns null, when we don't expect it to

white leaf
#

I believe the canMakePayment call returns null, when we don't expect it to
canMakePayment can return null for many reasons. one of them is if the user doesn't have a card saved in their Apple Wallet.

drowsy valley
#

yes, we followed the docs, and the user does have the correct Safari version, apple wallet set up and a payment method inside it

#

FWIW, our old implementation, which we're replacing with Stripe, does work for affected users, i.e. Apple Pay session's canMakePayments call returns true

#

I guess my question is, is there a way to determine why it's not successful in some cases even though it should be, according to the requirements in the docs? maybe there are browser settings or Stripe's dashboard setup that we're missing?

white leaf
#

so your question is: why canMakePayments sometimes returns null, even though it looks like everything is setup correctly for Apple Pay to work?

drowsy valley
#

yes

white leaf
#

maybe there are browser settings or Stripe's dashboard setup that we're missing?
based on your description the issue is on the customer's end, not your Stripe configuration.

#

yes there are browser settings that can impact this. for example:

drowsy valley
#

we did find this setting, but changing it didn't have any impact

white leaf
#

is the issue consistent? like the same users can never see Apple Pay, while others always see it?

drowsy valley
#

yes, that's correct

#

our worry is, we tested it for 5 different users and it didn't work for 2 of them

#

which made us think there is an issue in the implementation

white leaf
#

do you have a link where I can reproduce the issue?

drowsy valley
#

I don't, sorry, it's in our internal development environment as of now

#

was hoping you have any ideas what we could check

white leaf
#

the common things are:

  • make sure the device/browser is compatible with Apple Pay
  • double check that a valid card is saved in the Apple Wallet
  • enable the browser setting I mentioned above
  • make sure you are in a country that supports Apple Pay (including VPN)