Skip to content

Commit

Permalink
Update fee_service.py
Browse files Browse the repository at this point in the history
  • Loading branch information
divyav-aot authored Nov 18, 2023
1 parent e6dcb54 commit 18d0716
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion request-management-api/request_api/services/fee_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand All @@ -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('<Getting token')
token_url = current_app.config.get('PAYBC_API_BASE_URL') + '/oauth/token'
print("token_url >>>> ", 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')
Expand All @@ -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

Expand Down

0 comments on commit 18d0716

Please sign in to comment.