Closed fredstluka closed 10 years ago
Fred,
You actually do not need to specify a card type when submitting card information to the payment gateway. If you need to determine the card type, you can ask the user to specify what card he/she is using or you can determine the type based on a regex (http://www.regular-expressions.info/creditcard.html).
-Vincent
Vincent,
OK. That's what I'll do. Thanks!
BTW, the authorizesauce library did accept (perhaps even require) a card_type, and used it to check the leading digit for 4, 5, etc., and reported an error of there was a mismatch. Might be a good feature to add to py-authorize, especially for people coming from authorizesauce.
If I have time, I'll fork your repo, add it, and issue a pull request, but not this week, so you may get to it before I do.
Thanks! --Fred
How to specify card_type for a purchase?
The docs at:
Show: 'credit_card': { 'card_number': '4111111111111111', 'card_code': '523', 'expiration_date': '04/2014', },
but no mention of 'card_type'. Can I specify it also? If so, what values to use? I assume:
Right? Or uppercase? Or other values? Or not yet supported? Any others?
Thanks! --Fred Stluka