#penque_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/1265780317051027500
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
also here:https://docs.stripe.com/co-badged-cards-compliance?type=web-elements&ui=card-element#when-reglation-applies it says
To enable customer card brand choice in the Split Card Element, set showIcon to true.
Ah, gotcha. Was looking at the combined card element not the standalone cardNumber element
Two questions: assuming you're working with PaymentIntents, are you using eur for currency? Is your account in one of the countries listed at the top here? https://docs.stripe.com/co-badged-cards-compliance
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.```
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)
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
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?
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
Do you happen to have your account ID handy? It should begin with "acct_..."
sure
I'm mostly curious about which charge types you use and how to best guide you regarding merchant of record
Actually, do you have a PaymentIntent ID handy? Should start with "pi_..."
payments would give you our partners and not ours since we don't charge for ourselves
acct_2NcP4J4yqNJSGxN7jKoc
this seems to be
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
Client side, you'll need to pass the stripeAccount header with the connected account's ID. Server side, you'll want to use the same header when creating the PaymentIntent: https://docs.stripe.com/connect/authentication
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
yes, I see we pass the BillingLivePublishableKey
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
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
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?
hmm it seems that that publisher is registered as in UK
I see, okay. In that case, the missing card brand choice is expected
can we change it so it would show?
ok nevermind this one seems to be in FR acct_1CD8JvDjo0CUtu2i
And if you use the FR account's ID in your testing, do you see the card brand dropdown?
no
Okay, I see you're only connected to this account in live mode. Do you have a test mode FR account?
would it make a difference if it's in France?
It needs to be in one of the countries at the top of this page: https://docs.stripe.com/co-badged-cards-compliance
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?
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
great
I don't see any logs where you created a PaymentIntent for acct_1CD8JvDjo0CUtu2i 🤔
hmm I'm getting this error if I try to pay
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
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
Are you sure that's a valid publishable key?
Phew!
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?
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.
ok, so you say it is safe to always add the array with the 3 choices
Correct. And the order of your array is the order in which those choices will be presented to the customer (when available)
perfect, thank you very much!
Sure thing!