forked from go-packages/paypal
19 lines
349 B
Go
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)
|
||
|
}
|
||
|
}
|