max_amount, not amount before the authorization
parent
8c20339618
commit
dbacb5a96d
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue