Pay

The pay action is the default action for the gift card service. The action is used to perform a gift card payment.

Base JSON request

πŸ“˜

Note

Use the base request as instructed on this page.

Parameters

Basic Parameters:

  • Find basic parameters here.

Pay Request

Parameters

  • Service Specific Parameters:
ParameterTypeRequiredDescription
FashionChequeCardNumberStringRequired if the gift card is from FashionChequeThe number as displayed on the FashionCheque card
FashionChequePINStringRequired if the gift card is from FashionChequeThe Personal Identification Number of the card
IntersolveCardnumberStringRequired if the gift card is from IntersolveThe number as displayed on the InterSolve card
IntersolvePINStringRequired if the gift card is from IntersolveThe Personal Identification Number of the card
TCSCardnumberStringRequired if the gift card is from TCSThe number as displayed on the TCS card
TCSValidationCodeStringRequired if the gift card is from TCSThe Personal Identification Number of the card
CardnumberStringRequired when using a custom gift card serviceThe number as displayed on the gift card
PINStringRequired when using a custom gift card serviceThe Personal Identification Number of the card
LastNameStringOptionalLast name of the customer
EmailStringOptionalEmail address of the customer

Example Request

{
   "Currency": "EUR",
   "AmountDebit": 10,
   "Invoice": "testinvoice 123",
   "Services": {
      "ServiceList": [
         {
            "Name": "boekenbon",
            "Action": "Pay",
            "Parameters": [
               {
                  "Name": "IntersolveCardnumber",
                  "Value": "0000000000000000001"
               },
               {
                  "Name": "IntersolvePin",
                  "Value": "1000"
               }
            ]
         }
      ]
   }
}

Pay Response

If the gift card has sufficient balance to cover the full transaction amount, the payment will be completed with one gift card transaction and return a success status. If the balance does not cover the full amount, the response will provide a redirect URL for completing the payment on the checkout page, allowing for multiple partial payments.

Parameters

Example Response

{
   "Key": "C11C13902A0848FCA1DA17C10332XXXX",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2019-03-23T00:18:27"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "AdditionalParameters": null,
   "RequestErrors": null,
   "Invoice": "testinvoice 123",
   "ServiceCode": "boekenbon",
   "IsTest": true,
   "Currency": "EUR",
   "AmountDebit": 10,
   "TransactionType": "V238",
   "MutationType": 2,
   "RelatedTransactions": null,
   "ConsumerMessage": null,
   "Order": null,
   "IssuingCountry": null,
   "StartRecurrent": false,
   "Recurring": false,
   "CustomerName": null,
   "PayerHash": null,
   "PaymentKey": "D450A4D7E25A49D3A5E9E643D6F2XXXX"
}

Pay Push

Example Push

{
   "Transaction": {
      "Key": "901745AE6B4643C6837497C513D2xxxx",
      "Invoice": "testinvoice 123",
      "ServiceCode": "boekenbon",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Success"
         },
         "SubCode": {
            "Code": "S003",
            "Description": "A partial payment of EUR 1 was successfully performed on a requested amount of EUR 10.00."
         },
         "DateTime": "2019-03-22T23:28:13"
      },
      "IsTest": true,
      "Order": null,
      "Currency": "EUR",
      "AmountDebit": 1,
      "TransactionType": "V238",
      "Services": null,
      "CustomParameters": null,
      "AdditionalParameters": null,
      "MutationType": 2,
      "RelatedTransactions": [
         {
            "RelationType": "partialpayment",
            "RelatedTransactionKey": "40591C0E384A40AC8FF5C5D1C6A0xxxx"
         }
      ],
      "IsCancelable": false,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": null,
      "PayerHash": null,
      "PaymentKey": "B14054AF06FA4997B98450C696D7xxxx"
   }
}

Refund

To refund a successful gift card transaction, use the Refund action.

Refund Request

ParameterTypeRequiredDescription
originaltransactionStringYesTransaction key of the original transaction to refund

Example Request

{
   "Currency": "EUR",
   "AmountCredit": 1,
   "Invoice": "testinvoice 123",
   "OriginalTransactionKey": "901745AE6B4643C6837497C513D2xxxx",
   "Services": {
      "ServiceList": [
         {
            "Name": "boekenbon",
            "Action": "Refund"
         }
      ]
   }
}

Refund Response

Example Response

{
   "Key": "62AB2EF2C17F42A1A79DC42CD552xxxx",
   "Status": {
      "Code": {
         "Code": 190,
         "Description": "Success"
      },
      "SubCode": {
         "Code": "S001",
         "Description": "Transaction successfully processed"
      },
      "DateTime": "2019-03-22T23:34:18"
   },
   "RequiredAction": null,
   "Services": null,
   "CustomParameters": null,
   "AdditionalParameters": null,
   "RequestErrors": null,
   "Invoice": "testinvoice 123",
   "ServiceCode": "boekenbon",
   "IsTest": true,
   "Currency": "EUR",
   "AmountCredit": 1,
   "TransactionType": "V239",
   "MutationType": 2,
   "RelatedTransactions": [
      {
         "RelationType": "refund",
         "RelatedTransactionKey": "901745AE6B4643C6837497C513D2xxxx"
      }
   ],
   "ConsumerMessage": null,
   "Order": null,
   "IssuingCountry": null,
   "StartRecurrent": false,
   "Recurring": false,
   "CustomerName": null,
   "PayerHash": null,
   "PaymentKey": "B93B33C25C1840A9AF19DC609CF7xxxx"
}

Refund Push

Example Push

{
   "Transaction": {
      "Key": "62AB2EF2C17F42A1A79DC42CD552xxxx",
      "Invoice": "testinvoice 123",
      "ServiceCode": "boekenbon",
      "Status": {
         "Code": {
            "Code": 190,
            "Description": "Success"
         },
         "SubCode": null,
         "DateTime": "2019-03-22T23:34:18"
      },
      "IsTest": true,
      "Order": null,
      "Currency": "EUR",
      "AmountCredit": 1,
      "TransactionType": "V239",
      "Services": null,
      "CustomParameters": null,
      "AdditionalParameters": null,
      "MutationType": 2,
      "RelatedTransactions": [
         {
            "RelationType": "refund",
            "RelatedTransactionKey": "901745AE6B4643C6837497C513D2xxxx"
         }
      ],
      "IsCancelable": false,
      "IssuingCountry": null,
      "StartRecurrent": false,
      "Recurring": false,
      "CustomerName": null,
      "PayerHash": null,
      "PaymentKey": null
   }
}