mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-01 10:14:57 -05:00
Don't charge google checkout orders with bad amounts.
This commit is contained in:
@@ -422,6 +422,8 @@ class IpnController(RedditController):
|
||||
pennies = int(float(trans.find("order-total"
|
||||
).contents[0])*100)
|
||||
months, days = months_and_days_from_pennies(pennies)
|
||||
if not months:
|
||||
raise ValueError("Bad pennies for %s" % short_sn)
|
||||
charged = trans.find("charge-amount-notification")
|
||||
if not charged:
|
||||
_google_charge_and_ship(short_sn)
|
||||
|
||||
Reference in New Issue
Block a user