payment-history: apiClientName, formUrl/successUrl after finalizing, callbackStatus
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

To match the old online payment history page:
- apiClientName: billing_visa_master_username / billing_sber_username
- formUrl falls back to the logged register.do response, so finalized
  attempts keep it; successUrl is the returnUrl logged with register.do
- callbackStatus ("received") and callbackAt from the attempt's first
  callback_received log
- index visa_master_payment_logs (order_id, step) for those lookups

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 19:49:24 +05:00
parent ae6bf0b7e3
commit ef3a1baee2
7 changed files with 140 additions and 46 deletions

View File

@@ -10039,7 +10039,10 @@
"type": "number"
},
"apiClient": {
"description": "ApiClient is the branch's GBÜS merchant username for this order type\n(visa/master or sber) and Description the text sent with register.do -\nboth as visamasterpay's Pay picks them.",
"description": "ApiClient is the branch's GBÜS merchant username for this order type\n(visa/master or sber), ApiClientName the branch setting it comes from\n(billing_visa_master_username or billing_sber_username), and\nDescription the text sent with register.do - all as visamasterpay's\nPay picks them.",
"type": "string"
},
"apiClientName": {
"type": "string"
},
"bankFeeTmt": {
@@ -10051,6 +10054,13 @@
"branchName": {
"$ref": "#/definitions/shared.LocalizedText"
},
"callbackAt": {
"type": "string"
},
"callbackStatus": {
"description": "CallbackStatus is CallbackReceived once GBÜS's redirect reached the\ncallback for this attempt, at CallbackAt (its first time); both are\nunset if it never did (e.g. finalized by a /status check instead).",
"type": "string"
},
"cardholderName": {
"description": "CardholderName/MaskedPan come from GBÜS's getOrderStatusExtended\ncardAuthInfo, so they're only known once an attempt has been\nfinalized by the callback/status check (unset while pending, and for\nattempts that never reached the card form).",
"type": "string"
@@ -10074,7 +10084,7 @@
"type": "number"
},
"formUrl": {
"description": "FormUrl/SuccessUrl are only set while the attempt is still pending\n(awaiting the customer to finish paying on GBÜS's hosted page) - once\nan attempt is finalized (success/failed), gateway_response no longer\nholds a formUrl, so there's nothing left to resume.",
"description": "FormUrl is GBÜS's hosted payment page and SuccessUrl the returnUrl it\nwas registered with - set for every attempt register.do accepted,\nfinalized ones included (unset if registration failed).",
"type": "string"
},
"gatewayReference": {
@@ -10154,7 +10164,10 @@
"type": "number"
},
"apiClient": {
"description": "ApiClient is the branch's GBÜS merchant username for this order type\n(visa/master or sber) and Description the text sent with register.do -\nboth as visamasterpay's Pay picks them.",
"description": "ApiClient is the branch's GBÜS merchant username for this order type\n(visa/master or sber), ApiClientName the branch setting it comes from\n(billing_visa_master_username or billing_sber_username), and\nDescription the text sent with register.do - all as visamasterpay's\nPay picks them.",
"type": "string"
},
"apiClientName": {
"type": "string"
},
"bankFeeTmt": {
@@ -10166,6 +10179,13 @@
"branchName": {
"$ref": "#/definitions/shared.LocalizedText"
},
"callbackAt": {
"type": "string"
},
"callbackStatus": {
"description": "CallbackStatus is CallbackReceived once GBÜS's redirect reached the\ncallback for this attempt, at CallbackAt (its first time); both are\nunset if it never did (e.g. finalized by a /status check instead).",
"type": "string"
},
"cardholderName": {
"description": "CardholderName/MaskedPan come from GBÜS's getOrderStatusExtended\ncardAuthInfo, so they're only known once an attempt has been\nfinalized by the callback/status check (unset while pending, and for\nattempts that never reached the card form).",
"type": "string"
@@ -10189,7 +10209,7 @@
"type": "number"
},
"formUrl": {
"description": "FormUrl/SuccessUrl are only set while the attempt is still pending\n(awaiting the customer to finish paying on GBÜS's hosted page) - once\nan attempt is finalized (success/failed), gateway_response no longer\nholds a formUrl, so there's nothing left to resume.",
"description": "FormUrl is GBÜS's hosted payment page and SuccessUrl the returnUrl it\nwas registered with - set for every attempt register.do accepted,\nfinalized ones included (unset if registration failed).",
"type": "string"
},
"gatewayReference": {