package main
import(
"context"
"os"
gr4vygo "github.com/gr4vy/gr4vy-go"
"github.com/gr4vy/gr4vy-go/models/components"
"log"
)
func main() {
ctx := context.Background()
s := gr4vy.New(
gr4vy.WithID("example"),
gr4vy.WithServer(gr4vy.ServerSandbox),
gr4vy.WithSecuritySource(withToken),
gr4vy.WithMerchantAccountID("default"),
)
res, err := s.DigitalWallets.Sessions.PazeMobileSessionCreate(ctx, components.PazeMobileSessionCreateRequest{
Client: components.PazeClient{
ID: "0UVAS9Y03YNJ39XXYIN313F4DZNCjIGmqs4Iw32EPnZV0800o",
},
SessionID: "24e4dbb9-4f5e-43e8-8375-e9fd45650bc9",
AccessToken: "<value>",
CallbackURLScheme: "Gr4vyCallback",
Intent: components.IntentExpressCheckout,
}, nil)
if err != nil {
log.Fatal(err)
}
if res != nil {
// handle response
}
}