Skip to content

Commit

Permalink
Minor tweak to BCOL-API, extra slash doesn't work (bcgov#1615)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Jul 12, 2024
1 parent 6611663 commit a53135e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class TestConfig(_Config): # pylint: disable=too-few-public-methods

AUTH_API_ENDPOINT = 'http://localhost:8080/auth-api/'

BCOL_API_ENDPOINT = 'http://localhost:8080/bcol-api'
BCOL_API_ENDPOINT = 'http://localhost:8080/bcol-api/'

VALID_REDIRECT_URLS = ['http://localhost:8080/*']

Expand Down
2 changes: 1 addition & 1 deletion pay-api/src/pay_api/services/bcol_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def create_invoice(self, payment_account: PaymentAccount, # pylint: disable=too
f'Auth Account : {payment_account.auth_account_id}')
user: UserContext = kwargs['user']
force_non_staff_fee_code = 'force_non_staff_fee_code' in kwargs
pay_endpoint = current_app.config.get('BCOL_API_ENDPOINT') + '/payments'
pay_endpoint = current_app.config.get('BCOL_API_ENDPOINT') + 'payments'
invoice_number = generate_transaction_number(invoice.id)
corp_number = invoice.business_identifier or ''
amount_excluding_txn_fees = sum(line.total for line in line_items)
Expand Down

0 comments on commit a53135e

Please sign in to comment.