Requirements
Before you begin, take into account the following requirements, limitations, and preparations.How it works
The process to adjust an authorized amount is as follows:- To indicate that you will probably make changes later, you use the authorization type pre-authorization in your payment request.
The payment is pre-authorized for the amount specified in the payment request. - When the amount due increases (or decreases), you send a request to adjust the pre-authorized amount.
Each time that the amount due changes or the validity period of the authorization is about to expire, you send another authorization adjustment request. - After your last authorization adjustment, you manually capture the payment.
- You need to implement logic on your end to decide when to use the pre-authorization flow, and to calculate the amount when you make an authorization adjustment.
- You can use pre-authorization with Dynamic Currency Conversion (DCC). This gives shoppers from abroad a choice to pay in the local currency or their own currency.
Use cases
There are several use cases for adjusting a pre-authorized amount:-
Hospitality. For example, in a hotel:
- Just before the guest checks in, or when the guest checks in using an app or in person, the hotel pre-authorizes payment of the guest’s room. At the same time, the hotel stores the shopper’s payment information , to be able to apply late charges when necessary.
- During their stay, the guest incurs expenses at the hotel facilities. The hotel adds these expenses to the pre-authorized amount by adjusting the authorization.
- When the guest checks out, the hotel captures the final amount, or cancels the payment if the guest prefers to settle their bill with a different payment method.
- If necessary, the hotel charges the guest after they have left, using the shopper’s stored payment details for a new payment.
- Tipping in regions and industries where it is customary that the guest adds a tip on the receipt after they have presented their card.
- Cross-channel customer journeys. For example: the shopper pre-orders a product in a web shop, and after a long delivery time goes to the store to make the payment and collect the product.
Authorization type
For some card schemes, you can set payment requests to be handled as either a pre-authorization or a final authorization.- Pre-authorization: this authorization type verifies that the shopper’s account is valid and has sufficient funds to cover a transaction, but does not debit the account. It is intended for use cases as described above, when you do not yet know the amount to be captured. It allows you to increase or decrease the initially authorized amount at a later point in time.
- Final authorization: the final amount is agreed up front and the transaction will be captured in full. This is the default authorization type, and it doesn’t allow you to adjust the authorized amount later.
- Define the default authorization type at the merchant account level for all card transactions. See Configure your account.
- Specify
authorisationTypePreAuth orauthorisationTypeFinalAuth in each payment request. See Pre-authorize a payment.
Asynchronous or synchronous adjustment
There are two ways to implement pre-authorization:- Asynchronous authorization adjustment: you refer to a payment using the PSP reference that you received in the response to your pre-authorization request. In each authorization adjustment request, and in the final capture request, you specify this first PSP reference. Asynchronous adjustment is easier to implement, but it is not immediately clear if the adjustment succeeded. You must set up webhooks to receive updates and to know if the final amount was authorized before you capture the payment.
-
Synchronous authorization adjustment: you pass an
adjustAuthorisationDatablob from one request to the next, to enable us to keep track of the latest amount. You receive the first blob in the response to your pre-authorization request. In your first authorization adjustment request, you specify the blob you received for the pre-authorization, and you receive a new blob in the response. In your next adjustment, you specify the blob that you received in the response for the previous adjustment, and so on. Synchronous adjustment requires more effort to implement, because you need to keep track of the latest blob. The advantage is that you receive the adjustment result synchronously. In this way you immediately know if the final amount was authorized before you capture the payment. If at any point you fail to pass the blob, the flow falls back to asynchronous adjustment, and it is no longer possible to return to synchronous adjustment for that payment.
Configure your account (Optional)
There are various aspects of your account that you may want to configure for pre-authorization and authorization adjustment:-
Synchronous authorization adjustment: to enable synchronous authorization adjustment, in your Customer Area go to In-person payments > Developer > Additional Data and select return adjust authorisation data. You will then receive the initial
adjustAuthorisationDatablob with your pre-authorization request and subsequently receive the authorization adjustment results synchronously. - Default authorization type: if you only do pre-authorization payment requests, you can ask our Support Team to set your default authorization type to PreAuth so that you do not have to specify it in your payment requests. If you want to do both pre-authorization payment requests and regular payment requests, we recommend you specify the authorization type in all payment requests.
- Manual capture: to capture payments in the authorization adjustment flow, manual capture must be enabled. You can set this for your account, but then all payments require manual capture. The alternative is to enable manual capture in the individual pre-authorization requests.
Enable smart pre-authorization (Optional)
Certain card schemes do not support incremental adjustments. Because this is validated during the authorization adjustment step, you cannot know in advance, at the pre-authorization step, if you should accept the customer’s card. The smart pre-authorization feature lets your payment terminal check if the card presented by the customer is of a brand that supports authorization adjustment. In addition to checking the card brand, you can optionally let the feature check if the funding source, such as credit or debit, supports authorization adjustment. If the card supports authorization adjustment, the terminal continues with the pre-authorization request. If the card does not support authorization adjustment, the terminal presents the shopper with a list of supported card brands to choose from. They can then use a different card and continue with the payment.
To enable smart pre-authorization:
- Log in to your Customer Area
- Go to In-person payments > Terminal settings > Payment features.
- Under Smart Pre-auth > Filter supported Brands, select the pencil icon **and then select Enable.
-
(Optional) If you want to exclude debit and/or prepaid cards from the smart pre-authorization flow:
- Under Filter Funding Sources, select the pencil icon **.
- Select Enable, and choose the types of cards that you want to exclude.
- Select Save.
1. Pre-authorize a payment
To start the pre-authorization payment flow, make a Terminal API payment request with an authorization type of PreAuth:-
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
The customer presents their card to the payment terminal. The terminal collects the payment details and sends the request for the original amount to the Adyen payments platform for processing. -
The standard
-
Check the response. If the pre-authorization is successful:
- The terminal shows the transaction is approved.
-
The payment result contains:
-
POIData.POITransactionID.TransactionID: Transaction identifier for the payment, in the format tender_reference.PSP_reference. -
PaymentResult: payment method data including:AmountsResp: theAuthorizedAmountandCurrencyof the pre-authorized payment.
-
Response.Result: Success -
Response.AdditionalResponse: additional transaction data. Depending on the format you used in the request, you receive either a string of form-encoded key-value pairs or a Base64 string that you need to decode to get a JSON object. This includes:posadditionalamounts.originalAmountValue: the original amount in minor units.authorisedAmountValue: the authorized amount in minor units, which at this stage is equal to the original amount.pspReference: the PSP reference of your pre-authorization request.adjustAuthorisationData: a blob with authorization data. You only receive this if the synchronous flow is enabled for your account.
-
-
Store the
pspReferenceand theadjustAuthorisationDatafrom theAdditionalResponsefor later use when adjusting the authorization or capturing the payment.


