Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
enable list client sources in production (#9492)
LeviHeber2d1599f1f8e2
diff --git a/saleor/payment/gateways/authorize_net/__init__.py b/saleor/payment/gateways/authorize_net/__init__.pyindex a9eb919dad..d236ac8b02 100644--- a/saleor/payment/gateways/authorize_net/__init__.py+++ b/saleor/payment/gateways/authorize_net/__init__.py@@ -254,6 +254,8 @@ def list_client_sources(get_customer_profile.customerProfileId = customer_idget_customer_profile.unmaskExpirationDate = Truecontroller = getCustomerProfileController(get_customer_profile)+ if not config.connection_params.get("use_sandbox"):+ controller.setenvironment(constants.PRODUCTION)controller.execute()response = controller.getresponse()