- 🇺🇸United States TomTech
Automatically closed because Drupal 7 security and bugfix support has ended → as of 5 January 2025. If the issue verifiably applies → to later versions, please reopen with details and update the version.
For one of the projects I am working on I need to limit to accept only debit cards refusing credit cards. I contacted Stripe and asked if they supported card type limitations and here is what they responded with:
While there’s no simple setting you can enable or API call that you can make to block certain card types, this can definitely be done with just a bit of programming in your back-end.
Once you’ve created a card token using Stripe.js (or Stripe Checkout), you’ll be able to see the card type by looking at the token object’s `funding` parameter. From here, you could programmatically decide if you want to charge that specific card based on the what that field is populated with. You can read more about token objects at:
I wonder if the module maintainers would be willing to accept my request for this new feature - to make it possible to limit payments based on the types of cards used by customers? If not I'd appreciate any hints on which exact function to override in a custom module to implement the above suggestion.
Closed: outdated
3.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed because Drupal 7 security and bugfix support has ended → as of 5 January 2025. If the issue verifiably applies → to later versions, please reopen with details and update the version.