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

@@ -1348,8 +1348,12 @@ definitions:
apiClient:
description: |-
ApiClient is the branch's GBÜS merchant username for this order type
(visa/master or sber) and Description the text sent with register.do -
both as visamasterpay's Pay picks them.
(visa/master or sber), ApiClientName the branch setting it comes from
(billing_visa_master_username or billing_sber_username), and
Description the text sent with register.do - all as visamasterpay's
Pay picks them.
type: string
apiClientName:
type: string
bankFeeTmt:
type: number
@@ -1357,6 +1361,14 @@ definitions:
type: integer
branchName:
$ref: '#/definitions/shared.LocalizedText'
callbackAt:
type: string
callbackStatus:
description: |-
CallbackStatus is CallbackReceived once GBÜS's redirect reached the
callback for this attempt, at CallbackAt (its first time); both are
unset if it never did (e.g. finalized by a /status check instead).
type: string
cardholderName:
description: |-
CardholderName/MaskedPan come from GBÜS's getOrderStatusExtended
@@ -1378,10 +1390,9 @@ definitions:
type: number
formUrl:
description: |-
FormUrl/SuccessUrl are only set while the attempt is still pending
(awaiting the customer to finish paying on GBÜS's hosted page) - once
an attempt is finalized (success/failed), gateway_response no longer
holds a formUrl, so there's nothing left to resume.
FormUrl is GBÜS's hosted payment page and SuccessUrl the returnUrl it
was registered with - set for every attempt register.do accepted,
finalized ones included (unset if registration failed).
type: string
gatewayReference:
type: string
@@ -1439,8 +1450,12 @@ definitions:
apiClient:
description: |-
ApiClient is the branch's GBÜS merchant username for this order type
(visa/master or sber) and Description the text sent with register.do -
both as visamasterpay's Pay picks them.
(visa/master or sber), ApiClientName the branch setting it comes from
(billing_visa_master_username or billing_sber_username), and
Description the text sent with register.do - all as visamasterpay's
Pay picks them.
type: string
apiClientName:
type: string
bankFeeTmt:
type: number
@@ -1448,6 +1463,14 @@ definitions:
type: integer
branchName:
$ref: '#/definitions/shared.LocalizedText'
callbackAt:
type: string
callbackStatus:
description: |-
CallbackStatus is CallbackReceived once GBÜS's redirect reached the
callback for this attempt, at CallbackAt (its first time); both are
unset if it never did (e.g. finalized by a /status check instead).
type: string
cardholderName:
description: |-
CardholderName/MaskedPan come from GBÜS's getOrderStatusExtended
@@ -1469,10 +1492,9 @@ definitions:
type: number
formUrl:
description: |-
FormUrl/SuccessUrl are only set while the attempt is still pending
(awaiting the customer to finish paying on GBÜS's hosted page) - once
an attempt is finalized (success/failed), gateway_response no longer
holds a formUrl, so there's nothing left to resume.
FormUrl is GBÜS's hosted payment page and SuccessUrl the returnUrl it
was registered with - set for every attempt register.do accepted,
finalized ones included (unset if registration failed).
type: string
gatewayReference:
type: string