Skip to content
Browse files

Remove '-' from credit card numbers

  • Loading branch information...
1 parent 9ba57bb commit 6a7f14ce6620ab7a6dc0b43e6bb0f45f21d231e2 @wbtuomela wbtuomela committed Feb 13, 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 6a7f14c

Please sign in to comment.
Something went wrong with that request. Please try again.