From 18d071620b483b48d46f4ed73c7ce569ea63d7f7 Mon Sep 17 00:00:00 2001 From: divyav-aot <79858022+divyav-aot@users.noreply.github.com> Date: Fri, 17 Nov 2023 20:37:23 -0500 Subject: [PATCH] Update fee_service.py --- request-management-api/request_api/services/fee_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/request-management-api/request_api/services/fee_service.py b/request-management-api/request_api/services/fee_service.py index a8c5a25a2..a2b5eff59 100644 --- a/request-management-api/request_api/services/fee_service.py +++ b/request-management-api/request_api/services/fee_service.py @@ -200,6 +200,8 @@ def get_paybc_transaction_details(self): paybc_ref_number: str = current_app.config.get('PAYBC_REF_NUMBER') endpoint = f'{paybc_transaction_url}/paybc/payment/{paybc_ref_number}/{self.payment.transaction_number}' + print("endpoint >>>>> ", endpoint) + print("access_token >>> ", access_token) response = requests.get( endpoint, headers={ @@ -216,6 +218,7 @@ def get_paybc_token(self): """Generate oauth token from payBC which will be used for all communication.""" current_app.logger.debug('>>> ", token_url) basic_auth_encoded = base64.b64encode( bytes(current_app.config.get('PAYBC_API_CLIENT') + ':' + current_app.config.get( 'PAYBC_API_SECRET'), 'utf-8')).decode('utf-8') @@ -229,7 +232,8 @@ def get_paybc_token(self): }, timeout=current_app.config.get('CONNECT_TIMEOUT') ) - + print("response >>>> ") + print(response) current_app.logger.debug('>Getting token') return response