mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-30 01:08:32 -05:00
Correctly parse usernames with hyphens from stripe charges.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user