Skip to content

Commit 80d88d2

Browse files
authored
Fix secret for topics (#1921)
1 parent 232affd commit 80d88d2

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

jobs/payment-jobs/config.py

+3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ class _Config(object): # pylint: disable=too-few-public-methods
125125
GCP_AUTH_KEY = os.getenv("AUTHPAY_GCP_AUTH_KEY", None)
126126
ACCOUNT_MAILER_TOPIC = os.getenv("ACCOUNT_MAILER_TOPIC", None)
127127
AUTH_EVENT_TOPIC = os.getenv("AUTH_EVENT_TOPIC", None)
128+
BUSINESS_PAY_TOPIC = os.getenv("BUSINESS_PAY_TOPIC", "business-pay-topic")
129+
NAMEX_PAY_TOPIC = os.getenv("NAMEX_PAY_TOPIC", "namex-pay-dev")
130+
STRR_PAY_TOPIC = os.getenv("STRR_PAY_TOPIC", BUSINESS_PAY_TOPIC)
128131

129132
CFS_ACCOUNT_DESCRIPTION = os.getenv("CFS_ACCOUNT_DESCRIPTION", "BCR")
130133
CFS_INVOICE_PREFIX = os.getenv("CFS_INVOICE_PREFIX", "REG")

pay-queue/src/pay_queue/config.py

+4
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ class _Config: # pylint: disable=too-few-public-methods,protected-access
122122
ACCOUNT_MAILER_TOPIC = os.getenv("ACCOUNT_MAILER_TOPIC", "account-mailer-dev")
123123
AUTH_EVENT_TOPIC = os.getenv("AUTH_EVENT_TOPIC", "auth-event-dev")
124124
GCP_AUTH_KEY = os.getenv("AUTHPAY_GCP_AUTH_KEY", None)
125+
BUSINESS_PAY_TOPIC = os.getenv("BUSINESS_PAY_TOPIC", "business-pay-topic")
126+
NAMEX_PAY_TOPIC = os.getenv("NAMEX_PAY_TOPIC", "namex-pay-dev")
127+
STRR_PAY_TOPIC = os.getenv("STRR_PAY_TOPIC", BUSINESS_PAY_TOPIC)
128+
125129
# If blank in PUBSUB, this should match the https endpoint the subscription is pushing to.
126130
PAY_AUDIENCE_SUB = os.getenv("PAY_AUDIENCE_SUB", None)
127131
VERIFY_PUBSUB_EMAILS = f'{os.getenv("AUTHPAY_SERVICE_ACCOUNT")},{os.getenv("BUSINESS_SERVICE_ACCOUNT")}'.split(",")

pay-queue/src/pay_queue/services/payment_reconciliations.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def _process_paid_invoices(inv_references, row):
625625
db.session.add(receipt)
626626
# Publish to the queue if it's an Online Banking payment
627627
if inv.payment_method_code == PaymentMethod.ONLINE_BANKING.value:
628-
current_app.logger.debug("Publishing payment event for OB. Invoice : %s", inv.id)
628+
current_app.logger.info("Publishing payment event for OB. Invoice : %s", inv.id)
629629
_publish_payment_event(inv)
630630

631631

0 commit comments

Comments
 (0)