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": "adyen-ideal",
"type": "payment-service-definition",
"display_name": "iDEAL",
"method": "ideal",
"fields": [
{
"key": "private_api_key",
"display_name": "Private API key",
"required": true,
"format": "text",
"secret": true
}
],
"reporting_fields": [
{
"key": "private_api_key",
"display_name": "Private API key",
"required": true,
"format": "text",
"secret": true
}
],
"supported_currencies": [
"USD",
"GBP",
"EUR",
"AUD"
],
"supported_countries": "US",
"mode": "card",
"icon_url": "https://example.com/icons/adyen-ideal.svg",
"supported_features": {},
"required_checkout_fields": [
{
"required_fields": [
"address.line1",
"address.country",
"address.city",
"address.postal_code"
],
"conditions": {
"country": [
"IN"
]
}
}
],
"configuration": {
"approval_ui_target": "any",
"approval_ui_height": "100px",
"approval_ui_width": "100px",
"cart_items_limit": 100,
"cart_items_required": true,
"cart_items_should_match_amount": true
}
}
],
"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": "adyen-ideal",
"type": "payment-service-definition",
"display_name": "iDEAL",
"method": "ideal",
"fields": [
{
"key": "private_api_key",
"display_name": "Private API key",
"required": true,
"format": "text",
"secret": true
}
],
"reporting_fields": [
{
"key": "private_api_key",
"display_name": "Private API key",
"required": true,
"format": "text",
"secret": true
}
],
"supported_currencies": [
"USD",
"GBP",
"EUR",
"AUD"
],
"supported_countries": "US",
"mode": "card",
"icon_url": "https://example.com/icons/adyen-ideal.svg",
"supported_features": {},
"required_checkout_fields": [
{
"required_fields": [
"address.line1",
"address.country",
"address.city",
"address.postal_code"
],
"conditions": {
"country": [
"IN"
]
}
}
],
"configuration": {
"approval_ui_target": "any",
"approval_ui_height": "100px",
"approval_ui_width": "100px",
"cart_items_limit": 100,
"cart_items_required": true,
"cart_items_should_match_amount": true
}
}
],
"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 <= 100
20
Successful Response
The response is of type object
.
Was this page helpful?