added print
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user