{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/DonationPaymentRequest", "title": "DonationPaymentRequest", "properties": { "accountInfo": { "x-addedInVersion": "40", "description": "Shopper account information for 3D Secure 2.\n> For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow.", "$ref": "#/components/schemas/AccountInfo" }, "additionalData": { "additionalProperties": { "type": "string" }, "x-anyOf": [ { "$ref": "#/components/schemas/AdditionalData3DSecure" }, { "$ref": "#/components/schemas/AdditionalDataAirline" }, { "$ref": "#/components/schemas/AdditionalDataCarRental" }, { "$ref": "#/components/schemas/AdditionalDataCommon" }, { "$ref": "#/components/schemas/AdditionalDataLevel23" }, { "$ref": "#/components/schemas/AdditionalDataLodging" }, { "$ref": "#/components/schemas/AdditionalDataOpenInvoice" }, { "$ref": "#/components/schemas/AdditionalDataOpi" }, { "$ref": "#/components/schemas/AdditionalDataRatepay" }, { "$ref": "#/components/schemas/AdditionalDataRetry" }, { "$ref": "#/components/schemas/AdditionalDataRisk" }, { "$ref": "#/components/schemas/AdditionalDataRiskStandalone" }, { "$ref": "#/components/schemas/AdditionalDataSubMerchant" }, { "$ref": "#/components/schemas/AdditionalDataTemporaryServices" }, { "$ref": "#/components/schemas/AdditionalDataWallets" } ], "description": "This field contains additional data, which may be required for a particular payment request.\n\nThe `additionalData` object consists of entries, each of which includes the key and value.", "type": "object" }, "amount": { "description": "The amount information for the transaction (in [minor units](https://docs.adyen.com/development-resources/currency-codes)). For [BIN or card verification](https://docs.adyen.com/payment-methods/cards/bin-data-and-card-verification) requests, set amount to 0 (zero).", "$ref": "#/components/schemas/Amount" }, "applicationInfo": { "x-addedInVersion": "40", "description": "Information about your application. For more details, see [Building Adyen solutions](https://docs.adyen.com/development-resources/building-adyen-solutions).", "$ref": "#/components/schemas/ApplicationInfo" }, "authenticationData": { "x-addedInVersion": "69", "description": "Data for 3DS authentication.", "$ref": "#/components/schemas/AuthenticationData" }, "billingAddress": { "description": "The address where to send the invoice.\n> The `billingAddress` object is required in the following scenarios. Include all of the fields within this object.\n>* For 3D Secure 2 transactions in all browser-based and mobile implementations.\n>* For cross-border payouts to and from Canada.", "$ref": "#/components/schemas/BillingAddress" }, "browserInfo": { "description": "The shopper's browser information.\n> For 3D Secure, the full object is required for web integrations. For mobile app integrations, include the `userAgent` and `acceptHeader` fields to indicate that your integration can support a redirect in case a payment is routed to 3D Secure 1.", "$ref": "#/components/schemas/BrowserInfo" }, "channel": { "description": "The platform where a payment transaction takes place. This field is optional for filtering out payment methods that are only available on specific platforms. If this value is not set, then we will try to infer it from the `sdkVersion` or `token`.\n\nPossible values:\n* iOS\n* Android\n* Web", "enum": [ "iOS", "Android", "Web" ], "type": "string" }, "checkoutAttemptId": { "x-addedInVersion": "68", "description": "Checkout attempt ID that corresponds to the Id generated by the client SDK for tracking user payment journey.", "type": "string" }, "conversionId": { "x-addedInVersion": "49", "deprecated": true, "x-deprecatedInVersion": "68", "x-deprecatedMessage": "Use `checkoutAttemptId` instead", "description": "Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey.", "type": "string" }, "countryCode": { "description": "The shopper country.\n\nFormat: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)\nExample: NL or DE", "type": "string" }, "dateOfBirth": { "description": "The shopper's date of birth.\n\nFormat [ISO-8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DD", "format": "date-time", "type": "string" }, "deliverAt": { "x-addedInVersion": "70", "description": "The date and time the purchased goods should be delivered.\n\nFormat [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD\n\nExample: 2017-07-17T13:42:40.428+01:00", "format": "date-time", "type": "string" }, "deliveryAddress": { "description": "The address where the purchased goods should be delivered.", "$ref": "#/components/schemas/DeliveryAddress" }, "deviceFingerprint": { "description": "A string containing the shopper's device fingerprint. For more information, refer to [Device fingerprinting](https://docs.adyen.com/risk-management/device-fingerprinting).", "maxLength": 5000, "type": "string" }, "donationAccount": { "description": "Donation account to which the transaction is credited.", "type": "string" }, "donationOriginalPspReference": { "description": "PSP reference of the transaction from which the donation token is generated. Required when `donationToken` is provided.", "type": "string" }, "donationToken": { "description": "Donation token received in the `/payments` call.", "type": "string" }, "lineItems": { "x-addedInVersion": "32", "description": "Price and product information about the purchased items, to be included on the invoice sent to the shopper.\n> This field is required for 3x 4x Oney, Affirm, Afterpay, Clearpay, Klarna, Ratepay, and Zip.", "items": { "$ref": "#/components/schemas/LineItem" }, "type": "array" }, "merchantAccount": { "description": "The merchant account identifier, with which you want to process the transaction.", "type": "string" }, "merchantRiskIndicator": { "x-addedInVersion": "40", "description": "Additional risk fields for 3D Secure 2.\n> For 3D Secure 2 transactions, we recommend that you include this object to increase the chances of achieving a frictionless flow.", "$ref": "#/components/schemas/MerchantRiskIndicator" }, "metadata": { "additionalProperties": { "type": "string" }, "description": "Metadata consists of entries, each of which includes a key and a value.\nLimits:\n* Maximum 20 key-value pairs per request. When exceeding, the \"177\" error occurs: \"Metadata size exceeds limit\".\n* Maximum 20 characters per key.\n* Maximum 80 characters per value. ", "type": "object" }, "mpiData": { "description": "Authentication data produced by an MPI (Mastercard SecureCode, Visa Secure, or Cartes Bancaires).", "$ref": "#/components/schemas/ThreeDSecureData" }, "origin": { "x-addedInVersion": "40", "description": "Required for the 3D Secure 2 `channel` **Web** integration.\n\nSet this parameter to the origin URL of the page that you are loading the 3D Secure Component from.", "maxLength": 80, "type": "string" }, "paymentMethod": { "description": "The type and required details of a payment method to use.", "oneOf": [ { "$ref": "#/components/schemas/ApplePayDonations" }, { "$ref": "#/components/schemas/CardDonations" }, { "$ref": "#/components/schemas/GooglePayDonations" }, { "$ref": "#/components/schemas/IdealDonations" }, { "$ref": "#/components/schemas/PayWithGoogleDonations" } ] }, "recurringProcessingModel": { "x-addedInVersion": "30", "description": "Defines a recurring payment type. Required when creating a token to store payment details or using stored payment details.\nAllowed values:\n* `Subscription` A transaction for a fixed or variable amount, which follows a fixed schedule.\n* `CardOnFile` With a card-on-file (CoF) transaction, card details are stored to enable one-click or omnichannel journeys, or simply to streamline the checkout process. Any subscription not following a fixed schedule is also considered a card-on-file transaction.\n* `UnscheduledCardOnFile` An unscheduled card-on-file (UCoF) transaction is a transaction that occurs on a non-fixed schedule and/or have variable amounts. For example, automatic top-ups when a cardholder's balance drops below a certain amount.\n", "enum": [ "CardOnFile", "Subscription", "UnscheduledCardOnFile" ], "type": "string" }, "redirectFromIssuerMethod": { "x-addedInVersion": "32", "description": "Specifies the redirect method (GET or POST) when redirecting back from the issuer.", "type": "string" }, "redirectToIssuerMethod": { "x-addedInVersion": "32", "description": "Specifies the redirect method (GET or POST) when redirecting to the issuer.", "type": "string" }, "reference": { "description": "The reference to uniquely identify a payment. This reference is used in all communication with you about the payment status. We recommend using a unique value per payment; however, it is not a requirement.\nIf you need to provide multiple references for a transaction, separate them with hyphens (\"-\").\nMaximum length: 80 characters.", "type": "string" }, "returnUrl": { "description": "The URL to return to in case of a redirection.\nThe format depends on the channel. This URL can have a maximum of 1024 characters.\n* For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number.\nExample: `https://your-company.com/checkout?shopperOrder=12xy`\n* For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app).\nExample: `my-app://`\n* For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters).\nExample: `my-app://your.package.name`", "maxLength": 8000, "type": "string" }, "sessionValidity": { "description": "The date and time until when the session remains valid, in [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format.\n\nFor example: 2020-07-18T15:42:40.428+01:00", "type": "string" }, "shopperEmail": { "description": "The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks.\n> For 3D Secure 2 transactions, schemes require `shopperEmail` for all browser-based and mobile implementations.", "type": "string" }, "shopperIP": { "description": "The shopper's IP address. In general, we recommend that you provide this data, as it is used in a number of risk checks (for instance, number of payment attempts or location-based checks).\n> For 3D Secure 2 transactions, schemes require `shopperIP` for all browser-based implementations.\nThis field is also mandatory for some merchants depending on your business model. For more information, [contact Support](https://www.adyen.help/hc/en-us/requests/new).", "type": "string" }, "shopperInteraction": { "description": "Specifies the sales channel, through which the shopper gives their card details, and whether the shopper is a returning customer.\nFor the web service API, Adyen assumes Ecommerce shopper interaction by default.\n\nThis field has the following possible values:\n* `Ecommerce` - Online transactions where the cardholder is present (online). For better authorisation rates, we recommend sending the card security code (CSC) along with the request.\n* `ContAuth` - Card on file and/or subscription transactions, where the cardholder is known to the merchant (returning customer). If the shopper is present (online), you can supply also the CSC to improve authorisation (one-click payment).\n* `Moto` - Mail-order and telephone-order transactions where the shopper is in contact with the merchant via email or telephone.\n* `POS` - Point-of-sale transactions where the shopper is physically present to make a payment using a secure payment terminal.", "enum": [ "Ecommerce", "ContAuth", "Moto", "POS" ], "type": "string" }, "shopperLocale": { "description": "The combination of a language code and a country code to specify the language to be used in the payment.", "type": "string" }, "shopperName": { "description": "The shopper's full name.", "$ref": "#/components/schemas/Name" }, "shopperReference": { "description": "Required for recurring payments. \nYour reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters.\n> Your reference must not include personally identifiable information (PII), for example name or email address.", "maxLength": 256, "minLength": 3, "type": "string" }, "socialSecurityNumber": { "description": "The shopper's social security number.", "type": "string" }, "telephoneNumber": { "description": "The shopper's telephone number.", "type": "string" }, "threeDS2RequestData": { "x-addedInVersion": "40", "description": "Request fields for 3D Secure 2. To check if any of the following fields are required for your integration, refer to [Online payments](https://docs.adyen.com/online-payments) or [Classic integration](https://docs.adyen.com/classic-integration) documentation.", "$ref": "#/components/schemas/ThreeDS2RequestFields" }, "threeDSAuthenticationOnly": { "x-addedInVersion": "50", "deprecated": true, "x-deprecatedInVersion": "69", "x-deprecatedMessage": "Use `authenticationData.authenticationOnly` instead.", "default": false, "description": "If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.", "type": "boolean" } }, "required": [ "paymentMethod", "returnUrl", "merchantAccount", "reference", "amount" ], "type": "object" }