update cart
Some checks failed
Build and Publish / BuildAndDeploy (push) Successful in 3m12s
Build and Publish / BuildAndDeployAmd64 (push) Has been cancelled

This commit is contained in:
2025-09-28 15:56:40 +02:00
parent b4c9d09657
commit d98122756a
3 changed files with 316 additions and 19 deletions

View File

@@ -3,10 +3,11 @@ package main
import (
"encoding/json"
"fmt"
"github.com/google/uuid"
"io"
"log"
"net/http"
"github.com/google/uuid"
)
type KlarnaClient struct {
@@ -60,7 +61,7 @@ func (k *KlarnaClient) getOrderResponse(res *http.Response) (*CheckoutOrder, err
log.Println(string(body))
}
return nil, fmt.Errorf(res.Status)
return nil, fmt.Errorf("%s", res.Status)
}
func (k *KlarnaClient) CreateOrder(reader io.Reader) (*CheckoutOrder, error) {