Cleanup from editing.

This commit is contained in:
Rada Florin 2017-09-26 18:37:31 +03:00
parent f9d30e2c20
commit 9ae117226f

View File

@ -3,8 +3,6 @@
package paypalsdk package paypalsdk
import ( import (
"encoding/json"
"fmt"
"os" "os"
"testing" "testing"
) )
@ -156,7 +154,7 @@ func TestVoidOrder(t *testing.T) {
func TestCreateDirectPaypalPayment(t *testing.T) { func TestCreateDirectPaypalPayment(t *testing.T) {
c, _ := NewClient(testClientID, testSecret, APIBaseSandBox) c, _ := NewClient(testClientID, testSecret, APIBaseSandBox)
//c.SetLog(os.Stdout) c.SetLog(os.Stdout)
c.GetAccessToken() c.GetAccessToken()
amount := Amount{ amount := Amount{
@ -214,16 +212,14 @@ func TestCreatePayment(t *testing.T) {
}, },
}}, }},
RedirectURLs: &RedirectURLs{ RedirectURLs: &RedirectURLs{
ReturnURL: "http://localhost:9000/gb/checkout/payment", ReturnURL: "http://..",
CancelURL: "http://localhost:9000/gb/checkout/summary", CancelURL: "http://..",
}, },
} }
pr, err := c.CreatePayment(p) pr, err := c.CreatePayment(p)
if err != nil { if err != nil {
t.Errorf("Error creating payment.") t.Errorf("Error creating payment.")
} }
pmEnc, _ := json.Marshal(pr)
fmt.Printf("pmEnc: %s", pmEnc)
} }
func TestGetPayment(t *testing.T) { func TestGetPayment(t *testing.T) {