Permalink
Browse files

Merge pull request #13 from traxxas/master

Remove dash characters from credit card numbers
  • Loading branch information...
2 parents 9ba57bb + 6a7f14c commit 79f9d45aa8fae971ba102d418d8657bdecaca553 Ben Keating committed Feb 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 payflowpro/classes.py
View
2 payflowpro/classes.py
@@ -50,7 +50,7 @@ def is_valid(self):
class CreditCardField(Field):
def clean(self, value):
if isinstance(value, basestring):
- return re.sub(r'\s', '', value)
+ return re.sub(r'-', '', re.sub(r'\s', '', value))
else:
return value

0 comments on commit 79f9d45

Please sign in to comment.