Skip to content

Commit

Permalink
Merge 773305f into abf9da2
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto Bastos committed Oct 27, 2014
2 parents abf9da2 + 773305f commit 1b002f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion paypal/express/gateway.py
Expand Up @@ -324,7 +324,12 @@ def set_txn(basket, shipping_methods, currency, return_url, cancel_url, update_u

# Set shipping charge explicitly if it has been passed
if shipping_method:
max_charge = charge = shipping_method.charge_incl_tax
if hasattr(shipping_method, 'charge_incl_tax'):
# Oscar < 0.8
max_charge = charge = shipping_method.charge_incl_tax
else:
cost = shipping_method.calculate(basket)
charge = cost.incl_tax
params['PAYMENTREQUEST_0_SHIPPINGAMT'] = _format_currency(charge)
params['PAYMENTREQUEST_0_AMT'] += charge

Expand Down

0 comments on commit 1b002f6

Please sign in to comment.