Skip to content

feat: Payment Guard (Prevents Double Payment)#196

Open
davidwebbespiritu wants to merge 2 commits into
frappe:developfrom
davidwebbespiritu:feat-payment-guard
Open

feat: Payment Guard (Prevents Double Payment)#196
davidwebbespiritu wants to merge 2 commits into
frappe:developfrom
davidwebbespiritu:feat-payment-guard

Conversation

@davidwebbespiritu
Copy link
Copy Markdown

Prevent Double Payments

What it does – Stops users from paying twice. If a Payment Request is already marked Paid, the checkout page is skipped and a friendly message is shown.

Why it matters – No duplicate charges, better UX, and saves time.

How it works – On checkout, we check check_payment_status(reference_doctype, reference_docname). If true, redirect to a "Payment already completed" page; otherwise, proceed.

Next steps – Should we add the same check to other gateways (Braintree, Paytm, etc.)? Let me know!

20260207-043713.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant