Authorisation and Direct Sale
The core of your integration solution is sending payment requests to our platform. When doing so, you can process them in two different authorisation modes: authorisation or direct sale mode.
Authorisation mode
The appropriate mode depends on your business model and/or personal preference:
| Mode | Effect |
|---|---|
| Authorisation |
The card scheme/payment provider only blocks the amount you want to charge for the order on your customer’s card/bank account. Successful transactions will have status="PENDING_CAPTURE" / statusOutput.statusCategory="PENDING_MERCHANT" / statusOutput.statusCode=5. To actually receive the payment, you need to eventually capture this authorisation within a certain period. The validity period of an authorisation depends on various factors:
|
| Direct sale |
The card scheme/payment provider blocks and captures the amount you want to charge for the order on your customer’s card/bank account in one go. Thus, your customer’s bank is instructed to pay out the amount to you via your acquirer immediately. Successful transactions will have status="PENDING_CAPTURE" / statusOutput.statusCategory="PENDING_MERCHANT" / statusOutput.statusCode=9. Mind that processing transactions in direct sale mode does not mean you receive the funds instantaneously. The interval between a transaction reaching status 9 and receiving the funds depends on various factors:
|
Process requests
Our API implements specific properties for processing transactions in authorisation/direct sale mode. Add one of the properties to your CreatePayment (for Server-to-server integration method)/CreateHostedCheckout (for Hosted Checkout Page integration method) requests:
| Property | Remarks/Possible values |
|---|---|
|
cardPaymentMethodSpecificInput. mobilePaymentMethodSpecificInput. |
cardPaymentMethodSpecificInput.authorizationMode: Applicable to card payments (i.e. Visa). mobilePaymentMethodSpecificInput.authorizationMode: Applicable to mobile payments (i.e. Google Pay).
If you send "FINAL_AUTHORIZATION"/ "PRE_AUTHORIZATION", make sure to eventually capture the amount to actually receive the payment. |
| redirectPaymentMethodSpecificInput. requiresApproval |
Applicable to non-card payments (i.e. Paypal).
If you send "true", make sure to eventually capture the amount to actually receive the payment. |
- Mind that the availability of a specific authorisation mode/type, the validity period and the possibility for partial/multiple captures depends on various factors, such as
- The payment method/card scheme.
- Your customer's issuer.
- The location and type of your business.
- Your acquiring contract.
- The applicable property for your request depends on the payment method. Refer to JSON sample in the "Integration" chapters of the respective payment method documentation.
Default authorisation mode
If you do not include either of these properties in your CreateHostedCheckout/CreatePayment request, our platform will process them as authorisations by default.
However, there might be exceptions to this rule, as not all payment methods support authorisations. Refer to the dedicated payment method guide to learn about available authorisation modes and how to implement them correctly.
Capture authorisations
If you process transactions in authorisation mode, you need to eventually capture the amount to receive the payment. Make sure to respect possible limited validity periods and the availability of partial/multiple captures options, depending on
- The payment method/card scheme.
- Your customer's issuer.
- The location and type of your business.
- Your acquiring contract.
Refer to the dedicated "Capture payments" chapter in our "Maintenance operations" guide to learn the how-to.
Additional authorisation data (American Express)
This product is in pilot mode. Contact us to become a pilot.
Sometimes, you do not have all relevant data at hand at the time of the authorisation request. A common use case for this are car rental orders: To complete a payment, you need data available only later (i.e. the definite loan period or covered distance).
When processing American Express transactions, our platform allows you to add this data to an existing authorisation, only in case of car rental. To do so, follow these steps:
- Process the initial authorisation as a pre-authorisation (a final authorisation is also possible, but not recommended), possibly via subsequent payment.
- Send a request to our dedicated AuthorizationAdditionalData endpoint.
{
"carRentalData": {
"agreementNumber": "AgreementNumber",
"chargesAmount": 123,
"chargesCategory": "extramileage",
"distanceMeasure": 1500,
"distanceUnit": "kilometers",
"driverIdentificationNumber": 123456789123,
"driverTaxNumber": "DriverTaxNumber",
"pickupDetails": {
"location": "Location",
"address": "Address",
"city": "City",
"state": "STA",
"country": 1,
"date": "2023-09-15T212130Z"
},
"returnDetails": {
"location": "Location",
"address": "Address",
"city": "City",
"state": "STA",
"country": 1,
"date": "2023-09-15T212130Z"
},
"vehicle": {
"classId": "ClId",
"identificationNumber": "IdentificationNumber"
},
"tollFreeNumber": "TollFreeNumber",
"rentalRateAmount": 321,
"rentalRateType": "monthly",
"TaxExemptIndicator": true,
"renterName": "RenterName",
"cardholderNotified": false
}
}
| Property | Description |
|---|---|
| {merchantId} | Your account on our platform through which the initial authorisation request was processed. Add it as a path parameter to the AuthorizationAdditionalData endpoint Url. |
| {payment.id} | The payment.id of the initial authorisation request. Add it as a path parameter to the AuthorizationAdditionalData endpoint Url. |
| carRentalData pickupDetails returnDetails vehicle |
carRentalData: Various data about the contractual conditions (i.e. order category, covered distance, renter information) pickup: Pick up location of the rented car. return: Return location of the rented car. vehicle: Data about the rented car. Find detailed information about this object and its properties in our AuthorizationAdditionalDataAPI. |
You can capture then the authorisation via a standard CapturePayment request.
Once the payment is captured (even partially), then no other call to this additional authorization data endpoint will be taken into account.