#gokul-raj_code
1 messages · Page 1 of 1 (latest)
👋 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.
- gokul-raj_code, 22 hours ago, 12 messages
- gokul-raj_code, 1 day ago, 6 messages
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?
i am not facing any issues, i need to support applePayCapabilities
Need to know when to mount the button and not to mount
Is your question about how to control when applePay shows for your customers?
Yes
Indicates whether the device supports Apple Pay and the user’s Apple Wallet contains an active payment method eligible for web payments.
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
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
What kind of actions do you intend to take after knowing whether a customer has an active card in their wallet or not?
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.
hi! I'm taking over this thread.
Yeah
do you are using the Express Checkout Element, and want to know if the user has Apple Pay enabled on their end?
Yes, but Not exactly enabled . checking if they have card added in thier wallet.
there's this, to check is Apple Pay is available: https://docs.stripe.com/elements/express-checkout-element#check-available-payment-methods
but we don't offer a way to check if they have a card added in their wallet.
Okey