added support for Dojo terminal-unavailable responses

This commit is contained in:
2026-07-23 12:08:18 +01:00
parent 478d260ebe
commit fbf652720c
9 changed files with 409 additions and 9 deletions
+1
View File
@@ -152,6 +152,7 @@ func (c *Client) doPayment(ctx context.Context, req PaymentRequest, onStatus pay
case types.MesTypePaymentResult:
var result PaymentResultEnvelope
// log.Println("PayBridge payment result raw:", string(raw))
if err := json.Unmarshal(raw, &result); err != nil {
return nil, fmt.Errorf("decode payment_result: %w", err)
}