paypal/examples/main.go
Alexander Plutov a4a6af6695 Initial types
2015-10-14 12:30:28 +07:00

19 lines
349 B
Go

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)
}
}