This commit is contained in:
tavo 2024-09-22 12:33:48 -06:00
parent c2007566a1
commit 6081d915e9

View file

@ -5,6 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io" "io"
"log"
"net/http" "net/http"
"os" "os"
"time" "time"
@ -190,6 +191,8 @@ func CaptureOrder(orderID string) (Capture, Receipt, error) {
var receipt Receipt var receipt Receipt
body, err := io.ReadAll(raw.Body) body, err := io.ReadAll(raw.Body)
log.Printf("Raw Body: %s", string(body))
if err != nil { if err != nil {
return Capture{}, Receipt{}, fmt.Errorf("%s: %v", errCaptureOrderResp, err) return Capture{}, Receipt{}, fmt.Errorf("%s: %v", errCaptureOrderResp, err)
} }