From 9ae117226f8d7bfdaf909731503527a9e8733971 Mon Sep 17 00:00:00 2001 From: Rada Florin Date: Tue, 26 Sep 2017 18:37:31 +0300 Subject: [PATCH] Cleanup from editing. --- integration_test.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/integration_test.go b/integration_test.go index a1f623e..ff28907 100644 --- a/integration_test.go +++ b/integration_test.go @@ -3,8 +3,6 @@ package paypalsdk import ( - "encoding/json" - "fmt" "os" "testing" ) @@ -156,7 +154,7 @@ func TestVoidOrder(t *testing.T) { func TestCreateDirectPaypalPayment(t *testing.T) { c, _ := NewClient(testClientID, testSecret, APIBaseSandBox) - //c.SetLog(os.Stdout) + c.SetLog(os.Stdout) c.GetAccessToken() amount := Amount{ @@ -214,16 +212,14 @@ func TestCreatePayment(t *testing.T) { }, }}, RedirectURLs: &RedirectURLs{ - ReturnURL: "http://localhost:9000/gb/checkout/payment", - CancelURL: "http://localhost:9000/gb/checkout/summary", + ReturnURL: "http://..", + CancelURL: "http://..", }, } pr, err := c.CreatePayment(p) if err != nil { t.Errorf("Error creating payment.") } - pmEnc, _ := json.Marshal(pr) - fmt.Printf("pmEnc: %s", pmEnc) } func TestGetPayment(t *testing.T) {