#nicolas_api

1 messages ¡ Page 1 of 1 (latest)

drowsy hareBOT
#

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

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

faint remnantBOT
verbal harbor
#

This issue I have is with cardNumberElement.on('change', handler).

rapid ginkgo
#

hi! hmm maybe it's just a bug, this feature in CardNumberElement is quite new

#

but to be honest I think that's expected?

#

it's brand that you're looking at in that event right? The brand never changes. It's only the network that changes. They're different things.

#

you'd still have a brand:"mastercard" Card PaymentMethod, just when you process it, the network used will be cartes_bancaire

verbal harbor
#

cardElement.on('networkschange', handler) is indicated as depracted

verbal harbor
#

Can we stil continue to use it, as there is a real need for this.

#

For exemple, if a French customer with a Carte bancaire / mastercard cobranded card paying on my german store : I may want to only accept the mastercard network for this. So I would need to detect both networks

rapid ginkgo
#

it sill works yes and the event has not been removed

verbal harbor
#

is there any plan of removal ?

rapid ginkgo
rapid ginkgo
verbal harbor
#

ok this is for Europe.

#

Think about Asian card, such CUP cobranded card

rapid ginkgo
#

none of this applies to anything except CB

verbal harbor
#

in case of CUP / Mastercard cobranded card, what is considered as the "brand" ?

rapid ginkgo
#

dunno, I think it depends on the specific BIN

verbal harbor
#

Can I configure in Stripe admin the brands I only want to accept otherwise ?

rapid ginkgo
#

can you clarify the ask/explain a use case just so I fully understand what you want?

Overall no, there aren't settings for that, but there are ways you could configure your frontend code to not process a payment when you detect a certain brand; or you can use custom Radar rules to decline payments where the card has a certain brand.

sturdy matrix
#

Are you still here?