mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
mocrofix
This commit is contained in:
parent
0bbdd821f8
commit
c4c61ec4bc
|
@ -137,7 +137,7 @@ func (c *Client) log(r *http.Request, resp *http.Response) {
|
||||||
reqDump := fmt.Sprintf("%s %s. Data: %s", r.Method, r.URL.String(), r.Form.Encode())
|
reqDump := fmt.Sprintf("%s %s. Data: %s", r.Method, r.URL.String(), r.Form.Encode())
|
||||||
respDump, _ := httputil.DumpResponse(resp, true)
|
respDump, _ := httputil.DumpResponse(resp, true)
|
||||||
|
|
||||||
c.Log.Write([]byte("Request: " + string(reqDump) + "\nResponse: " + string(respDump) + "\n\n"))
|
c.Log.Write([]byte("Request: " + reqDump + "\nResponse: " + string(respDump) + "\n\n"))
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,11 +2,13 @@ package paypalsdk
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
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.GetAccessToken()
|
c.GetAccessToken()
|
||||||
|
|
||||||
amount := Amount{
|
amount := Amount{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user