[fix] give preference to gateway selected on shopping cart settings (#11393)

This commit is contained in:
Saurabh 2017-11-10 11:17:01 +05:30 committed by Nabin Hait
parent e59c9ce9f4
commit 7ab28ec562

View File

@ -294,7 +294,7 @@ def get_gateway_details(args):
if args.get("payment_gateway"):
return get_payment_gateway_account(args.get("payment_gateway"))
if args.cart:
if args.order_type == "Shopping Cart":
payment_gateway_account = frappe.get_doc("Shopping Cart Settings").payment_gateway_account
return get_payment_gateway_account(payment_gateway_account)