From ee63af0fad20b50b80a8ea55903460c0eef05d21 Mon Sep 17 00:00:00 2001
From: bird <20701908+bir-d@users.noreply.github.com>
Date: Mon, 15 May 2023 12:56:04 +0800
Subject: [PATCH] fix: initialise client for production instead of sandbox

---
 src/squarepay/payments.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/squarepay/payments.py b/src/squarepay/payments.py
index 7c69bee..c46d3cc 100644
--- a/src/squarepay/payments.py
+++ b/src/squarepay/payments.py
@@ -18,7 +18,7 @@ access_key = getattr(settings, 'SQUARE_ACCESS_TOKEN', None)
 if (app_id is None) or (loc_id is None) or (access_key is None):
     raise ImproperlyConfigured("Please define SQUARE_APP_ID, SQUARE_LOCATION and SQUARE_ACCESS_TOKEN in settings.py")
 
-client = Client(access_token=access_key, environment='sandbox')
+client = Client(access_token=access_key, environment='production')
 
 def try_capture_payment(card_payment, source_id, verification_token):
     """
-- 
GitLab