using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
ClickToPaySessionRequest req = new ClickToPaySessionRequest() {
CheckoutSessionId = "4137b1cf-39ac-42a8-bad6-1c680d5dab6b",
};
var res = await sdk.DigitalWallets.Sessions.ClickToPayAsync(req);
// handle response{
"digital_payment_application_id": "<string>",
"digital_payment_application_name": "<string>"
}Create a session for use with Click to Pay.
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
ClickToPaySessionRequest req = new ClickToPaySessionRequest() {
CheckoutSessionId = "4137b1cf-39ac-42a8-bad6-1c680d5dab6b",
};
var res = await sdk.DigitalWallets.Sessions.ClickToPayAsync(req);
// handle response{
"digital_payment_application_id": "<string>",
"digital_payment_application_name": "<string>"
}This endpoint is unauthenticated and requires no scopes.Documentation Index
Fetch the complete documentation index at: https://docs.gr4vy.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The checkout session ID to create a Click to Pay session for.
"4137b1cf-39ac-42a8-bad6-1c680d5dab6b"