visamasterpay: return gatewayResponse from GET /{id}/status
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

The status check now carries GBÜS's last stored response for the
attempt alongside gatewayStatus - the fresh getOrderStatusExtended.do
answer when it was just checked, the stored one when the attempt was
already finalized, null if GBÜS never answered. The callback is
unchanged: it is public and only reports paid plus a message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-25 01:25:12 +05:00
parent 570d4c6d20
commit 742e078090
6 changed files with 42 additions and 26 deletions

View File

@@ -2131,6 +2131,8 @@ definitions:
type: number
gatewayReference:
type: string
gatewayResponse:
type: object
gatewayStatus:
type: string
gbusFeeTmt:
@@ -8872,7 +8874,8 @@ paths:
description: For when the frontend can't rely on GBÜS's redirect having reached
the callback (e.g. the user closed the hosted payment page first) - re-verifies
the latest attempt with GBÜS server-to-server, the same way the callback does,
and finalizes it if needed. Safe to call repeatedly.
and finalizes it if needed. gatewayResponse is GBÜS's last stored response
for the attempt (null if GBÜS never answered). Safe to call repeatedly.
parameters:
- description: Visa/master payment order ID
in: path