#koks_api

1 messages · Page 1 of 1 (latest)

strong hingeBOT
#

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

📝 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.

static turret
#

Can you double check you are using the same Stripe account with the one you registered domain?

#

Do you use Connect?

dawn wren
#

How to validate it?

#

I use Salesforce for front end and stripe for payment. I need to enable applePay option for my customer

static turret
#

Can you share the domain id you created, and the account id on which you are using its PublishableKey in frontend?

dawn wren
#

I have these 2 domains created for salesforce

#

pk_test_51RQtiRPJyrrClAxyjtfBjNn4E3Ka1T9zlWMjgXtr843azaoXn29JNReio3fmqKcO2AFAIhlXVcFnPB49bMAjbZGw008Nlmy8Hk

#

pmd_1Rg4IqB0Vyyemuv2nV79yySX

#

pmd_1Rg4I5B0Vyyemuv2dpuJEMrM

#

my bad, I had mapped domain to incorrect account id

#

i had fixed it now

static turret
#

Glad to hear!

dawn wren
#

Still mount is not happening

#

coming blank in Salesforce affter executing js code which i had mentioned

#

This js code "const expressCheckoutElement = elements.create("expressCheckout", {
emailRequired: true
});" returns below value. Is this correct?

static turret
#

hmm can’t tell. Is this not mounting issue completely different with ApplePay?

dawn wren
#

what could be the issue here if not mounting. Can you help here?

static turret
#

Did you have this issue before?

dawn wren
#

working first time on this...so new to me

static turret
#

alright so you do have an expressCheckoutElements

dawn wren
#

yes

static turret
#

Can you listen to the ready event? Did you have any browser console error when mounting?

dawn wren
static turret
#

Invalid mounting

dawn wren
#

ok

#

how to fix it?

static turret
#
expressCheckoutElement.mount(a);"

What is the "a" variable here?

dawn wren
#

i had used it to validate if querySelector fetches any html tags hence used div tag for a

#

this is the lateset code i had used

static turret
#

Sorry you have the JS debugger, and can put breakpoints into each line of code, so it would be easier if you inspect the cardElement there, checking if it actually points to your desired HTML element

dawn wren
#

i did

#

cardElement is coming blank

static turret
#

So that's the issue of the selector