#chung-yi_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/1272579604435177594
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Thank you! And looking forward to helps! ๐
Hello
Looks like you are using Split Card Elements above, as opposed to Card Element
Let me check if this is supported with Split Elements
Okay nvm it is indeed supported for Split Card Element
Taking a look at that account
thank you!
Hi ๐
I'm stepping in as my colleague needs to go soon
It looks like you do not currently have Cartes Bancaires enabled as a payment method on your account
I think we do. Let me double check.
The above code was in test mode, and we have CB turned on in test mode. Do you think we need that to be turned on in live mode too, to have it show up in test mode?
That shouldn't be required. I have a test account that isn't activated that shows the card network drop down
got it. yeah, then we already had that turned on in test mode, but no luck getting the dropdown to show up.
Here is the code I'm using
const cardNumberElementOptions = {
showIcon: true,
};
...
<form onSubmit={handleSubmit}>
<label>
Card Number
<CardNumberElement options={cardNumberElementOptions} />
</label>
<label>
Expiry Date
<CardExpiryElement />
</label>
<label>
CVC
<CardCvcElement />
</label>
<button type="submit" disabled={!stripe}>
Pay
</button>
</form>
We're a Connect platform passing onBehalfOf tho.
Right so it's the Standard Account's setings that should matter here.
Yeah, and I also had the CB turned on for the connected account acct_1KMqw0A6DHSUKBik
I just checked and we passed the same options to the CardNumberElement.
And they are clearly in the EU
Yes. It's a Germany account I think.
Hmmm... I'm having a hard time replicating this issue. The accout is domiciled in Germany
Is there a way we can go about debugging this? Like is there log for our Card Element rendering to double checking we're passing the right info?
Unfortunately not. When you initialize Stripe.js on the client-side (browser), are you passing the Stripe Account header? https://docs.stripe.com/js/initializing#init_stripe_js-options-stripeAccount
Let me check.
We're using loadStripe like this:
const stripePromise = loadStripe("STRIPE_PUBLISHABLE_KEY", { stripeAccount: "acct_1KMqw0A6DHSUKBik" })
And then used the promise in Elements :
<Elements stripe={stripePromise} options={stripeElementsOptions}>
Still no luck.
Okay yeah that looks right
I'll need to step out for a bit. If you have any idea debugging this, please share here! Really appreciated the help! Thank you!