#dxkite_api

1 messages · Page 1 of 1 (latest)

spiral whaleBOT
#

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

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

tepid wyvernBOT
vernal zenith
#

pmd status is active on apple_pay:

{
"id": "pmd_1P6reaHv726MzAnz1Pl6oxR5",
"object": "payment_method_domain",
"apple_pay": {
"status": "active"
},
"created": 1713433996,
"domain_name": "ace-3.stg.myshoplaza.com",
"enabled": true,
"google_pay": {
"status": "active"
},
"link": {
"status": "active"
},
"livemode": false,
"paypal": {
"status": "active"
}
}

polar glacier
#

For Connect please register with your Live Secret Key. I think pmd_1P6reaHv726MzAnz1Pl6oxR5 is registerd in Test mode

vernal zenith
#

this api is not work for test mode? i just want to use this domain for test

polar glacier
#

I am confirming but that's likely the case

#

When you test, did you use the Platform test publishable key with the Stripe Account header?

vernal zenith
#

i use the merchant_id with the Stripe Account header.

this is my test request like in curl:

curl --location 'https://api.stripe.com/v1/payment_method_domains'
--header 'Stripe-Account: acct_1BklElHv726MzAnz'
--header 'Content-Type: application/x-www-form-urlencoded'
-u '<My Platform Private Test Key prefix with "sk_test_">'
--data-urlencode 'domain_name=ace-3.stg.myshoplaza.com'

acct_1BklElHv726MzAnz is the connect merchant id

polar glacier
#

Yes this is the request to register

#

But how about where you get the error above

vernal zenith
#

this.stripe = window.Stripe(this.publicKey, { stripeAccount: <Merchant Id> });

polar glacier
#

Yeah, can you look at the networking tab and see if there is an errored request

#

please paste the request id req_xxx if you find one

vernal zenith
#

no errored api find in the networking tab

#

need i always pass stripe account when i use jdk ? like code:
window.Stripe(this.publicKey, { stripeAccount: <Merchant Id> });

it work when google pay without stripe account parameter, but not work when apple pay without stripe account parameter

polar glacier
#

You should pass stripe account header there to the connected accound id

#

Do you have an accessible URL?

#

And please share the exact code and value you are using

vernal zenith
#

js code: window.Stripe('pk_test_JfhHGSpy93kq0SXmuI1XIpio00aeWMQM2I', { stripeAccount: 'acct_1BklElHv726MzAnz' });

polar glacier
#

That looks correct...

#

Can you share an accessible URL?

vernal zenith
#

the fe engineer said it was fe bug, it worked now 🥹 , can we always pass the stripe account id when load js sdk?

polar glacier
#

It’s one time initialization AFAIK. Glad to hear you figured it out!