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. A pointer to the page of results to return.
"ZXhhbXBsZTE"
The maximum number of items that are at returned. The maximum number of items that are at returned.
1 <= x <= 100Successful Response
A list of items returned for this request.
Show child attributes
The definition ID of the payment service that can be configured. This is the underlying provider followed by a dash followed by the method.
1 - 50A human friendly name for this service.
1 - 200The method of the service
abitab, affirm, afterpay, alipay, alipayhk, applepay, arcuspaynetwork, bacs, bancontact, bank, banked, bcp, becs, bitpay, blik, boleto, boost, card, cashapp, chaseorbital, clearpay, click-to-pay, dana, dcb, dlocal, ebanx, efecty, eps, everydaypay, gcash, gem, gemds, gift-card, giropay, givingblock, gocardless, googlepay, googlepay_pan_only, gopay, grabpay, ideal, kakaopay, kcp, khipu, klarna, latitude, latitudeds, laybuy, linepay, linkaja, maybankqrpay, mercadopago, multibanco, multipago, nequi, netbanking, network-token, nupay, oney_10x, oney_12x, oney_3x, oney_4x, oney_6x, ovo, oxxo, p24, pagoefectivo, payid, paymaya, paypal, paypalpaylater, payto, payvalida, picpay, pix, plaid, pse, rabbitlinepay, razorpay, rapipago, redpagos, scalapay, sepa, servipag, shopeepay, singteldash, smartpay, sofort, spei, stitch, stripedd, stripetoken, tapi, tapifintechs, thaiqr, touchngo, truemoney, trustly, trustlyeurope, upi, venmo, vipps, waave, webpay, wechat, yape, zippay A list of credentials and related fields which can be configured for this service.
Show child attributes
The key of a field that can be submitted.
1 - 50The human readable name for this field.
1 - 200Defines if this field is required when the service is created.
Defines the type of input that needs to be rendered for this field.
text, multiline, number, timezone, boolean Defines if this field is secret. When true the field's value is not returned when querying the payment service information.
A list of reporting fields which can be configured for this service.
Show child attributes
The key of a field that can be submitted.
1 - 50The human readable name for this field.
1 - 200Defines if this field is required when the service is created.
Defines the type of input that needs to be rendered for this field.
text, multiline, number, timezone, boolean Defines if this field is secret. When true the field's value is not returned when querying the payment service information.
A list of three-letter ISO currency codes that this service supports.
A list of two-letter ISO country codes that this service supports.
The mode that defines the flow this payment service uses to process a payment.
card, redirect, applepay, googlepay, checkout-session, click-to-pay, gift-card, bank A list of condition that define when some fields must be provided with a transaction request.
Show child attributes
Additional configuration on how to present the approval UI.
Show child attributes
The browser target that an approval URL must be opened in. If any or null, then there is no specific requirement.
new_window, any Height of the approval interface in either pixels or view height (vh).
Width of the approval interface in either pixels or view width (vw).
The maximum number of cart items supported by this connector before we will truncate the list.
Defines if cart items are required by this connector.
Defines if the cart items sum value should match the transaction amount.
List of supported integration clients. Defaults to redirect for most redirect connectors.
redirect, web, android, ios ["redirect"]Always payment-service-definition.
"payment-service-definition"An icon to display for the payment service.
"https://example.com/icons/adyen-ideal.svg"
The number of items for this page.
1 <= x <= 100The cursor pointing at the next page of items.
1 - 1000"ZXhhbXBsZTE"
The cursor pointing at the previous page of items.
1 - 1000"Xkjss7asS"
Was this page helpful?