more
This commit is contained in:
4
main.go
4
main.go
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user