mirror of
https://github.com/jlengrand/adyen-curl.git
synced 2026-03-10 08:01:25 +00:00
For fun
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
openapi-definitions
|
||||
25
DeleteStoredPaymentMethodsStoredPaymentMethodId.ps1
Normal file
25
DeleteStoredPaymentMethodsStoredPaymentMethodId.ps1
Normal file
@@ -0,0 +1,25 @@
|
||||
<#
|
||||
Request: DELETE /storedPaymentMethods/{storedPaymentMethodId}
|
||||
Summary: Delete a token for stored payment details
|
||||
Description: Deletes the token identified in the path. The token can no longer be used with payment requests.
|
||||
#>
|
||||
param(
|
||||
<# The unique identifier of the token. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $storedPaymentMethodId,
|
||||
|
||||
<# Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters.
|
||||
> Your reference must not include personally identifiable information (PII), for example name or email address. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $shopperReference,
|
||||
|
||||
<# Your merchant account. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $merchantAccou
|
||||
|
||||
)
|
||||
|
||||
curl -X DELETE https://checkout-test.adyen.com/v71/storedPaymentMethods/$storedPaymentMethodId `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
|
||||
16
GetPaymentLinksLinkId.ps1
Normal file
16
GetPaymentLinksLinkId.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
<#
|
||||
Request: GET /paymentLinks/{linkId}
|
||||
Summary: Get a payment link
|
||||
Description: Retrieves the payment link details using the payment link `id`.
|
||||
#>
|
||||
param(
|
||||
<# Unique identifier of the payment link. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $link
|
||||
|
||||
)
|
||||
|
||||
curl -X GET https://checkout-test.adyen.com/v71/paymentLinks/$linkId `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
|
||||
20
GetSessionsSessionId.ps1
Normal file
20
GetSessionsSessionId.ps1
Normal file
@@ -0,0 +1,20 @@
|
||||
<#
|
||||
Request: GET /sessions/{sessionId}
|
||||
Summary: Get the result of a payment session
|
||||
Description: Returns the status of the payment session with the `sessionId` and `sessionResult` specified in the path.
|
||||
#>
|
||||
param(
|
||||
<# A unique identifier of the session. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $sessionId,
|
||||
|
||||
<# The `sessionResult` value from the Drop-in or Component. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $sessionResu
|
||||
|
||||
)
|
||||
|
||||
curl -X GET https://checkout-test.adyen.com/v71/sessions/$sessionId `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
|
||||
23
GetStoredPaymentMethods.ps1
Normal file
23
GetStoredPaymentMethods.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
<#
|
||||
Request: GET /storedPaymentMethods
|
||||
Summary: Get tokens for stored payment details
|
||||
Description: Lists the tokens for stored payment details for the shopper identified in the path, if there are any available. The token ID can be used with payment requests for the shopper's payment. A summary of the stored details is included.
|
||||
|
||||
|
||||
#>
|
||||
param(
|
||||
<# Your reference to uniquely identify this shopper, for example user ID or account ID. Minimum length: 3 characters.
|
||||
> Your reference must not include personally identifiable information (PII), for example name or email address. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $shopperReference,
|
||||
|
||||
<# Your merchant account. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $merchantAccou
|
||||
|
||||
)
|
||||
|
||||
curl -X GET https://checkout-test.adyen.com/v71/storedPaymentMethods `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
|
||||
19
PatchPaymentLinksLinkId.ps1
Normal file
19
PatchPaymentLinksLinkId.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
<#
|
||||
Request: PATCH /paymentLinks/{linkId}
|
||||
Summary: Update the status of a payment link
|
||||
Description: Updates the status of a payment link. Use this endpoint to [force the expiry of a payment link](https://docs.adyen.com/online-payments/pay-by-link#update-payment-link-status).
|
||||
#>
|
||||
param(
|
||||
<# Unique identifier of the payment link. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $link
|
||||
|
||||
)
|
||||
|
||||
curl -X PATCH https://checkout-test.adyen.com/v71/paymentLinks/$linkId `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"status": "expired"
|
||||
}'
|
||||
|
||||
17
PostApplePaySessions.ps1
Normal file
17
PostApplePaySessions.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
<#
|
||||
Request: POST /applePay/sessions
|
||||
Summary: Get an Apple Pay session
|
||||
Description: You need to use this endpoint if you have an API-only integration with Apple Pay which uses Adyen's Apple Pay certificate.
|
||||
|
||||
The endpoint returns the Apple Pay session data which you need to complete the [Apple Pay session validation](https://docs.adyen.com/payment-methods/apple-pay/api-only?tab=adyen-certificate-validation_1#complete-apple-pay-session-validation).
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/applePay/sessions `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"displayName": "displayName",
|
||||
"domainName": "domainName",
|
||||
"merchantIdentifier": "merchantIdentifier"
|
||||
}'
|
||||
|
||||
50
PostCancels.ps1
Normal file
50
PostCancels.ps1
Normal file
@@ -0,0 +1,50 @@
|
||||
<#
|
||||
Request: POST /cancels
|
||||
Summary: Cancel an authorised payment
|
||||
Description: Cancels the authorisation on a payment that has not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures), and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**TECHNICAL_CANCEL** webhook](https://docs.adyen.com/online-payments/cancel#cancellation-webhook).
|
||||
|
||||
If you want to cancel a payment using the [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference), use the [`/payments/{paymentPspReference}/cancels`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/cancels) endpoint instead.
|
||||
|
||||
If you want to cancel a payment but are not sure whether it has been captured, use the [`/payments/{paymentPspReference}/reversals`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/reversals) endpoint instead.
|
||||
|
||||
For more information, refer to [Cancel](https://docs.adyen.com/online-payments/cancel).
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/cancels `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"merchantAccount": "merchantAccount",
|
||||
"paymentReference": "paymentReference",
|
||||
"reference": "reference"
|
||||
}'
|
||||
|
||||
23
PostCardDetails.ps1
Normal file
23
PostCardDetails.ps1
Normal file
@@ -0,0 +1,23 @@
|
||||
<#
|
||||
Request: POST /cardDetails
|
||||
Summary: Get the list of brands on the card
|
||||
Description: Send a request with at least the first 6 digits of the card number to get a response with an array of brands on the card. If you include [your supported brands](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__reqParam_supportedBrands) in the request, the response also tells you if you support each [brand that was identified](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cardDetails__resParam_details).
|
||||
|
||||
If you have an API-only integration and collect card data, use this endpoint to find out if the shopper's card is co-branded. For co-branded cards, you must let the shopper choose the brand to pay with if you support both brands.
|
||||
|
||||
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/cardDetails `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"cardNumber": "cardNumber",
|
||||
"countryCode": "countryCode",
|
||||
"encryptedCardNumber": "encryptedCardNumber",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"supportedBrands": [
|
||||
""
|
||||
]
|
||||
}'
|
||||
|
||||
278
PostDonations.ps1
Normal file
278
PostDonations.ps1
Normal file
@@ -0,0 +1,278 @@
|
||||
<#
|
||||
Request: POST /donations
|
||||
Summary: Start a transaction for donations
|
||||
Description: Takes in the donation token generated by the `/payments` request and uses it to make the donation for the donation account specified in the request.
|
||||
|
||||
For more information, see [Donations](https://docs.adyen.com/online-payments/donations).
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/donations `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"accountInfo": {
|
||||
"accountAgeIndicator": "notApplicable",
|
||||
"accountChangeDate": "2024-02-22T15:12:38.2293120+00:00",
|
||||
"accountChangeIndicator": "thisTransaction",
|
||||
"accountCreationDate": "2024-02-22T15:12:38.2296510+00:00",
|
||||
"accountType": "notApplicable",
|
||||
"addCardAttemptsDay": 0,
|
||||
"deliveryAddressUsageDate": "2024-02-22T15:12:38.2316190+00:00",
|
||||
"deliveryAddressUsageIndicator": "thisTransaction",
|
||||
"homePhone": "homePhone",
|
||||
"mobilePhone": "mobilePhone",
|
||||
"passwordChangeDate": "2024-02-22T15:12:38.2316270+00:00",
|
||||
"passwordChangeIndicator": "notApplicable",
|
||||
"pastTransactionsDay": 0,
|
||||
"pastTransactionsYear": 0,
|
||||
"paymentAccountAge": "2024-02-22T15:12:38.2316340+00:00",
|
||||
"paymentAccountIndicator": "notApplicable",
|
||||
"purchasesLast6Months": 0,
|
||||
"suspiciousActivity": false,
|
||||
"workPhone": "workPhone"
|
||||
},
|
||||
"additionalData": {},
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"authenticationData": {
|
||||
"attemptAuthentication": "always",
|
||||
"authenticationOnly": "false",
|
||||
"threeDSRequestData": {
|
||||
"challengeWindowSize": "01",
|
||||
"dataOnly": "false",
|
||||
"nativeThreeDS": "preferred",
|
||||
"threeDSVersion": "2.1.0"
|
||||
}
|
||||
},
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"browserInfo": {
|
||||
"acceptHeader": "acceptHeader",
|
||||
"colorDepth": 0,
|
||||
"javaEnabled": false,
|
||||
"javaScriptEnabled": "true",
|
||||
"language": "language",
|
||||
"screenHeight": 0,
|
||||
"screenWidth": 0,
|
||||
"timeZoneOffset": 0,
|
||||
"userAgent": "userAgent"
|
||||
},
|
||||
"channel": "iOS",
|
||||
"checkoutAttemptId": "checkoutAttemptId",
|
||||
"conversionId": "conversionId",
|
||||
"countryCode": "countryCode",
|
||||
"dateOfBirth": "2024-02-22T15:12:38.2319550+00:00",
|
||||
"deliverAt": "2024-02-22T15:12:38.2319560+00:00",
|
||||
"deliveryAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"firstName": "firstName",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"lastName": "lastName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"deviceFingerprint": "deviceFingerprint",
|
||||
"donationAccount": "donationAccount",
|
||||
"donationOriginalPspReference": "donationOriginalPspReference",
|
||||
"donationToken": "donationToken",
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"merchantAccount": "merchantAccount",
|
||||
"merchantRiskIndicator": {
|
||||
"addressMatch": false,
|
||||
"deliveryAddressIndicator": "shipToBillingAddress",
|
||||
"deliveryEmail": "deliveryEmail",
|
||||
"deliveryEmailAddress": "deliveryEmailAddress",
|
||||
"deliveryTimeframe": "electronicDelivery",
|
||||
"giftCardAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"giftCardCount": 0,
|
||||
"giftCardCurr": "giftCardCurr",
|
||||
"preOrderDate": "2024-02-22T15:12:38.2320250+00:00",
|
||||
"preOrderPurchase": false,
|
||||
"preOrderPurchaseInd": "preOrderPurchaseInd",
|
||||
"reorderItems": false,
|
||||
"reorderItemsInd": "reorderItemsInd",
|
||||
"shipIndicator": "shipIndicator"
|
||||
},
|
||||
"metadata": {},
|
||||
"mpiData": {
|
||||
"authenticationResponse": "Y",
|
||||
"cavv": "cavv",
|
||||
"cavvAlgorithm": "cavvAlgorithm",
|
||||
"challengeCancel": "01",
|
||||
"directoryResponse": "A",
|
||||
"dsTransID": "dsTransID",
|
||||
"eci": "eci",
|
||||
"riskScore": "riskScore",
|
||||
"threeDSVersion": "threeDSVersion",
|
||||
"tokenAuthenticationVerificationValue": "tokenAuthenticationVerificationValue",
|
||||
"transStatusReason": "transStatusReason",
|
||||
"xid": "xid"
|
||||
},
|
||||
"origin": "origin",
|
||||
"paymentMethod": null,
|
||||
"recurringProcessingModel": "CardOnFile",
|
||||
"redirectFromIssuerMethod": "redirectFromIssuerMethod",
|
||||
"redirectToIssuerMethod": "redirectToIssuerMethod",
|
||||
"reference": "reference",
|
||||
"returnUrl": "returnUrl",
|
||||
"sessionValidity": "sessionValidity",
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperIP": "shopperIP",
|
||||
"shopperInteraction": "Ecommerce",
|
||||
"shopperLocale": "shopperLocale",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"socialSecurityNumber": "socialSecurityNumber",
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"threeDS2RequestData": {
|
||||
"acctInfo": {
|
||||
"chAccAgeInd": "01",
|
||||
"chAccChange": "chAccChange",
|
||||
"chAccChangeInd": "01",
|
||||
"chAccPwChange": "chAccPwChange",
|
||||
"chAccPwChangeInd": "01",
|
||||
"chAccString": "chAccString",
|
||||
"nbPurchaseAccount": "nbPurchaseAccount",
|
||||
"paymentAccAge": "paymentAccAge",
|
||||
"paymentAccInd": "01",
|
||||
"provisionAttemptsDay": "provisionAttemptsDay",
|
||||
"shipAddressUsage": "shipAddressUsage",
|
||||
"shipAddressUsageInd": "01",
|
||||
"shipNameIndicator": "01",
|
||||
"suspiciousAccActivity": "01",
|
||||
"txnActivityDay": "txnActivityDay",
|
||||
"txnActivityYear": "txnActivityYear"
|
||||
},
|
||||
"acctType": "01",
|
||||
"acquirerBIN": "acquirerBIN",
|
||||
"acquirerMerchantID": "acquirerMerchantID",
|
||||
"addrMatch": "Y",
|
||||
"authenticationOnly": "false",
|
||||
"challengeIndicator": "noPreference",
|
||||
"deviceRenderOptions": {
|
||||
"sdkInterface": "both",
|
||||
"sdkUiType": [
|
||||
"multiSelect"
|
||||
]
|
||||
},
|
||||
"homePhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
},
|
||||
"mcc": "mcc",
|
||||
"merchantName": "merchantName",
|
||||
"messageVersion": "messageVersion",
|
||||
"mobilePhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
},
|
||||
"notificationURL": "notificationURL",
|
||||
"payTokenInd": false,
|
||||
"paymentAuthenticationUseCase": "paymentAuthenticationUseCase",
|
||||
"platform": "iOS",
|
||||
"purchaseInstalData": "purchaseInstalData",
|
||||
"recurringExpiry": "recurringExpiry",
|
||||
"recurringFrequency": "recurringFrequency",
|
||||
"sdkAppID": "sdkAppID",
|
||||
"sdkEphemPubKey": {
|
||||
"crv": "crv",
|
||||
"kty": "kty",
|
||||
"x": "x",
|
||||
"y": "y"
|
||||
},
|
||||
"sdkMaxTimeout": "60",
|
||||
"sdkReferenceNumber": "sdkReferenceNumber",
|
||||
"sdkTransID": "sdkTransID",
|
||||
"threeDSCompInd": "threeDSCompInd",
|
||||
"threeDSRequestorAuthenticationInd": "threeDSRequestorAuthenticationInd",
|
||||
"threeDSRequestorAuthenticationInfo": {
|
||||
"threeDSReqAuthData": "threeDSReqAuthData",
|
||||
"threeDSReqAuthMethod": "01",
|
||||
"threeDSReqAuthTimestamp": "threeDSReqAuthTimestamp"
|
||||
},
|
||||
"threeDSRequestorChallengeInd": "01",
|
||||
"threeDSRequestorID": "threeDSRequestorID",
|
||||
"threeDSRequestorName": "threeDSRequestorName",
|
||||
"threeDSRequestorPriorAuthenticationInfo": {
|
||||
"threeDSReqPriorAuthData": "threeDSReqPriorAuthData",
|
||||
"threeDSReqPriorAuthMethod": "01",
|
||||
"threeDSReqPriorAuthTimestamp": "threeDSReqPriorAuthTimestamp",
|
||||
"threeDSReqPriorRef": "threeDSReqPriorRef"
|
||||
},
|
||||
"threeDSRequestorURL": "threeDSRequestorURL",
|
||||
"transType": "01",
|
||||
"transactionType": "goodsOrServicePurchase",
|
||||
"whiteListStatus": "whiteListStatus",
|
||||
"workPhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
}
|
||||
},
|
||||
"threeDSAuthenticationOnly": "false"
|
||||
}'
|
||||
|
||||
19
PostOrders.ps1
Normal file
19
PostOrders.ps1
Normal file
@@ -0,0 +1,19 @@
|
||||
<#
|
||||
Request: POST /orders
|
||||
Summary: Create an order
|
||||
Description: Creates an order to be used for partial payments. Make a POST `/orders` call before making a `/payments` call when processing payments with different payment methods.
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/orders `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"expiresAt": "expiresAt",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"reference": "reference"
|
||||
}'
|
||||
|
||||
17
PostOrdersCancel.ps1
Normal file
17
PostOrdersCancel.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
<#
|
||||
Request: POST /orders/cancel
|
||||
Summary: Cancel an order
|
||||
Description: Cancels an order. Cancellation of an order results in an automatic rollback of all payments made in the order, either by canceling or refunding the payment, depending on the type of payment method.
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/orders/cancel `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"merchantAccount": "merchantAccount",
|
||||
"order": {
|
||||
"orderData": "orderData",
|
||||
"pspReference": "pspReference"
|
||||
}
|
||||
}'
|
||||
|
||||
16
PostOriginKeys.ps1
Normal file
16
PostOriginKeys.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
<#
|
||||
Request: POST /originKeys
|
||||
Summary: Create originKey values for domains
|
||||
Description: This operation takes the origin domains and returns a JSON object containing the corresponding origin keys for the domains.
|
||||
> If you're still using origin key for your Web Drop-in or Components integration, we recommend [switching to client key](https://docs.adyen.com/development-resources/client-side-authentication/migrate-from-origin-key-to-client-key). This allows you to use a single key for all origins, add or remove origins without generating a new key, and detect the card type from the number entered in your payment form.
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/originKeys `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"originDomains": [
|
||||
""
|
||||
]
|
||||
}'
|
||||
|
||||
142
PostPaymentLinks.ps1
Normal file
142
PostPaymentLinks.ps1
Normal file
@@ -0,0 +1,142 @@
|
||||
<#
|
||||
Request: POST /paymentLinks
|
||||
Summary: Create a payment link
|
||||
Description: Creates a payment link to our hosted payment form where shoppers can pay. The list of payment methods presented to the shopper depends on the `currency` and `country` parameters sent in the request.
|
||||
|
||||
For more information, refer to [Pay by Link documentation](https://docs.adyen.com/online-payments/pay-by-link#create-payment-links-through-api).
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/paymentLinks `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"allowedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"blockedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"captureDelayHours": 0,
|
||||
"countryCode": "countryCode",
|
||||
"dateOfBirth": "2024-02-22",
|
||||
"deliverAt": "2024-02-22T15:12:38.2329550+00:00",
|
||||
"deliveryAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"description": "description",
|
||||
"expiresAt": "2024-02-22T15:12:38.2329710+00:00",
|
||||
"installmentOptions": {},
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"manualCapture": false,
|
||||
"mcc": "mcc",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"merchantOrderReference": "merchantOrderReference",
|
||||
"metadata": {},
|
||||
"recurringProcessingModel": "CardOnFile",
|
||||
"reference": "reference",
|
||||
"requiredShopperFields": [
|
||||
"billingAddress"
|
||||
],
|
||||
"returnUrl": "returnUrl",
|
||||
"reusable": false,
|
||||
"riskData": {
|
||||
"clientData": "clientData",
|
||||
"customFields": {},
|
||||
"fraudOffset": 0,
|
||||
"profileReference": "profileReference"
|
||||
},
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperLocale": "shopperLocale",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"shopperStatement": "shopperStatement",
|
||||
"showRemovePaymentMethodButton": "true",
|
||||
"socialSecurityNumber": "socialSecurityNumber",
|
||||
"splitCardFundingSources": "false",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
],
|
||||
"store": "store",
|
||||
"storePaymentMethodMode": "askForConsent",
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"themeId": "themeId"
|
||||
}'
|
||||
|
||||
36
PostPaymentMethods.ps1
Normal file
36
PostPaymentMethods.ps1
Normal file
@@ -0,0 +1,36 @@
|
||||
<#
|
||||
Request: POST /paymentMethods
|
||||
Summary: Get a list of available payment methods
|
||||
Description: Queries the available payment methods for a transaction based on the transaction context (like amount, country, and currency). Besides giving back a list of the available payment methods, the response also returns which input details you need to collect from the shopper (to be submitted to `/payments`).
|
||||
|
||||
Although we highly recommend using this endpoint to ensure you are always offering the most up-to-date list of payment methods, its usage is optional. You can, for example, also cache the `/paymentMethods` response and update it once a week.
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/paymentMethods `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"additionalData": {},
|
||||
"allowedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"blockedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"channel": "iOS",
|
||||
"countryCode": "countryCode",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"order": {
|
||||
"orderData": "orderData",
|
||||
"pspReference": "pspReference"
|
||||
},
|
||||
"shopperLocale": "shopperLocale",
|
||||
"shopperReference": "shopperReference",
|
||||
"splitCardFundingSources": "false",
|
||||
"store": "store"
|
||||
}'
|
||||
|
||||
286
PostPaymentMethodsBalance.ps1
Normal file
286
PostPaymentMethodsBalance.ps1
Normal file
@@ -0,0 +1,286 @@
|
||||
<#
|
||||
Request: POST /paymentMethods/balance
|
||||
Summary: Get the balance of a gift card
|
||||
Description: Retrieves the balance remaining on a shopper's gift card. To check a gift card's balance, make a POST `/paymentMethods/balance` call and include the gift card's details inside a `paymentMethod` object.
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/paymentMethods/balance `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"accountInfo": {
|
||||
"accountAgeIndicator": "notApplicable",
|
||||
"accountChangeDate": "2024-02-22T15:12:38.2332770+00:00",
|
||||
"accountChangeIndicator": "thisTransaction",
|
||||
"accountCreationDate": "2024-02-22T15:12:38.2332800+00:00",
|
||||
"accountType": "notApplicable",
|
||||
"addCardAttemptsDay": 0,
|
||||
"deliveryAddressUsageDate": "2024-02-22T15:12:38.2332850+00:00",
|
||||
"deliveryAddressUsageIndicator": "thisTransaction",
|
||||
"homePhone": "homePhone",
|
||||
"mobilePhone": "mobilePhone",
|
||||
"passwordChangeDate": "2024-02-22T15:12:38.2332910+00:00",
|
||||
"passwordChangeIndicator": "notApplicable",
|
||||
"pastTransactionsDay": 0,
|
||||
"pastTransactionsYear": 0,
|
||||
"paymentAccountAge": "2024-02-22T15:12:38.2332960+00:00",
|
||||
"paymentAccountIndicator": "notApplicable",
|
||||
"purchasesLast6Months": 0,
|
||||
"suspiciousActivity": false,
|
||||
"workPhone": "workPhone"
|
||||
},
|
||||
"additionalAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"additionalData": {},
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"browserInfo": {
|
||||
"acceptHeader": "acceptHeader",
|
||||
"colorDepth": 0,
|
||||
"javaEnabled": false,
|
||||
"javaScriptEnabled": "true",
|
||||
"language": "language",
|
||||
"screenHeight": 0,
|
||||
"screenWidth": 0,
|
||||
"timeZoneOffset": 0,
|
||||
"userAgent": "userAgent"
|
||||
},
|
||||
"captureDelayHours": 0,
|
||||
"dateOfBirth": "2024-02-22",
|
||||
"dccQuote": {
|
||||
"account": "account",
|
||||
"accountType": "accountType",
|
||||
"baseAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"basePoints": 0,
|
||||
"buy": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"interbank": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"reference": "reference",
|
||||
"sell": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"signature": "signature",
|
||||
"source": "source",
|
||||
"type": "type",
|
||||
"validTill": "2024-02-22T15:12:38.2334090+00:00"
|
||||
},
|
||||
"deliveryAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"deliveryDate": "2024-02-22T15:12:38.2334210+00:00",
|
||||
"deviceFingerprint": "deviceFingerprint",
|
||||
"fraudOffset": 0,
|
||||
"installments": {
|
||||
"plan": "regular",
|
||||
"value": 0
|
||||
},
|
||||
"localizedShopperStatement": {},
|
||||
"mcc": "mcc",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"merchantOrderReference": "merchantOrderReference",
|
||||
"merchantRiskIndicator": {
|
||||
"addressMatch": false,
|
||||
"deliveryAddressIndicator": "shipToBillingAddress",
|
||||
"deliveryEmail": "deliveryEmail",
|
||||
"deliveryEmailAddress": "deliveryEmailAddress",
|
||||
"deliveryTimeframe": "electronicDelivery",
|
||||
"giftCardAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"giftCardCount": 0,
|
||||
"giftCardCurr": "giftCardCurr",
|
||||
"preOrderDate": "2024-02-22T15:12:38.2334520+00:00",
|
||||
"preOrderPurchase": false,
|
||||
"preOrderPurchaseInd": "preOrderPurchaseInd",
|
||||
"reorderItems": false,
|
||||
"reorderItemsInd": "reorderItemsInd",
|
||||
"shipIndicator": "shipIndicator"
|
||||
},
|
||||
"metadata": {},
|
||||
"orderReference": "orderReference",
|
||||
"paymentMethod": {},
|
||||
"recurring": {
|
||||
"contract": "ONECLICK",
|
||||
"recurringDetailName": "recurringDetailName",
|
||||
"recurringExpiry": "2024-02-22T15:12:38.2334710+00:00",
|
||||
"recurringFrequency": "recurringFrequency",
|
||||
"tokenService": "VISATOKENSERVICE"
|
||||
},
|
||||
"recurringProcessingModel": "CardOnFile",
|
||||
"reference": "reference",
|
||||
"selectedBrand": "selectedBrand",
|
||||
"selectedRecurringDetailReference": "selectedRecurringDetailReference",
|
||||
"sessionId": "sessionId",
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperIP": "shopperIP",
|
||||
"shopperInteraction": "Ecommerce",
|
||||
"shopperLocale": "shopperLocale",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"shopperStatement": "shopperStatement",
|
||||
"socialSecurityNumber": "socialSecurityNumber",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
],
|
||||
"store": "store",
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"threeDS2RequestData": {
|
||||
"acctInfo": {
|
||||
"chAccAgeInd": "01",
|
||||
"chAccChange": "chAccChange",
|
||||
"chAccChangeInd": "01",
|
||||
"chAccPwChange": "chAccPwChange",
|
||||
"chAccPwChangeInd": "01",
|
||||
"chAccString": "chAccString",
|
||||
"nbPurchaseAccount": "nbPurchaseAccount",
|
||||
"paymentAccAge": "paymentAccAge",
|
||||
"paymentAccInd": "01",
|
||||
"provisionAttemptsDay": "provisionAttemptsDay",
|
||||
"shipAddressUsage": "shipAddressUsage",
|
||||
"shipAddressUsageInd": "01",
|
||||
"shipNameIndicator": "01",
|
||||
"suspiciousAccActivity": "01",
|
||||
"txnActivityDay": "txnActivityDay",
|
||||
"txnActivityYear": "txnActivityYear"
|
||||
},
|
||||
"acctType": "01",
|
||||
"acquirerBIN": "acquirerBIN",
|
||||
"acquirerMerchantID": "acquirerMerchantID",
|
||||
"addrMatch": "Y",
|
||||
"authenticationOnly": "false",
|
||||
"challengeIndicator": "noPreference",
|
||||
"deviceChannel": "deviceChannel",
|
||||
"deviceRenderOptions": {
|
||||
"sdkInterface": "both",
|
||||
"sdkUiType": [
|
||||
"multiSelect"
|
||||
]
|
||||
},
|
||||
"homePhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
},
|
||||
"mcc": "mcc",
|
||||
"merchantName": "merchantName",
|
||||
"messageVersion": "messageVersion",
|
||||
"mobilePhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
},
|
||||
"notificationURL": "notificationURL",
|
||||
"payTokenInd": false,
|
||||
"paymentAuthenticationUseCase": "paymentAuthenticationUseCase",
|
||||
"platform": "iOS",
|
||||
"purchaseInstalData": "purchaseInstalData",
|
||||
"recurringExpiry": "recurringExpiry",
|
||||
"recurringFrequency": "recurringFrequency",
|
||||
"sdkAppID": "sdkAppID",
|
||||
"sdkEncData": "sdkEncData",
|
||||
"sdkEphemPubKey": {
|
||||
"crv": "crv",
|
||||
"kty": "kty",
|
||||
"x": "x",
|
||||
"y": "y"
|
||||
},
|
||||
"sdkMaxTimeout": "60",
|
||||
"sdkReferenceNumber": "sdkReferenceNumber",
|
||||
"sdkTransID": "sdkTransID",
|
||||
"sdkVersion": "sdkVersion",
|
||||
"threeDSCompInd": "threeDSCompInd",
|
||||
"threeDSRequestorAuthenticationInd": "threeDSRequestorAuthenticationInd",
|
||||
"threeDSRequestorAuthenticationInfo": {
|
||||
"threeDSReqAuthData": "threeDSReqAuthData",
|
||||
"threeDSReqAuthMethod": "01",
|
||||
"threeDSReqAuthTimestamp": "threeDSReqAuthTimestamp"
|
||||
},
|
||||
"threeDSRequestorChallengeInd": "01",
|
||||
"threeDSRequestorID": "threeDSRequestorID",
|
||||
"threeDSRequestorName": "threeDSRequestorName",
|
||||
"threeDSRequestorPriorAuthenticationInfo": {
|
||||
"threeDSReqPriorAuthData": "threeDSReqPriorAuthData",
|
||||
"threeDSReqPriorAuthMethod": "01",
|
||||
"threeDSReqPriorAuthTimestamp": "threeDSReqPriorAuthTimestamp",
|
||||
"threeDSReqPriorRef": "threeDSReqPriorRef"
|
||||
},
|
||||
"threeDSRequestorURL": "threeDSRequestorURL",
|
||||
"transType": "01",
|
||||
"transactionType": "goodsOrServicePurchase",
|
||||
"whiteListStatus": "whiteListStatus",
|
||||
"workPhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
}
|
||||
},
|
||||
"threeDSAuthenticationOnly": "false",
|
||||
"totalsGroup": "totalsGroup",
|
||||
"trustedShopper": false
|
||||
}'
|
||||
|
||||
223
PostPaymentSession.ps1
Normal file
223
PostPaymentSession.ps1
Normal file
@@ -0,0 +1,223 @@
|
||||
<#
|
||||
Request: POST /paymentSession
|
||||
Summary: Create a payment session
|
||||
Description: Provides the data object that can be used to start the Checkout SDK. To set up the payment, pass its amount, currency, and other required parameters. We use this to optimise the payment flow and perform better risk assessment of the transaction.
|
||||
|
||||
For more information, refer to [How it works](https://docs.adyen.com/online-payments#howitworks).
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/paymentSession `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"additionalAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"additionalData": {},
|
||||
"allowedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"blockedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"captureDelayHours": 0,
|
||||
"channel": "iOS",
|
||||
"checkoutAttemptId": "checkoutAttemptId",
|
||||
"company": {
|
||||
"homepage": "homepage",
|
||||
"name": "name",
|
||||
"registrationNumber": "registrationNumber",
|
||||
"registryLocation": "registryLocation",
|
||||
"taxId": "taxId",
|
||||
"type": "type"
|
||||
},
|
||||
"configuration": {
|
||||
"avs": {
|
||||
"addressEditable": false,
|
||||
"enabled": "yes"
|
||||
},
|
||||
"cardHolderName": "NONE",
|
||||
"installments": {
|
||||
"maxNumberOfInstallments": 0
|
||||
},
|
||||
"shopperInput": {
|
||||
"billingAddress": "editable",
|
||||
"deliveryAddress": "editable",
|
||||
"personalDetails": "editable"
|
||||
}
|
||||
},
|
||||
"conversionId": "conversionId",
|
||||
"countryCode": "countryCode",
|
||||
"dateOfBirth": "2024-02-22",
|
||||
"dccQuote": {
|
||||
"account": "account",
|
||||
"accountType": "accountType",
|
||||
"baseAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"basePoints": 0,
|
||||
"buy": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"interbank": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"reference": "reference",
|
||||
"sell": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"signature": "signature",
|
||||
"source": "source",
|
||||
"type": "type",
|
||||
"validTill": "2024-02-22T15:12:38.2339370+00:00"
|
||||
},
|
||||
"deliveryAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"deliveryDate": "2024-02-22T15:12:38.2339490+00:00",
|
||||
"enableOneClick": false,
|
||||
"enablePayOut": false,
|
||||
"enableRecurring": false,
|
||||
"entityType": "NaturalPerson",
|
||||
"fraudOffset": 0,
|
||||
"installments": {
|
||||
"plan": "regular",
|
||||
"value": 0
|
||||
},
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"localizedShopperStatement": {},
|
||||
"mandate": {
|
||||
"amount": "amount",
|
||||
"amountRule": "max",
|
||||
"billingAttemptsRule": "on",
|
||||
"billingDay": "billingDay",
|
||||
"endsAt": "endsAt",
|
||||
"frequency": "adhoc",
|
||||
"remarks": "remarks",
|
||||
"startsAt": "startsAt"
|
||||
},
|
||||
"mcc": "mcc",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"merchantOrderReference": "merchantOrderReference",
|
||||
"metadata": {},
|
||||
"orderReference": "orderReference",
|
||||
"origin": "origin",
|
||||
"platformChargebackLogic": {
|
||||
"behavior": "deductAccordingToSplitRatio",
|
||||
"costAllocationAccount": "costAllocationAccount",
|
||||
"targetAccount": "targetAccount"
|
||||
},
|
||||
"recurringExpiry": "recurringExpiry",
|
||||
"recurringFrequency": "recurringFrequency",
|
||||
"reference": "reference",
|
||||
"returnUrl": "returnUrl",
|
||||
"riskData": {
|
||||
"clientData": "clientData",
|
||||
"customFields": {},
|
||||
"fraudOffset": 0,
|
||||
"profileReference": "profileReference"
|
||||
},
|
||||
"sdkVersion": "sdkVersion",
|
||||
"sessionValidity": "sessionValidity",
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperIP": "shopperIP",
|
||||
"shopperInteraction": "Ecommerce",
|
||||
"shopperLocale": "shopperLocale",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"shopperStatement": "shopperStatement",
|
||||
"socialSecurityNumber": "socialSecurityNumber",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
],
|
||||
"store": "store",
|
||||
"storePaymentMethod": false,
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"threeDSAuthenticationOnly": "false",
|
||||
"token": "token",
|
||||
"trustedShopper": false
|
||||
}'
|
||||
|
||||
438
PostPayments.ps1
Normal file
438
PostPayments.ps1
Normal file
@@ -0,0 +1,438 @@
|
||||
<#
|
||||
Request: POST /payments
|
||||
Summary: Start a transaction
|
||||
Description: Sends payment parameters (like amount, country, and currency) together with other required input details collected from the shopper. To know more about required parameters for specific payment methods, refer to our [payment method guides](https://docs.adyen.com/payment-methods).
|
||||
The response depends on the [payment flow](https://docs.adyen.com/payment-methods#payment-flow):
|
||||
* For a direct flow, the response includes a `pspReference` and a `resultCode` with the payment result, for example **Authorised** or **Refused**.
|
||||
* For a redirect or additional action, the response contains an `action` object.
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"accountInfo": {
|
||||
"accountAgeIndicator": "notApplicable",
|
||||
"accountChangeDate": "2024-02-22T15:12:38.2341900+00:00",
|
||||
"accountChangeIndicator": "thisTransaction",
|
||||
"accountCreationDate": "2024-02-22T15:12:38.2341930+00:00",
|
||||
"accountType": "notApplicable",
|
||||
"addCardAttemptsDay": 0,
|
||||
"deliveryAddressUsageDate": "2024-02-22T15:12:38.2341980+00:00",
|
||||
"deliveryAddressUsageIndicator": "thisTransaction",
|
||||
"homePhone": "homePhone",
|
||||
"mobilePhone": "mobilePhone",
|
||||
"passwordChangeDate": "2024-02-22T15:12:38.2342030+00:00",
|
||||
"passwordChangeIndicator": "notApplicable",
|
||||
"pastTransactionsDay": 0,
|
||||
"pastTransactionsYear": 0,
|
||||
"paymentAccountAge": "2024-02-22T15:12:38.2342090+00:00",
|
||||
"paymentAccountIndicator": "notApplicable",
|
||||
"purchasesLast6Months": 0,
|
||||
"suspiciousActivity": false,
|
||||
"workPhone": "workPhone"
|
||||
},
|
||||
"additionalAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"additionalData": {},
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"authenticationData": {
|
||||
"attemptAuthentication": "always",
|
||||
"authenticationOnly": "false",
|
||||
"threeDSRequestData": {
|
||||
"challengeWindowSize": "01",
|
||||
"dataOnly": "false",
|
||||
"nativeThreeDS": "preferred",
|
||||
"threeDSVersion": "2.1.0"
|
||||
}
|
||||
},
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"browserInfo": {
|
||||
"acceptHeader": "acceptHeader",
|
||||
"colorDepth": 0,
|
||||
"javaEnabled": false,
|
||||
"javaScriptEnabled": "true",
|
||||
"language": "language",
|
||||
"screenHeight": 0,
|
||||
"screenWidth": 0,
|
||||
"timeZoneOffset": 0,
|
||||
"userAgent": "userAgent"
|
||||
},
|
||||
"captureDelayHours": 0,
|
||||
"channel": "iOS",
|
||||
"checkoutAttemptId": "checkoutAttemptId",
|
||||
"company": {
|
||||
"homepage": "homepage",
|
||||
"name": "name",
|
||||
"registrationNumber": "registrationNumber",
|
||||
"registryLocation": "registryLocation",
|
||||
"taxId": "taxId",
|
||||
"type": "type"
|
||||
},
|
||||
"conversionId": "conversionId",
|
||||
"countryCode": "countryCode",
|
||||
"dateOfBirth": "2024-02-22T15:12:38.2343180+00:00",
|
||||
"dccQuote": {
|
||||
"account": "account",
|
||||
"accountType": "accountType",
|
||||
"baseAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"basePoints": 0,
|
||||
"buy": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"interbank": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"reference": "reference",
|
||||
"sell": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"signature": "signature",
|
||||
"source": "source",
|
||||
"type": "type",
|
||||
"validTill": "2024-02-22T15:12:38.2343490+00:00"
|
||||
},
|
||||
"deliverAt": "2024-02-22T15:12:38.2343510+00:00",
|
||||
"deliveryAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"firstName": "firstName",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"lastName": "lastName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"deliveryDate": "2024-02-22T15:12:38.2343660+00:00",
|
||||
"deviceFingerprint": "deviceFingerprint",
|
||||
"enableOneClick": false,
|
||||
"enablePayOut": false,
|
||||
"enableRecurring": false,
|
||||
"entityType": "NaturalPerson",
|
||||
"fraudOffset": 0,
|
||||
"fundOrigin": {
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"walletIdentifier": "walletIdentifier"
|
||||
},
|
||||
"fundRecipient": {
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"paymentMethod": {
|
||||
"brand": "brand",
|
||||
"checkoutAttemptId": "checkoutAttemptId",
|
||||
"cupsecureplus.smscode": "cupsecureplus.smscode",
|
||||
"cvc": "cvc",
|
||||
"encryptedCardNumber": "encryptedCardNumber",
|
||||
"encryptedExpiryMonth": "encryptedExpiryMonth",
|
||||
"encryptedExpiryYear": "encryptedExpiryYear",
|
||||
"encryptedSecurityCode": "encryptedSecurityCode",
|
||||
"expiryMonth": "expiryMonth",
|
||||
"expiryYear": "expiryYear",
|
||||
"fundingSource": "credit",
|
||||
"holderName": "holderName",
|
||||
"networkPaymentReference": "networkPaymentReference",
|
||||
"number": "number",
|
||||
"recurringDetailReference": "recurringDetailReference",
|
||||
"shopperNotificationReference": "shopperNotificationReference",
|
||||
"storedPaymentMethodId": "storedPaymentMethodId",
|
||||
"threeDS2SdkVersion": "threeDS2SdkVersion",
|
||||
"type": "scheme"
|
||||
},
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"storedPaymentMethodId": "storedPaymentMethodId",
|
||||
"subMerchant": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"mcc": "mcc",
|
||||
"name": "name",
|
||||
"taxId": "taxId"
|
||||
},
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"walletIdentifier": "walletIdentifier",
|
||||
"walletOwnerTaxId": "walletOwnerTaxId"
|
||||
},
|
||||
"industryUsage": "delayedCharge",
|
||||
"installments": {
|
||||
"plan": "regular",
|
||||
"value": 0
|
||||
},
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"localizedShopperStatement": {},
|
||||
"mandate": {
|
||||
"amount": "amount",
|
||||
"amountRule": "max",
|
||||
"billingAttemptsRule": "on",
|
||||
"billingDay": "billingDay",
|
||||
"endsAt": "endsAt",
|
||||
"frequency": "adhoc",
|
||||
"remarks": "remarks",
|
||||
"startsAt": "startsAt"
|
||||
},
|
||||
"mcc": "mcc",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"merchantOrderReference": "merchantOrderReference",
|
||||
"merchantRiskIndicator": {
|
||||
"addressMatch": false,
|
||||
"deliveryAddressIndicator": "shipToBillingAddress",
|
||||
"deliveryEmail": "deliveryEmail",
|
||||
"deliveryEmailAddress": "deliveryEmailAddress",
|
||||
"deliveryTimeframe": "electronicDelivery",
|
||||
"giftCardAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"giftCardCount": 0,
|
||||
"giftCardCurr": "giftCardCurr",
|
||||
"preOrderDate": "2024-02-22T15:12:38.2345300+00:00",
|
||||
"preOrderPurchase": false,
|
||||
"preOrderPurchaseInd": "preOrderPurchaseInd",
|
||||
"reorderItems": false,
|
||||
"reorderItemsInd": "reorderItemsInd",
|
||||
"shipIndicator": "shipIndicator"
|
||||
},
|
||||
"metadata": {},
|
||||
"mpiData": {
|
||||
"authenticationResponse": "Y",
|
||||
"cavv": "cavv",
|
||||
"cavvAlgorithm": "cavvAlgorithm",
|
||||
"challengeCancel": "01",
|
||||
"directoryResponse": "A",
|
||||
"dsTransID": "dsTransID",
|
||||
"eci": "eci",
|
||||
"riskScore": "riskScore",
|
||||
"threeDSVersion": "threeDSVersion",
|
||||
"tokenAuthenticationVerificationValue": "tokenAuthenticationVerificationValue",
|
||||
"transStatusReason": "transStatusReason",
|
||||
"xid": "xid"
|
||||
},
|
||||
"order": {
|
||||
"orderData": "orderData",
|
||||
"pspReference": "pspReference"
|
||||
},
|
||||
"orderReference": "orderReference",
|
||||
"origin": "origin",
|
||||
"paymentMethod": null,
|
||||
"platformChargebackLogic": {
|
||||
"behavior": "deductAccordingToSplitRatio",
|
||||
"costAllocationAccount": "costAllocationAccount",
|
||||
"targetAccount": "targetAccount"
|
||||
},
|
||||
"recurringExpiry": "recurringExpiry",
|
||||
"recurringFrequency": "recurringFrequency",
|
||||
"recurringProcessingModel": "CardOnFile",
|
||||
"redirectFromIssuerMethod": "redirectFromIssuerMethod",
|
||||
"redirectToIssuerMethod": "redirectToIssuerMethod",
|
||||
"reference": "reference",
|
||||
"returnUrl": "returnUrl",
|
||||
"riskData": {
|
||||
"clientData": "clientData",
|
||||
"customFields": {},
|
||||
"fraudOffset": 0,
|
||||
"profileReference": "profileReference"
|
||||
},
|
||||
"sessionValidity": "sessionValidity",
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperIP": "shopperIP",
|
||||
"shopperInteraction": "Ecommerce",
|
||||
"shopperLocale": "shopperLocale",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"shopperStatement": "shopperStatement",
|
||||
"socialSecurityNumber": "socialSecurityNumber",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
],
|
||||
"store": "store",
|
||||
"storePaymentMethod": false,
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"threeDS2RequestData": {
|
||||
"acctInfo": {
|
||||
"chAccAgeInd": "01",
|
||||
"chAccChange": "chAccChange",
|
||||
"chAccChangeInd": "01",
|
||||
"chAccPwChange": "chAccPwChange",
|
||||
"chAccPwChangeInd": "01",
|
||||
"chAccString": "chAccString",
|
||||
"nbPurchaseAccount": "nbPurchaseAccount",
|
||||
"paymentAccAge": "paymentAccAge",
|
||||
"paymentAccInd": "01",
|
||||
"provisionAttemptsDay": "provisionAttemptsDay",
|
||||
"shipAddressUsage": "shipAddressUsage",
|
||||
"shipAddressUsageInd": "01",
|
||||
"shipNameIndicator": "01",
|
||||
"suspiciousAccActivity": "01",
|
||||
"txnActivityDay": "txnActivityDay",
|
||||
"txnActivityYear": "txnActivityYear"
|
||||
},
|
||||
"acctType": "01",
|
||||
"acquirerBIN": "acquirerBIN",
|
||||
"acquirerMerchantID": "acquirerMerchantID",
|
||||
"addrMatch": "Y",
|
||||
"authenticationOnly": "false",
|
||||
"challengeIndicator": "noPreference",
|
||||
"deviceRenderOptions": {
|
||||
"sdkInterface": "both",
|
||||
"sdkUiType": [
|
||||
"multiSelect"
|
||||
]
|
||||
},
|
||||
"homePhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
},
|
||||
"mcc": "mcc",
|
||||
"merchantName": "merchantName",
|
||||
"messageVersion": "messageVersion",
|
||||
"mobilePhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
},
|
||||
"notificationURL": "notificationURL",
|
||||
"payTokenInd": false,
|
||||
"paymentAuthenticationUseCase": "paymentAuthenticationUseCase",
|
||||
"platform": "iOS",
|
||||
"purchaseInstalData": "purchaseInstalData",
|
||||
"recurringExpiry": "recurringExpiry",
|
||||
"recurringFrequency": "recurringFrequency",
|
||||
"sdkAppID": "sdkAppID",
|
||||
"sdkEphemPubKey": {
|
||||
"crv": "crv",
|
||||
"kty": "kty",
|
||||
"x": "x",
|
||||
"y": "y"
|
||||
},
|
||||
"sdkMaxTimeout": "60",
|
||||
"sdkReferenceNumber": "sdkReferenceNumber",
|
||||
"sdkTransID": "sdkTransID",
|
||||
"threeDSCompInd": "threeDSCompInd",
|
||||
"threeDSRequestorAuthenticationInd": "threeDSRequestorAuthenticationInd",
|
||||
"threeDSRequestorAuthenticationInfo": {
|
||||
"threeDSReqAuthData": "threeDSReqAuthData",
|
||||
"threeDSReqAuthMethod": "01",
|
||||
"threeDSReqAuthTimestamp": "threeDSReqAuthTimestamp"
|
||||
},
|
||||
"threeDSRequestorChallengeInd": "01",
|
||||
"threeDSRequestorID": "threeDSRequestorID",
|
||||
"threeDSRequestorName": "threeDSRequestorName",
|
||||
"threeDSRequestorPriorAuthenticationInfo": {
|
||||
"threeDSReqPriorAuthData": "threeDSReqPriorAuthData",
|
||||
"threeDSReqPriorAuthMethod": "01",
|
||||
"threeDSReqPriorAuthTimestamp": "threeDSReqPriorAuthTimestamp",
|
||||
"threeDSReqPriorRef": "threeDSReqPriorRef"
|
||||
},
|
||||
"threeDSRequestorURL": "threeDSRequestorURL",
|
||||
"transType": "01",
|
||||
"transactionType": "goodsOrServicePurchase",
|
||||
"whiteListStatus": "whiteListStatus",
|
||||
"workPhone": {
|
||||
"cc": "cc",
|
||||
"subscriber": "subscriber"
|
||||
}
|
||||
},
|
||||
"threeDSAuthenticationOnly": "false",
|
||||
"trustedShopper": false
|
||||
}'
|
||||
|
||||
39
PostPaymentsDetails.ps1
Normal file
39
PostPaymentsDetails.ps1
Normal file
@@ -0,0 +1,39 @@
|
||||
<#
|
||||
Request: POST /payments/details
|
||||
Summary: Submit details for a payment
|
||||
Description: Submits details for a payment created using `/payments`. This step is only needed when no final state has been reached on the `/payments` request, for example when the shopper was redirected to another page to complete the payment.
|
||||
|
||||
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments/details `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"authenticationData": {
|
||||
"authenticationOnly": "false"
|
||||
},
|
||||
"details": {
|
||||
"MD": "MD",
|
||||
"PaReq": "PaReq",
|
||||
"PaRes": "PaRes",
|
||||
"authorization_token": "authorization_token",
|
||||
"billingToken": "billingToken",
|
||||
"cupsecureplus.smscode": "cupsecureplus.smscode",
|
||||
"facilitatorAccessToken": "facilitatorAccessToken",
|
||||
"oneTimePasscode": "oneTimePasscode",
|
||||
"orderID": "orderID",
|
||||
"payerID": "payerID",
|
||||
"payload": "payload",
|
||||
"paymentID": "paymentID",
|
||||
"paymentStatus": "paymentStatus",
|
||||
"redirectResult": "redirectResult",
|
||||
"resultCode": "resultCode",
|
||||
"threeDSResult": "threeDSResult",
|
||||
"threeds2.challengeResult": "threeds2.challengeResult",
|
||||
"threeds2.fingerprint": "threeds2.fingerprint"
|
||||
},
|
||||
"paymentData": "paymentData",
|
||||
"threeDSAuthenticationOnly": false
|
||||
}'
|
||||
|
||||
93
PostPaymentsPaymentPspReferenceAmountUpdates.ps1
Normal file
93
PostPaymentsPaymentPspReferenceAmountUpdates.ps1
Normal file
@@ -0,0 +1,93 @@
|
||||
<#
|
||||
Request: POST /payments/{paymentPspReference}/amountUpdates
|
||||
Summary: Update an authorised amount
|
||||
Description: Increases or decreases the authorised payment amount and returns a unique reference for this request. You get the outcome of the request asynchronously, in an [**AUTHORISATION_ADJUSTMENT** webhook](https://docs.adyen.com/development-resources/webhooks/understand-notifications#event-codes).
|
||||
|
||||
You can only update authorised amounts that have not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures).
|
||||
|
||||
The amount you specify in the request is the updated amount, which is larger or smaller than the initial authorised amount.
|
||||
|
||||
For more information, refer to [Authorisation adjustment](https://docs.adyen.com/online-payments/adjust-authorisation#use-cases).
|
||||
#>
|
||||
param(
|
||||
<# The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $paymentPspReferen
|
||||
|
||||
)
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments/$paymentPspReference/amountUpdates `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"industryUsage": "delayedCharge",
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"merchantAccount": "merchantAccount",
|
||||
"reference": "reference",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
]
|
||||
}'
|
||||
|
||||
55
PostPaymentsPaymentPspReferenceCancels.ps1
Normal file
55
PostPaymentsPaymentPspReferenceCancels.ps1
Normal file
@@ -0,0 +1,55 @@
|
||||
<#
|
||||
Request: POST /payments/{paymentPspReference}/cancels
|
||||
Summary: Cancel an authorised payment
|
||||
Description: Cancels the authorisation on a payment that has not yet been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/paymentPspReference/captures), and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CANCELLATION** webhook](https://docs.adyen.com/online-payments/cancel#cancellation-webhook).
|
||||
|
||||
If you want to cancel a payment but don't have the [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference), use the [`/cancels`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/cancels) endpoint instead.
|
||||
|
||||
If you want to cancel a payment but are not sure whether it has been captured, use the [`/payments/{paymentPspReference}/reversals`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/reversals) endpoint instead.
|
||||
|
||||
For more information, refer to [Cancel](https://docs.adyen.com/online-payments/cancel).
|
||||
#>
|
||||
param(
|
||||
<# The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to cancel. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $paymentPspReferen
|
||||
|
||||
)
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments/$paymentPspReference/cancels `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"merchantAccount": "merchantAccount",
|
||||
"reference": "reference"
|
||||
}'
|
||||
|
||||
113
PostPaymentsPaymentPspReferenceCaptures.ps1
Normal file
113
PostPaymentsPaymentPspReferenceCaptures.ps1
Normal file
@@ -0,0 +1,113 @@
|
||||
<#
|
||||
Request: POST /payments/{paymentPspReference}/captures
|
||||
Summary: Capture an authorised payment
|
||||
Description: Captures an authorised payment and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CAPTURE** webhook](https://docs.adyen.com/online-payments/capture#capture-notification).
|
||||
|
||||
You can capture either the full authorised amount or a part of the authorised amount. By default, any unclaimed amount after a partial capture gets cancelled. This does not apply if you enabled multiple partial captures on your account and the payment method supports multiple partial captures.
|
||||
|
||||
[Automatic capture](https://docs.adyen.com/online-payments/capture#automatic-capture) is the default setting for most payment methods. In these cases, you don't need to make capture requests. However, making capture requests for payments that are captured automatically does not result in double charges.
|
||||
|
||||
For more information, refer to [Capture](https://docs.adyen.com/online-payments/capture).
|
||||
#>
|
||||
param(
|
||||
<# The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to capture. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $paymentPspReferen
|
||||
|
||||
)
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments/$paymentPspReference/captures `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"merchantAccount": "merchantAccount",
|
||||
"platformChargebackLogic": {
|
||||
"behavior": "deductAccordingToSplitRatio",
|
||||
"costAllocationAccount": "costAllocationAccount",
|
||||
"targetAccount": "targetAccount"
|
||||
},
|
||||
"reference": "reference",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
],
|
||||
"subMerchants": [
|
||||
{
|
||||
"address": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"id": "id",
|
||||
"mcc": "mcc",
|
||||
"name": "name",
|
||||
"taxId": "taxId"
|
||||
}
|
||||
]
|
||||
}'
|
||||
|
||||
96
PostPaymentsPaymentPspReferenceRefunds.ps1
Normal file
96
PostPaymentsPaymentPspReferenceRefunds.ps1
Normal file
@@ -0,0 +1,96 @@
|
||||
<#
|
||||
Request: POST /payments/{paymentPspReference}/refunds
|
||||
Summary: Refund a captured payment
|
||||
Description: Refunds a payment that has been [captured](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/captures), and returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**REFUND** webhook](https://docs.adyen.com/online-payments/refund#refund-webhook).
|
||||
|
||||
You can refund either the full captured amount or a part of the captured amount. You can also perform multiple partial refunds, as long as their sum doesn't exceed the captured amount.
|
||||
|
||||
> Some payment methods do not support partial refunds. To learn if a payment method supports partial refunds, refer to the payment method page such as [cards](https://docs.adyen.com/payment-methods/cards#supported-cards), [iDEAL](https://docs.adyen.com/payment-methods/ideal), or [Klarna](https://docs.adyen.com/payment-methods/klarna).
|
||||
|
||||
If you want to refund a payment but are not sure whether it has been captured, use the [`/payments/{paymentPspReference}/reversals`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/reversals) endpoint instead.
|
||||
|
||||
For more information, refer to [Refund](https://docs.adyen.com/online-payments/refund).
|
||||
#>
|
||||
param(
|
||||
<# The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to refund. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $paymentPspReferen
|
||||
|
||||
)
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments/$paymentPspReference/refunds `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"merchantAccount": "merchantAccount",
|
||||
"merchantRefundReason": "FRAUD",
|
||||
"reference": "reference",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
],
|
||||
"store": "store"
|
||||
}'
|
||||
|
||||
54
PostPaymentsPaymentPspReferenceReversals.ps1
Normal file
54
PostPaymentsPaymentPspReferenceReversals.ps1
Normal file
@@ -0,0 +1,54 @@
|
||||
<#
|
||||
Request: POST /payments/{paymentPspReference}/reversals
|
||||
Summary: Refund or cancel a payment
|
||||
Description: [Refunds](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/refunds) a payment if it has already been captured, and [cancels](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments/{paymentPspReference}/cancels) a payment if it has not yet been captured. Returns a unique reference for this request. You get the outcome of the request asynchronously, in a [**CANCEL_OR_REFUND** webhook](https://docs.adyen.com/online-payments/reverse#cancel-or-refund-webhook).
|
||||
|
||||
The reversed amount is always the full payment amount.
|
||||
> Do not use this request for payments that involve multiple partial captures.
|
||||
|
||||
For more information, refer to [Reversal](https://docs.adyen.com/online-payments/reversal).
|
||||
#>
|
||||
param(
|
||||
<# The [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) of the payment that you want to reverse. #>
|
||||
[Parameter(Mandatory=$True)]
|
||||
[String] $paymentPspReferen
|
||||
|
||||
)
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments/$paymentPspReference/reversals `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"merchantAccount": "merchantAccount",
|
||||
"reference": "reference"
|
||||
}'
|
||||
|
||||
15
PostPaymentsResult.ps1
Normal file
15
PostPaymentsResult.ps1
Normal file
@@ -0,0 +1,15 @@
|
||||
<#
|
||||
Request: POST /payments/result
|
||||
Summary: Verify a payment result
|
||||
Description: Verifies the payment result using the payload returned from the Checkout SDK.
|
||||
|
||||
For more information, refer to [How it works](https://docs.adyen.com/online-payments#howitworks).
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/payments/result `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"payload": "payload"
|
||||
}'
|
||||
|
||||
293
PostSessions.ps1
Normal file
293
PostSessions.ps1
Normal file
@@ -0,0 +1,293 @@
|
||||
<#
|
||||
Request: POST /sessions
|
||||
Summary: Create a payment session
|
||||
Description: Creates a payment session for [Web Drop-in](https://docs.adyen.com/online-payments/web-drop-in) and [Web Components](https://docs.adyen.com/online-payments/web-components) integrations.
|
||||
|
||||
The response contains encrypted payment session data. The front end then uses the session data to make any required server-side calls for the payment flow.
|
||||
|
||||
You get the payment outcome asynchronously, in an [AUTHORISATION](https://docs.adyen.com/api-explorer/#/Webhooks/latest/post/AUTHORISATION) webhook.
|
||||
#>
|
||||
|
||||
curl -X POST https://checkout-test.adyen.com/v71/sessions `
|
||||
-H 'Accept: application/json' `
|
||||
-H 'Content-Type: application/json' `
|
||||
-d '{
|
||||
"accountInfo": {
|
||||
"accountAgeIndicator": "notApplicable",
|
||||
"accountChangeDate": "2024-02-22T15:12:38.2355650+00:00",
|
||||
"accountChangeIndicator": "thisTransaction",
|
||||
"accountCreationDate": "2024-02-22T15:12:38.2355680+00:00",
|
||||
"accountType": "notApplicable",
|
||||
"addCardAttemptsDay": 0,
|
||||
"deliveryAddressUsageDate": "2024-02-22T15:12:38.2355720+00:00",
|
||||
"deliveryAddressUsageIndicator": "thisTransaction",
|
||||
"homePhone": "homePhone",
|
||||
"mobilePhone": "mobilePhone",
|
||||
"passwordChangeDate": "2024-02-22T15:12:38.2355770+00:00",
|
||||
"passwordChangeIndicator": "notApplicable",
|
||||
"pastTransactionsDay": 0,
|
||||
"pastTransactionsYear": 0,
|
||||
"paymentAccountAge": "2024-02-22T15:12:38.2355830+00:00",
|
||||
"paymentAccountIndicator": "notApplicable",
|
||||
"purchasesLast6Months": 0,
|
||||
"suspiciousActivity": false,
|
||||
"workPhone": "workPhone"
|
||||
},
|
||||
"additionalAmount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"additionalData": {},
|
||||
"allowedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"applicationInfo": {
|
||||
"adyenLibrary": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"adyenPaymentSource": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"externalPlatform": {
|
||||
"integrator": "integrator",
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantApplication": {
|
||||
"name": "name",
|
||||
"version": "version"
|
||||
},
|
||||
"merchantDevice": {
|
||||
"os": "os",
|
||||
"osVersion": "osVersion",
|
||||
"reference": "reference"
|
||||
},
|
||||
"shopperInteractionDevice": {
|
||||
"locale": "locale",
|
||||
"os": "os",
|
||||
"osVersion": "osVersion"
|
||||
}
|
||||
},
|
||||
"authenticationData": {
|
||||
"attemptAuthentication": "always",
|
||||
"authenticationOnly": "false",
|
||||
"threeDSRequestData": {
|
||||
"challengeWindowSize": "01",
|
||||
"dataOnly": "false",
|
||||
"nativeThreeDS": "preferred",
|
||||
"threeDSVersion": "2.1.0"
|
||||
}
|
||||
},
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"blockedPaymentMethods": [
|
||||
""
|
||||
],
|
||||
"captureDelayHours": 0,
|
||||
"channel": "iOS",
|
||||
"company": {
|
||||
"homepage": "homepage",
|
||||
"name": "name",
|
||||
"registrationNumber": "registrationNumber",
|
||||
"registryLocation": "registryLocation",
|
||||
"taxId": "taxId",
|
||||
"type": "type"
|
||||
},
|
||||
"countryCode": "countryCode",
|
||||
"dateOfBirth": "2024-02-22",
|
||||
"deliverAt": "2024-02-22T15:12:38.2356870+00:00",
|
||||
"deliveryAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"firstName": "firstName",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"lastName": "lastName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"enableOneClick": false,
|
||||
"enablePayOut": false,
|
||||
"enableRecurring": false,
|
||||
"expiresAt": "2024-02-22T15:12:38.2357060+00:00",
|
||||
"fundOrigin": {
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"walletIdentifier": "walletIdentifier"
|
||||
},
|
||||
"fundRecipient": {
|
||||
"billingAddress": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"houseNumberOrName": "houseNumberOrName",
|
||||
"postalCode": "postalCode",
|
||||
"stateOrProvince": "stateOrProvince",
|
||||
"street": "street"
|
||||
},
|
||||
"paymentMethod": {
|
||||
"brand": "brand",
|
||||
"checkoutAttemptId": "checkoutAttemptId",
|
||||
"cupsecureplus.smscode": "cupsecureplus.smscode",
|
||||
"cvc": "cvc",
|
||||
"encryptedCardNumber": "encryptedCardNumber",
|
||||
"encryptedExpiryMonth": "encryptedExpiryMonth",
|
||||
"encryptedExpiryYear": "encryptedExpiryYear",
|
||||
"encryptedSecurityCode": "encryptedSecurityCode",
|
||||
"expiryMonth": "expiryMonth",
|
||||
"expiryYear": "expiryYear",
|
||||
"fundingSource": "credit",
|
||||
"holderName": "holderName",
|
||||
"networkPaymentReference": "networkPaymentReference",
|
||||
"number": "number",
|
||||
"recurringDetailReference": "recurringDetailReference",
|
||||
"shopperNotificationReference": "shopperNotificationReference",
|
||||
"storedPaymentMethodId": "storedPaymentMethodId",
|
||||
"threeDS2SdkVersion": "threeDS2SdkVersion",
|
||||
"type": "scheme"
|
||||
},
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"storedPaymentMethodId": "storedPaymentMethodId",
|
||||
"subMerchant": {
|
||||
"city": "city",
|
||||
"country": "country",
|
||||
"mcc": "mcc",
|
||||
"name": "name",
|
||||
"taxId": "taxId"
|
||||
},
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"walletIdentifier": "walletIdentifier",
|
||||
"walletOwnerTaxId": "walletOwnerTaxId"
|
||||
},
|
||||
"installmentOptions": {},
|
||||
"lineItems": [
|
||||
{
|
||||
"amountExcludingTax": 0,
|
||||
"amountIncludingTax": 0,
|
||||
"brand": "brand",
|
||||
"color": "color",
|
||||
"description": "description",
|
||||
"id": "id",
|
||||
"imageUrl": "imageUrl",
|
||||
"itemCategory": "itemCategory",
|
||||
"manufacturer": "manufacturer",
|
||||
"productUrl": "productUrl",
|
||||
"quantity": 0,
|
||||
"receiverEmail": "receiverEmail",
|
||||
"size": "size",
|
||||
"sku": "sku",
|
||||
"taxAmount": 0,
|
||||
"taxPercentage": 0,
|
||||
"upc": "upc"
|
||||
}
|
||||
],
|
||||
"mandate": {
|
||||
"amount": "amount",
|
||||
"amountRule": "max",
|
||||
"billingAttemptsRule": "on",
|
||||
"billingDay": "billingDay",
|
||||
"endsAt": "endsAt",
|
||||
"frequency": "adhoc",
|
||||
"remarks": "remarks",
|
||||
"startsAt": "startsAt"
|
||||
},
|
||||
"mcc": "mcc",
|
||||
"merchantAccount": "merchantAccount",
|
||||
"merchantOrderReference": "merchantOrderReference",
|
||||
"metadata": {},
|
||||
"mode": "embedded",
|
||||
"mpiData": {
|
||||
"authenticationResponse": "Y",
|
||||
"cavv": "cavv",
|
||||
"cavvAlgorithm": "cavvAlgorithm",
|
||||
"challengeCancel": "01",
|
||||
"directoryResponse": "A",
|
||||
"dsTransID": "dsTransID",
|
||||
"eci": "eci",
|
||||
"riskScore": "riskScore",
|
||||
"threeDSVersion": "threeDSVersion",
|
||||
"tokenAuthenticationVerificationValue": "tokenAuthenticationVerificationValue",
|
||||
"transStatusReason": "transStatusReason",
|
||||
"xid": "xid"
|
||||
},
|
||||
"platformChargebackLogic": {
|
||||
"behavior": "deductAccordingToSplitRatio",
|
||||
"costAllocationAccount": "costAllocationAccount",
|
||||
"targetAccount": "targetAccount"
|
||||
},
|
||||
"recurringExpiry": "recurringExpiry",
|
||||
"recurringFrequency": "recurringFrequency",
|
||||
"recurringProcessingModel": "CardOnFile",
|
||||
"redirectFromIssuerMethod": "redirectFromIssuerMethod",
|
||||
"redirectToIssuerMethod": "redirectToIssuerMethod",
|
||||
"reference": "reference",
|
||||
"returnUrl": "returnUrl",
|
||||
"riskData": {
|
||||
"clientData": "clientData",
|
||||
"customFields": {},
|
||||
"fraudOffset": 0,
|
||||
"profileReference": "profileReference"
|
||||
},
|
||||
"shopperEmail": "shopperEmail",
|
||||
"shopperIP": "shopperIP",
|
||||
"shopperInteraction": "Ecommerce",
|
||||
"shopperLocale": "shopperLocale",
|
||||
"shopperName": {
|
||||
"firstName": "firstName",
|
||||
"lastName": "lastName"
|
||||
},
|
||||
"shopperReference": "shopperReference",
|
||||
"shopperStatement": "shopperStatement",
|
||||
"showInstallmentAmount": false,
|
||||
"showRemovePaymentMethodButton": false,
|
||||
"socialSecurityNumber": "socialSecurityNumber",
|
||||
"splitCardFundingSources": "false",
|
||||
"splits": [
|
||||
{
|
||||
"account": "account",
|
||||
"amount": {
|
||||
"currency": "currency",
|
||||
"value": 0
|
||||
},
|
||||
"description": "description",
|
||||
"reference": "reference",
|
||||
"type": "AcquiringFees"
|
||||
}
|
||||
],
|
||||
"store": "store",
|
||||
"storePaymentMethod": false,
|
||||
"storePaymentMethodMode": "askForConsent",
|
||||
"telephoneNumber": "telephoneNumber",
|
||||
"themeId": "themeId",
|
||||
"threeDSAuthenticationOnly": "false",
|
||||
"trustedShopper": false
|
||||
}'
|
||||
|
||||
Reference in New Issue
Block a user