Pay

The Pay action is the default action. The action is used to perform a single payment with Apple Pay.

πŸ“˜

Note

Use the base request as instructed on this page.

Parameters

Service-specific parameters

ParameterTypeRequiredRecommendedDescription
PaymentDataStringYesN/AThis can be retrieved from the "captureInfo"-variables of our Client Side Encryption SDK.
CustomerCardNameStringNoN/AThis can be retrieved from the "captureInfo"-variables of our Client Side Encryption SDK.

Basic Parameters:

  • Find basic parameters here.

Example request

{
   "Currency": "EUR",
   "AmountDebit": 1.00,
   "Invoice": "10000480",
   "Services": {
      "ServiceList": [
         {
            "Name": "applepay",
            "Action": "Pay",
            "Parameters": [
               {
                  "Name": "PaymentData",
                  "Value": "XXXXXXXXXXXXX"
               },
               {
                  "Name": "CustomerCardName",
                  "Value": "XXXXXXXXXXXXX"
               }
            ]
         }
      ]
   }
}

 

Pay Response

Parameters

Service-specific parameters

ParameterTypeRequiredRecommendedDescription
CardNumberEndingStringLast 4 digits of the credit card number.
CardExpirationDateStringCredit card expiration date.
MaskedCreditcardNumberStringMasked card number.

Example response

{
   "Key": "9AA4C81A08A84FA7B68E6A6A6291XXXX",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2019-06-13T09:19:52"
   },
   "RequiredAction": null,
   "Services": [
      {
         "Name": "applepay",
         "Action": null,
         "Parameters": [
            {
               "Name": "CardNumberEnding",
               "Value": "00XX"
            },
            {
               "Name": "CardExpirationDate",
               "Value": "0019-07"
            },
            {
               "Name": "MaskedCreditcardNumber",
               "Value": "XXXXXX******XXXX"
            }
         ]
      }
   ],
   "CustomParameters": null,
   "RequestErrors": null,
   "Invoice": "10000480",
   "ServiceCode": "applepay",
   "IsTest": true,
   "Currency": "EUR",
   "AmountDebit": 1.00,
   "TransactionType": "V187",
   "MutationType": 2,
   "RelatedTransactions": null,
   "ConsumerMessage": null,
   "Order": "10000480",
   "IssuingCountry": null,
   "StartRecurrent": false,
   "Recurring": false,
   "CustomerName": "XXXXXXXXXXXX",
   "PayerHash": "XXXXXXXXXXXXXXXXXXX",
   "PaymentKey": "XXXXXXXXXXXXXXXXXXXXXX"
}

Pay Push

Parameters

Service-specific parameters

ParameterTypeRequiredRecommendedDescription
CardNumberEndingStringLast 4 digits of the credit card number.
CardExpirationDateStringCredit card expiration date.
MaskedCreditcardNumberStringMasked card number.

Example Push

{
   "Transaction": {
      "Key": "9AA4C81A08A84FA7B68E6A6A6291XXXX",
      "Invoice": "10000480",
      "ServiceCode": "applepay",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Success"
         },
         "SubCode": {
            "Code": "S001",
            "Description": "Transaction successfully processed"
         },
         "DateTime": "2019-06-13T09:19:52"
      },
      "IsTest": true,
      "Order": "10000480",
      "Currency": "EUR",
      "AmountDebit": 1,
      "TransactionType": "V187",
      "Services": [
         {
            "Name": "applepay",
            "Action": null,
            "Parameters": [
               {
                  "Name": "CardNumberEnding",
                  "Value": "00XX"
               },
               {
                  "Name": "CardExpirationDate",
                  "Value": "0019-07"
               },
               {
                  "Name": "MaskedCreditcardNumber",
                  "Value": "XXXXXX******XXXX"
               }
            ],
            "VersionAsProperty": 1
         }
      ],
      "CustomParameters": null,
      "MutationType": 2,
      "RelatedTransactions": null,
      "IsCancelable": false,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": "XXXXXXXXXXXX",
      "PayerHash": "XXXXXXXXXXXXXXXXXXX",
      "PaymentKey": "XXXXXXXXXXXXXXXXXXXXXX"
   }
}

Refund

Refund Request

Parameters

Service-specific parameters

ParameterTypeRequiredRecommendedDescription
OriginalTransactionKeyStringYesN/ATransaction key of the payment that needs to be refunded. Please note: This is a basic parameter, not a service specific parameter.

Example request

{
   "Currency": "EUR",
   "AmountCredit": 1.00,
   "Invoice": "10000480",
   "OriginalTransactionKey": "XXXXXXXXXXXXXXX",
   "Services": {
      "ServiceList": [
         {
            "Name": "applepay",
            "Action": "refund"
         }
      ]
   }
}

Refund Response

Example response

{
   "Key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2019-06-13T09:20:24"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "RequestErrors": null,
   "Invoice": "10000480",
   "ServiceCode": "applepay",
   "IsTest": true,
   "Currency": "EUR",
   "AmountCredit": 1.00,
   "TransactionType": "V188",
   "MutationType": 2,
   "RelatedTransactions": [
      {
         "RelationType": "refund",
         "RelatedTransactionKey": "XXXXXXXXXXXXXXXXXXXXX"
      }
   ],
   "ConsumerMessage": null,
   "Order": null,
   "IssuingCountry": null,
   "StartRecurrent": false,
   "Recurring": false,
   "CustomerName": "XXXXXXXXXXXX",
   "PayerHash": null,
   "PaymentKey": "XXXXXXXXXXXXXXXX"
}

Refund Push

Parameters

Example push

{
   "Key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2019-06-13T09:20:24"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "RequestErrors": null,
   "Invoice": "10000480",
   "ServiceCode": "applepay",
   "IsTest": true,
   "Currency": "EUR",
   "AmountCredit": 1.00,
   "TransactionType": "V188",
   "MutationType": 2,
   "RelatedTransactions": [
      {
         "RelationType": "refund",
         "RelatedTransactionKey": "XXXXXXXXXXXXXXXXXXXXX"
      }
   ],
   "ConsumerMessage": null,
   "Order": null,
   "IssuingCountry": null,
   "StartRecurrent": false,
   "Recurring": false,
   "CustomerName": "XXXXXXXXXXXX",
   "PayerHash": null,
   "PaymentKey": "XXXXXXXXXXXXXXXX"
}