max_amount, not amount before the authorization

pull/1/head
eric 2012-10-13 13:38:39 -04:00
parent 8c20339618
commit dbacb5a96d
2 changed files with 2 additions and 2 deletions

View File

@ -798,8 +798,8 @@ class FundPledgeView(FormView):
# GOAL: deactivate any older accounts associated with user
# with the Account in hand, now authorize transaction
transaction.amount = preapproval_amount
t, url = p.authorize(transaction)
self.transaction.max_amount = preapproval_amount
logger.info("t, url: {0} {1}".format(t, url))
# redirecting user to pledge_complete on successful preapproval (in the case of stripe)

View File

@ -567,7 +567,7 @@ class PaymentManager( object ):
urllib.urlencode({'tid':transaction.id}))
return_url = urlparse.urljoin(settings.BASE_URL, return_path)
p = transaction.get_payment_class().Preapproval(transaction, transaction.amount, expiry, return_url=return_url, paymentReason=paymentReason)
p = transaction.get_payment_class().Preapproval(transaction, transaction.max_amount, expiry, return_url=return_url, paymentReason=paymentReason)
# Create a response for this
envelope = p.envelope()