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

This commit is contained in:
2025-09-28 10:29:18 +02:00
parent 8c8ff75b2d
commit fec181f640
2 changed files with 15 additions and 2 deletions

View File

@@ -209,6 +209,9 @@ func main() {
mux.HandleFunc("/checkout", func(w http.ResponseWriter, r *http.Request) {
orderId := r.URL.Query().Get("order_id")
order := &CheckoutOrder{}
country := "se"
log.Printf("host: %s, referer: %s", r.Host, r.Referer())
log.Printf("Checkout for country %s, method: %s, order_id: %s", country, r.Method, orderId)
if orderId == "" {
cookie, err := r.Cookie("cartid")
if err != nil {
@@ -230,6 +233,7 @@ func main() {
Confirmation: fmt.Sprintf("%s/confirmation/{checkout.order.id}", baseUrl),
Validation: fmt.Sprintf("%s/validation", cartBaseUrl),
Push: fmt.Sprintf("%s/push?order_id={checkout.order.id}", cartBaseUrl),
Country: country,
},
})
if err != nil {