visamasterpay: return gatewayResponse from GET /{id}/status
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:
@@ -114,7 +114,7 @@ func (h *handler) pay(c *gin.Context) {
|
||||
|
||||
// status godoc
|
||||
// @Summary Re-check a visa/master/sber order's latest payment attempt
|
||||
// @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.
|
||||
// @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. gatewayResponse is GBÜS's last stored response for the attempt (null if GBÜS never answered). Safe to call repeatedly.
|
||||
// @Tags visa-master-payment
|
||||
// @Produce json
|
||||
// @Security BearerAuth
|
||||
|
||||
Reference in New Issue
Block a user