paypale/examples/main.go

19 lines
349 B
Go
Raw Normal View History

2015-10-14 07:30:28 +02:00
package main
import (
"paypalsdk"
"fmt"
"os"
)
func main() {
client, err := paypalsdk.NewClient("123", "123", paypalsdk.APIBaseSandBox)
if err == nil {
fmt.Println("DEBUG: ClientID=" + client.ClientID + " APIBase=" + client.APIBase)
} else {
fmt.Println("ERROR: " + err.Error())
os.Exit(1)
}
}