#gokul-raj_code

1 messages · Page 1 of 1 (latest)

cold wadiBOT
#

👋 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/1407612201577218129

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

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

heady pasture
#

Hello, there are no applePayCapabilities for the Express Checkout element, can you share what the problem you are facing? Is it that you can't see the Apple Pay button?

deep comet
#

i am not facing any issues, i need to support applePayCapabilities

#

Need to know when to mount the button and not to mount

heady pasture
#

Is your question about how to control when applePay shows for your customers?

deep comet
#

Yes

#

Indicates whether the device supports Apple Pay and the user’s Apple Wallet contains an active payment method eligible for web payments.

heady pasture
#

Could you share more context on why you would need to do so? Express Checkout element already helps to detect whether the customer has an apple wallet as an active payment method and should show accordingly. As documented here

deep comet
#

I want to know if the customer is having an active card in thier wallet or not and based on that i will be taking action

heady pasture
#

What kind of actions do you intend to take after knowing whether a customer has an active card in their wallet or not?

deep comet
#

switch (capabilities.paymentCredentialStatus) {
case "paymentCredentialsAvailable":
// Display an Apple Pay button and offer Apple Pay as the primary payment option.
case "paymentCredentialStatusUnknown":
// Display an Apple Pay button and offer Apple Pay as a payment option.
case "paymentCredentialsUnavailable":
// Consider displaying an Apple Pay button.
case "applePayUnsupported":
// Don't show an Apple Pay button or offer Apple Pay.
}

as you can see apple pay provide these options.

I will decide whether to hide the button or show the button when no credentials are available.

cold wadiBOT
shut yacht
#

hi! I'm taking over this thread.

deep comet
#

Yeah

shut yacht
#

do you are using the Express Checkout Element, and want to know if the user has Apple Pay enabled on their end?

deep comet
#

Yes, but Not exactly enabled . checking if they have card added in thier wallet.

shut yacht
#

but we don't offer a way to check if they have a card added in their wallet.

deep comet
#

Okey