#penque_code

1 messages · Page 1 of 1 (latest)

primal boughBOT
#

đź‘‹ 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/1265780317051027500

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

sand osprey
#

Hi there

jovial shard
#

Hello

sand osprey
#

Give me a few minutes to test

#

Where did you find showIcon as an option?

jovial shard
sand osprey
#

Ah, gotcha. Was looking at the combined card element not the standalone cardNumber element

jovial shard
#

our account is in the US but we do business in those countries listed
also, the doc says that in test mode the options will always show

#
Cartes Bancaires is always enabled in test mode. As a result, you might see the network selector on Stripe-hosted UIs in test mode even if you don’t enable Cartes Bancaires. This allows you to preview how Stripe-hosted UIs might handle co-badged cards if Cartes Bancaires was enabled.```
sand osprey
#

Ah, I see. I think this is slightly confusing. That section only applies if the regulation applies to your account first

#

At the top of the page, you should see Does this regulation apply to me?

#

The last line will read either:
To test how the network selector displays on Stripe-hosted UIs, make sure that the merchant of record on the transaction is in the EEA. (if your merchant account is not in the EEA)

or

Because you’re in the EEA, Stripe still displays the network selector in test mode. (if your merchant account is in the EEA and you can use card brand choice)

jovial shard
#

hmm it's a bit tricky we have a markeplace where business have listings and then we should go by the place the buisness is located even if our markeplace is in the US

#

so we use the stripe.js to charge in name of the partners but they might be in any of those countries

sand osprey
#

I see

#

So the key here is who the merchant of record is. I take it since you have a marketplace, you're using Connect?

jovial shard
#

I'm not supper aware of the lingo since this integration was done 7 years ago and I'm just trying to add this new thing. But I belive so

sand osprey
#

Do you happen to have your account ID handy? It should begin with "acct_..."

jovial shard
#

sure

sand osprey
#

I'm mostly curious about which charge types you use and how to best guide you regarding merchant of record

jovial shard
#

yes, one second trying to get it

#

I see clientId is that ok?

sand osprey
#

Actually, do you have a PaymentIntent ID handy? Should start with "pi_..."

jovial shard
#

payments would give you our partners and not ours since we don't charge for ourselves

#

acct_2NcP4J4yqNJSGxN7jKoc

#

this seems to be

sand osprey
#

Okay, I see your platform is creating direct charges, which means the connected account is the merchant of record for a given charge

#

Back to your testing of card brand choice

#

If you have a test connected account in one of the EEA countries, can you test this out to confirm you see the card choice dropdown? I'll test on my end as well within the Connect context

jovial shard
#

yes, I see we pass the BillingLivePublishableKey

sand osprey
#

Okay, yes, confirmed that your US platform should see the card brand choice menu as long as the connected account you use when creating the PI and initializing Elements is in the EEA

jovial shard
#

Ok, I just tried with another test account that is in EUR and I see this link thing that opens a pop up but still not network chooser

sand osprey
#

Hm, I can get it to show up with either the combined CardElement or the split CardElement

#

Can you share the connected account ID you're testing with?

jovial shard
#

hmm it seems that that publisher is registered as in UK

sand osprey
#

I see, okay. In that case, the missing card brand choice is expected

jovial shard
#

can we change it so it would show?

#

ok nevermind this one seems to be in FR acct_1CD8JvDjo0CUtu2i

sand osprey
#

And if you use the FR account's ID in your testing, do you see the card brand dropdown?

jovial shard
#

no

sand osprey
#

Okay, I see you're only connected to this account in live mode. Do you have a test mode FR account?

jovial shard
#

would it make a difference if it's in France?

sand osprey
jovial shard
#

France is there right?

#

I guess my question was what is the difference if it is in one of the listed countries that is live or test mode?

sand osprey
#

Ah, actually, it might not matter. Even though this is a live mode account, you should be able to make a test mode request on it with your test keys

jovial shard
#

great

sand osprey
#

I don't see any logs where you created a PaymentIntent for acct_1CD8JvDjo0CUtu2i 🤔

jovial shard
#

hmm I'm getting this error if I try to pay

sand osprey
#

Okay, let's take a step back

#

Since you're testing, you should be using test keys (they begin with sk_test... and pk_test...)

#

Don't share your keys here

jovial shard
#

yes, not sure why it's using the live instead of the test ones let me see if I can fix

#

ok now getting this error

#

still the network chooser is not showing

sand osprey
#

Are you sure that's a valid publishable key?

jovial shard
#

all right! that worked

#

I had bad keys in the publisher

sand osprey
#

Phew!

jovial shard
#

thanks, sorry for all the back and forth

#

one question though, should I specify the networks or it will always get the ones that are available to the partner?

sand osprey
#

You'll need to specify networks

#

This applies to your case as well since you're using the CardElement:

Card brand choice dropdown
The Card Element can’t detect the transaction currency. As a result, the card brand choice dropdown might display, even if the currency isn’t EUR. In the event that the selected network can’t process the transaction due to the currency, the other card network will process it instead.

jovial shard
#

ok, so you say it is safe to always add the array with the 3 choices

sand osprey
#

Correct. And the order of your array is the order in which those choices will be presented to the customer (when available)

jovial shard
#

perfect, thank you very much!

sand osprey
#

Sure thing!