• sauchau

    (@sauchau)


    I have an online store based on woo-commerce and I have a question. The website will be sponsored by a bank and I want to give the discount to customer who purchases with the bank credit card that the website is sponsored by. I want to create coupon codes for these customers.

    Suggest plugins or any other ways to make this happen, please.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Because the card is the last information entered in paying, I think you will have to collect coupon codes as normal, assuming customers will use the proper card. You can still catch anyone cheating by verifying their card number against the bank’s id number that’s within their card number. The verification script could interrupt payment processing if the card is for the wrong bank. Find out from the bank what IDs they use and which part of their card numbers are their ID. Except for the 1st and last digits, the card number is composed of bank ID and account numbers. Bank IDs vary in length, but are limited to a few numbers per bank.

    You could add an event listener to the card field’s onchange event and if the card’s bank ID is incorrect, disable the submit button and put up an error message of some sort.

    ETA: Client side verification is a nicety, but for proper security, the same process needs to be done server side as well.

    • This reply was modified 3 years ago by bcworkz.
Viewing 1 replies (of 1 total)
  • The topic ‘Coupon codes for a specific bank’ is closed to new replies.