added print
Some checks failed
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled

This commit is contained in:
2026-09-19 12:26:35 +05:00
parent 87e4b33322
commit f42ad01828
2 changed files with 37 additions and 1 deletions

View File

@@ -88,7 +88,11 @@ func (c *LogClient) Register(_ context.Context, req RegisterRequest) (RegisterRe
"stub": true, "note": "no real MPI client configured (debug mode) - pkg/paymentgateway.LogClient",
"orderId": orderID, "orderNumber": req.OrderNumber, "amountMinor": req.AmountMinor, "processedAt": time.Now().UTC(),
})
return RegisterResult{OrderId: orderID, FormUrl: "", RawResponse: raw}, nil
// FormUrl must be non-empty for RegisterResult.Success() to pass - reusing
// ReturnURL here means opening it goes straight to the callback, which
// this stub's CheckStatus always reports as paid, exercising the full
// register -> callback -> finalize flow without a real bank redirect page.
return RegisterResult{OrderId: orderID, FormUrl: req.ReturnURL, RawResponse: raw}, nil
}
func (c *LogClient) CheckStatus(_ context.Context, req StatusRequest) (StatusResult, error) {