Skip to content

Add Docker configuration and enhance payment verification - #1

Merged
dev-bramwel merged 5 commits into
masterfrom
feat/docker
Aug 20, 2026
Merged

dev-bramwel merged 5 commits into
masterfrom
feat/docker

Conversation

@dev-bramwel

Copy link
Copy Markdown
Owner

No description provided.

@vercel

vercel Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
loopi-pay Ready Ready Preview Aug 20, 2026 4:42pm

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f30c49688d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread backend/payments/views.py
Comment on lines +587 to +592
if payment_session and verified_data:
payment_status_value = verified_data.get('status')
if payment_status_value == 'success':
payment_session.status = PaymentSession.STATUS_COMPLETED
payment_session.paystack_reference = reference
payment_session.save(update_fields=['status', 'paystack_reference', 'updated_at'])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Bind Paystack verification to the requested session

When payment_status is called with an existing session_id, the newly fetched Paystack verified_data is applied without checking that the verified transaction belongs to that session, such as by matching metadata.session_id or the stored paystack_reference. Because this endpoint is AllowAny and session ids are embedded in QR/payment links, anyone with a successful Paystack reference can mark a different pending session completed and credit the wrong transaction.

Useful? React with 👍 / 👎.

Comment thread backend/payments/views.py
Comment on lines +602 to +605
elif payment_status_value in ('failed', 'abandoned'):
payment_session.status = PaymentSession.STATUS_FAILED
payment_session.paystack_reference = reference
payment_session.save(update_fields=['status', 'paystack_reference', 'updated_at'])

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Mirror failed callback status onto Transaction

When Paystack verification returns failed or abandoned through the browser callback, this updates only PaymentSession; in the local/Docker or webhook-outage scenario this path is meant to handle, the matching vendors.Transaction remains pending. The dashboard and stats are backed by Transaction.status, so vendors will continue seeing failed payments as pending unless a webhook later arrives.

Useful? React with 👍 / 👎.

@dev-bramwel
dev-bramwel merged commit 32caa69 into master Aug 20, 2026
2 of 5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 5128c875 Deployed Aug 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant