package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://checkout.dintero.com/v1/events/gateways/vipps/payment/hooks"
payload := strings.NewReader("{\n \"msn\": \"<string>\",\n \"reference\": \"<string>\",\n \"pspReference\": \"<string>\",\n \"amount\": {\n \"value\": 123\n },\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"success\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-ms-date", "<x-ms-date>")
req.Header.Add("x-ms-content-sha256", "<x-ms-content-sha256>")
req.Header.Add("host", "<host>")
req.Header.Add("authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}