Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix secret for topics #1921

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jobs/payment-jobs/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ class _Config(object): # pylint: disable=too-few-public-methods
GCP_AUTH_KEY = os.getenv("AUTHPAY_GCP_AUTH_KEY", None)
ACCOUNT_MAILER_TOPIC = os.getenv("ACCOUNT_MAILER_TOPIC", None)
AUTH_EVENT_TOPIC = os.getenv("AUTH_EVENT_TOPIC", None)
BUSINESS_PAY_TOPIC = os.getenv("BUSINESS_PAY_TOPIC", "business-pay-topic")
NAMEX_PAY_TOPIC = os.getenv("NAMEX_PAY_TOPIC", "namex-pay-dev")
STRR_PAY_TOPIC = os.getenv("STRR_PAY_TOPIC", BUSINESS_PAY_TOPIC)

CFS_ACCOUNT_DESCRIPTION = os.getenv("CFS_ACCOUNT_DESCRIPTION", "BCR")
CFS_INVOICE_PREFIX = os.getenv("CFS_INVOICE_PREFIX", "REG")
Expand Down
4 changes: 4 additions & 0 deletions pay-queue/src/pay_queue/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ class _Config: # pylint: disable=too-few-public-methods,protected-access
ACCOUNT_MAILER_TOPIC = os.getenv("ACCOUNT_MAILER_TOPIC", "account-mailer-dev")
AUTH_EVENT_TOPIC = os.getenv("AUTH_EVENT_TOPIC", "auth-event-dev")
GCP_AUTH_KEY = os.getenv("AUTHPAY_GCP_AUTH_KEY", None)
BUSINESS_PAY_TOPIC = os.getenv("BUSINESS_PAY_TOPIC", "business-pay-topic")
NAMEX_PAY_TOPIC = os.getenv("NAMEX_PAY_TOPIC", "namex-pay-dev")
STRR_PAY_TOPIC = os.getenv("STRR_PAY_TOPIC", BUSINESS_PAY_TOPIC)

# If blank in PUBSUB, this should match the https endpoint the subscription is pushing to.
PAY_AUDIENCE_SUB = os.getenv("PAY_AUDIENCE_SUB", None)
VERIFY_PUBSUB_EMAILS = f'{os.getenv("AUTHPAY_SERVICE_ACCOUNT")},{os.getenv("BUSINESS_SERVICE_ACCOUNT")}'.split(",")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ def _process_paid_invoices(inv_references, row):
db.session.add(receipt)
# Publish to the queue if it's an Online Banking payment
if inv.payment_method_code == PaymentMethod.ONLINE_BANKING.value:
current_app.logger.debug("Publishing payment event for OB. Invoice : %s", inv.id)
current_app.logger.info("Publishing payment event for OB. Invoice : %s", inv.id)
_publish_payment_event(inv)


Expand Down