better logs
Some checks failed
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled
Build and Publish / BuildAndDeploy (push) Has started running

This commit is contained in:
matst80
2025-05-12 21:12:59 +02:00
parent f079d0b649
commit 9ba5384615
3 changed files with 24 additions and 11 deletions

View File

@@ -481,7 +481,7 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
Name: item.Name,
Quantity: item.Quantity,
UnitPrice: int(item.Price),
TaxRate: int(item.Tax),
TaxRate: 2500,
QuantityUnit: "st",
TotalAmount: int(item.TotalPrice),
TotalTaxAmount: int(item.TotalTax),
@@ -516,6 +516,7 @@ func (c *CartGrain) HandleMessage(message *Message, isReplay bool) (*FrameWithPa
}
log.Printf("Order result: %+v", klarnaOrder)
if nil != err {
log.Printf("error from klarna: %v", err)
return nil, err
}
if c.OrderReference == "" {