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.PaymentServiceDefinitions.GetAsync(paymentServiceDefinitionId: "adyen-ideal");
// handle response{
"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
},
"type": "payment-service-definition",
"icon_url": "https://example.com/icons/adyen-ideal.svg"
}Get the definition of a payment service that can be configured.
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.PaymentServiceDefinitions.GetAsync(paymentServiceDefinitionId: "adyen-ideal");
// handle response{
"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
},
"type": "payment-service-definition",
"icon_url": "https://example.com/icons/adyen-ideal.svg"
}payment-service-definitions.read scope.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
"adyen-ideal"
Successful Response
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 - 50"adyen-ideal"
"stripe-card"
A human friendly name for this service.
1 - 200"iDEAL"
"Stripe"
The 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 "ideal"
"card"
A list of credentials and related fields which can be configured for this service.
Show child attributes
A list of reporting fields which can be configured for this service.
Show child attributes
A list of three-letter ISO currency codes that this service supports.
^[A-Z]{3}$["USD", "GBP", "EUR", "AUD"]A list of two-letter ISO country codes that this service supports.
^[A-Z]{2}$"US"
"GB"
"DE"
"AUD"
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 "card"
"redirect"
Features supported by the payment service.
Show child attributes
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
Always payment-service-definition.
"payment-service-definition""payment-service-definition"
An icon to display for the payment service.
"https://example.com/icons/adyen-ideal.svg"