Fixing bug in paypal checkStatus to separate preapproval max_amount from current amount
parent
b0b6d83f75
commit
e9d293199c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue