mirror of
https://github.com/tavo-wasd-gh/conex-builder.git
synced 2025-06-06 11:43:29 -06:00
templog
This commit is contained in:
parent
c2007566a1
commit
6081d915e9
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"os"
|
||||
"time"
|
||||
|
@ -190,6 +191,8 @@ func CaptureOrder(orderID string) (Capture, Receipt, error) {
|
|||
var receipt Receipt
|
||||
|
||||
body, err := io.ReadAll(raw.Body)
|
||||
log.Printf("Raw Body: %s", string(body))
|
||||
|
||||
if err != nil {
|
||||
return Capture{}, Receipt{}, fmt.Errorf("%s: %v", errCaptureOrderResp, err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue