Hello, we need to create a discount based on the BIN number entered by the client.
Is this something that can be done from the Magento side or does it need to be integrated into the payment processor's plugin?
Yes it can be possible at Magento end if we are taking card number at website only. Can create a custom module for it.
By default with Magento, this kind of promotion is not available! also giving the promotions based on the BIN number are completely relay on the cards and numbers which you are storing on your Magento store.
Moving ahead storing of the payment data with token its completely depends on the payment gateway side whether they are allowed or not! if this is something they are allowed then on the Magento we will require to build a module from scratch only so its customization.
Looking at the various extensions, there is no ready-made extension that provides BIN number wise promotions - there are few which are working on based on payment method but not on the card numbers.
Hope it helps !
I have done this request in my past experience and this is totally depends on bank cards. I have done this for Citi bank card.
The thing only matters store should accept card details on website then only we can fetch BIN number for that card and we can validate we have to provide promotion or not. To validate it and provide we have to build new module that I have highlighted already in my previous answer.
"Bank identification number (BIN) refers to the initial set of four to six numbers that appear on a payment card. "