diff --git a/pay-api/src/pay_api/config.py b/pay-api/src/pay_api/config.py index 5d2593124..3c3863e80 100755 --- a/pay-api/src/pay_api/config.py +++ b/pay-api/src/pay_api/config.py @@ -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/*'] diff --git a/pay-api/src/pay_api/services/bcol_service.py b/pay-api/src/pay_api/services/bcol_service.py index a0a8a8727..c099afead 100644 --- a/pay-api/src/pay_api/services/bcol_service.py +++ b/pay-api/src/pay_api/services/bcol_service.py @@ -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)