Fixing bug in paypal checkStatus to separate preapproval max_amount from current amount

pull/1/head
icellama21 2012-01-05 12:56:20 -05:00
parent b0b6d83f75
commit e9d293199c
1 changed files with 3 additions and 3 deletions

View File

@ -158,11 +158,11 @@ class PaymentManager( object ):
t.save()
# Check the amount
if t.amount != D(p.amount):
if t.max_amount != D(p.amount):
#append_element(doc, tran, "amount_ours", str(t.amount))
#append_element(doc, tran, "amount_theirs", str(p.amount))
preapproval_status["amount"] = {'ours':t.amount, 'theirs':p.amount}
t.amount = p.amount
preapproval_status["amount"] = {'ours':t.max_amount, 'theirs':p.amount}
t.max_amount = p.amount
t.save()
# append only if there was a change in status