Skip to content

Bugfix: Patch QPay service callback URL, and ensure callbackUrl is pr… - #90

Merged
roncodes merged 2 commits into
dev-v0.4.20from
fix/qpay-callback-url
Aug 29, 2026
Merged

Bugfix: Patch QPay service callback URL, and ensure callbackUrl is pr…#90
roncodes merged 2 commits into
dev-v0.4.20from
fix/qpay-callback-url

Conversation

@roncodes

Copy link
Copy Markdown
Member

No description provided.

@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b4d9f4b) to head (12fd836).

Additional details and impacted files
@@             Coverage Diff             @@
##                main       #90   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
  Complexity      1742      1742           
===========================================
  Files            135       135           
  Lines           7699      7699           
===========================================
  Hits            7699      7699           
Flag Coverage Δ
backend 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@roncodes roncodes mentioned this pull request Aug 28, 2026
@roncodes
roncodes changed the base branch from main to dev-v0.4.20 August 28, 2026 07:35
Apply review findings from the callback URL fix:

- Single-source the capture callback URL in QPay::callbackUrl(), honoring
  the configurable storefront route prefix instead of hardcoding it in two
  files, and document the constructor default as a last resort that cannot
  carry a checkout id.
- Set the per-checkout callback once via setCallback() instead of threading
  it through optional trailing invoice arguments, so every invoice path on
  the instance uses it and future call sites cannot silently omit it.
- Drop the duplicated callback fallback blocks in createSimpleInvoice and
  createEbarimtInvoice; createQPayInvoice already applies the identical
  fallback for both.
- Remove a stray leading quote from the paymentCancel/paymentRefund
  callback_url literals.
- Cache the QPay access token across requests (keyed by base URI and
  username, until shortly before expiry) instead of re-authenticating on
  every checkout and callback.
- Batch-fetch cart products once for invoice line building and let the
  classification/tax-code helpers accept a preloaded product, removing up
  to two duplicate product queries per cart item.
@roncodes
roncodes merged commit bd6d66d into dev-v0.4.20 Aug 29, 2026
@roncodes
roncodes deleted the fix/qpay-callback-url branch August 29, 2026 13:22
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