From d75131971586145febf8c5946d15c6a4e7a0cd92 Mon Sep 17 00:00:00 2001 From: bsimpson63 Date: Mon, 18 Feb 2013 23:33:40 -0500 Subject: [PATCH] Correctly parse usernames with hyphens from stripe charges. --- r2/r2/controllers/ipn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/controllers/ipn.py b/r2/r2/controllers/ipn.py index 7e02777ce..b746d26e7 100644 --- a/r2/r2/controllers/ipn.py +++ b/r2/r2/controllers/ipn.py @@ -687,7 +687,7 @@ class StripeController(GoldPaymentController): charge = event.data.object description = charge.description - passthrough, buyer_name = description.split('-') + passthrough, buyer_name = description.split('-', 1) transaction_id = 'S%s' % charge.id pennies = charge.amount return status, passthrough, transaction_id, pennies