Skip to content

Saleor Core: the high performance, composable, headless commerce API.

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__.py
index 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_id
get_customer_profile.unmaskExpirationDate = True
controller = getCustomerProfileController(get_customer_profile)
+ if not config.connection_params.get("use_sandbox"):
+ controller.setenvironment(constants.PRODUCTION)
controller.execute()
response = controller.getresponse()