using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.PaymentOptions.ListAsync(paymentOptionRequest: new PaymentOptionRequest() {});
// handle response{
"items": [
{
"method": "<string>",
"mode": "card",
"can_store_payment_method": true,
"can_delay_capture": true,
"type": "payment-option",
"icon_url": "<string>",
"label": "<string>",
"context": {
"merchant_name": "<string>",
"supported_schemes": [
"<string>"
]
}
}
]
}List the payment options available at checkout. filtering by country, currency, and additional fields passed to Flow rules.
using Gr4vy;
using Gr4vy.Models.Components;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
var res = await sdk.PaymentOptions.ListAsync(paymentOptionRequest: new PaymentOptionRequest() {});
// handle response{
"items": [
{
"method": "<string>",
"mode": "card",
"can_store_payment_method": true,
"can_delay_capture": true,
"type": "payment-option",
"icon_url": "<string>",
"label": "<string>",
"context": {
"merchant_name": "<string>",
"supported_schemes": [
"<string>"
]
}
}
]
}payment-options.read or embed scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the merchant account to use for this request.
"default"
The metadata to used to evaluate checkout rules, which will help determine the right payment options to display.
Show child attributes
{ "cohort": "a" }The country code used to evaluate checkout rules, and which are used to help determine the right payment options to display.
^[A-Z]{2}$"US"
The currency code used to evaluate checkout rules, and which are used to help determine the right payment options to display.
^[A-Z]{3}$"USD"
The amount used to evaluate checkout rules, and which are used to help determine the right payment options to display.
1299
The locale used to determine the labels for each payment option.
1 - 50"en"
The cart items used to evaluate checkout rules, and which are used to help determine the right payment options to display.
Show child attributes
Successful Response
A list of items returned for this request.
Show child attributes