#chung-yi_code

1 messages ยท Page 1 of 1 (latest)

olive echoBOT
#

๐Ÿ‘‹ 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.

uneven brook
#

Thank you! And looking forward to helps! ๐Ÿ™

drifting pier
#

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

olive echoBOT
uneven brook
#

thank you!

night idol
#

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

uneven brook
#

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?

night idol
#

That shouldn't be required. I have a test account that isn't activated that shows the card network drop down

uneven brook
#

got it. yeah, then we already had that turned on in test mode, but no luck getting the dropdown to show up.

night idol
#

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>
uneven brook
#

We're a Connect platform passing onBehalfOf tho.

night idol
#

Right so it's the Standard Account's setings that should matter here.

uneven brook
#

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.

night idol
#

And they are clearly in the EU

uneven brook
#

Yes. It's a Germany account I think.

night idol
#

Hmmm... I'm having a hard time replicating this issue. The accout is domiciled in Germany

uneven brook
#

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?

night idol
uneven brook
#

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.

night idol
#

Okay yeah that looks right

uneven brook
#

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!

olive echoBOT