using Gr4vy;
using Gr4vy.Models.Components;
using Gr4vy.Models.Requests;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
ListPaymentServiceDefinitionsResponse? res = await sdk.PaymentServiceDefinitions.ListAsync(limit: 20);
while(res != null)
{
// handle items
res = await res.Next!();
}{
"items": [
{
"id": "<string>",
"display_name": "<string>",
"method": "abitab",
"fields": [
{
"key": "<string>",
"display_name": "<string>",
"required": true,
"format": "text",
"secret": true
}
],
"reporting_fields": [
{
"key": "<string>",
"display_name": "<string>",
"required": true,
"format": "text",
"secret": true
}
],
"supported_currencies": [
"<string>"
],
"supported_countries": [
"<string>"
],
"mode": "card",
"supported_features": {},
"required_checkout_fields": [
{
"required_fields": [
"<string>"
],
"conditions": {
"country": [
"IN"
]
}
}
],
"configuration": {
"approval_ui_target": "new_window",
"approval_ui_height": "<string>",
"approval_ui_width": "<string>",
"cart_items_limit": 123,
"cart_items_required": true,
"cart_items_should_match_amount": true
},
"supported_integration_clients": [
"redirect"
],
"type": "payment-service-definition",
"icon_url": "https://example.com/icons/adyen-ideal.svg"
}
],
"limit": 20,
"next_cursor": "ZXhhbXBsZTE",
"previous_cursor": "Xkjss7asS"
}List the definitions of each payment service that can be configured.
using Gr4vy;
using Gr4vy.Models.Components;
using Gr4vy.Models.Requests;
var sdk = new Gr4vySDK(
id: "example",
server: SDKConfig.Server.Sandbox,
bearerAuthSource: Auth.WithToken(privateKey),
merchantAccountId: "default"
);
ListPaymentServiceDefinitionsResponse? res = await sdk.PaymentServiceDefinitions.ListAsync(limit: 20);
while(res != null)
{
// handle items
res = await res.Next!();
}{
"items": [
{
"id": "<string>",
"display_name": "<string>",
"method": "abitab",
"fields": [
{
"key": "<string>",
"display_name": "<string>",
"required": true,
"format": "text",
"secret": true
}
],
"reporting_fields": [
{
"key": "<string>",
"display_name": "<string>",
"required": true,
"format": "text",
"secret": true
}
],
"supported_currencies": [
"<string>"
],
"supported_countries": [
"<string>"
],
"mode": "card",
"supported_features": {},
"required_checkout_fields": [
{
"required_fields": [
"<string>"
],
"conditions": {
"country": [
"IN"
]
}
}
],
"configuration": {
"approval_ui_target": "new_window",
"approval_ui_height": "<string>",
"approval_ui_width": "<string>",
"cart_items_limit": 123,
"cart_items_required": true,
"cart_items_should_match_amount": true
},
"supported_integration_clients": [
"redirect"
],
"type": "payment-service-definition",
"icon_url": "https://example.com/icons/adyen-ideal.svg"
}
],
"limit": 20,
"next_cursor": "ZXhhbXBsZTE",
"previous_cursor": "Xkjss7asS"
}payment-service-definitions.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A pointer to the page of results to return.
"ZXhhbXBsZTE"
The maximum number of items that are at returned.
1 <= x <= 10020
Successful Response
A list of items returned for this request.
Show child attributes
The number of items for this page.
1 <= x <= 10020
The cursor pointing at the next page of items.
1 - 1000"ZXhhbXBsZTE"
The cursor pointing at the previous page of items.
1 - 1000"Xkjss7asS"