HACK: fix Stripe webhook errors with tokens including dash

This commit is contained in:
Chad Birch
2014-05-28 20:53:23 -06:00
committed by Neil Williams
parent 88ba0f3bf0
commit 915ab3efbc

View File

@@ -992,7 +992,7 @@ class StripeController(GoldPaymentController):
return status, webhook
else:
try:
passthrough, buyer_name = description.split('-', 1)
passthrough = description[:20]
except (AttributeError, ValueError):
g.log.error('stripe_error on charge: %s', charge)
raise