Requirements
Before you begin, take into account the following requirements, limitations, and preparations.Risk with partial authorizations
When the issuer supports partial authorizations and the transaction succeeds, the terminal shows that the transaction is approved plus a warning that mentions how much was paid, out of the requested amount.
Because the transaction is approved, the warning may be overlooked, and the shopper may leave without having paid the full amount. Therefore, it is very important to ensure that your POS app alerts your staff to the fact that there is an amount remaining to be paid.
Consider configuring a capture delay. If the customer has second thoughts about the transaction, this gives you time to cancel the authorization before the amount is captured. This is easier than issuing a refund.
How it works
To use partial authorizations, you need to:-
Add the tender option AllowPartialAuthorisation to your payment request.
When the requested amount is higher than the amount available in the account, this tender option asks the issuer to return an authorization for the available amount instead of declining the transaction. -
Keep track of how much remains to be paid, and alert your staff.
The payment response returns the authorized amount. If this is less than the requested amount, you can make another payment request to let the shopper pay the remainder with another card or in cash. - In your reconciliation process, connect multiple partial authorizations to the same transaction.
Make the initial payment
To start a payment where partial authorization is possible:-
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.InSaleData.SaleToAcquirerData, specify the tender option in one of the following formats:
-
Option 1: a JSON object converted to a Base64 encoded string.
Encode{"tenderOption": "AllowPartialAuthorisation"}to Base64, and pass the resulting string:
"SaleToAcquirerData": "eyJ0ZW5kZXJPcHRpb24iOiAiQWxsb3dQYXJ0aWFsQXV0aG9yaXNhdGlvbiJ9" -
Option 2: a key-value pair:
"SaleToAcquirerData": "tenderOption=AllowPartialAuthorisation"
AdditionalResponsethat you receive. If there are more tender options (for example, ReceiptHandler ) or other data elements that you need to pass in theSaleToAcquirerDatafield, refer to Add information to a payment. -
Option 1: a JSON object converted to a Base64 encoded string.
-
The PaymentRequest.PaymentTransaction object with:
-
The standard
-
In the PaymentResponse, note the following:
Response.Result: If the payment was successful, Success indicates a full authorization, or Partial indicates a partial authorization.PaymentResult.AmountsResp.AuthorizedAmount: The amount that was authorized. This may be less than the requested amount.AdditionalResponse: ContainsposOriginalAmountValuewith the requested amount, andposAuthAmountValuewith the authorized amount.SaleData.SaleReferenceID: Your order number. If you are going to make another payment for the remainder, theSaleReferenceIDof that other payment must be based on this one.
-
If the
Response.Resultis Partial, make a follow-up payment or let the shopper pay the remainder in cash.
(Optional) Make a follow-up payment
If the initial partial authorization did not cover the full amount, you can follow up with another payment for the remainder:-
Calculate the remaining amount after the initial partial authorization: subtract the
AuthorizedAmountin the response from theRequestedAmountin the request.
Alternatively, you can calculate the remaining amount usingposAuthAmountValueandposOriginalAmountValuefrom theAdditionalResponse. -
Make a payment request, specifying:
-
The standard
SaleToPOIRequest.MessageHeaderobject, withMessageClassset to Service andMessageCategoryset to Payment.
-
The standard
-
When you receive the response, check if the
Response.Resultis now Success. That means the amount due is paid in full.
Test partial authorizations
You can test the partial authorization flow using an amount ending in 139:-
Make a payment request, including:
-
The SaleData object with:
-
The SaleData object with:
-
Check that the terminal indicates the transaction is approved and shows a warning about how much out of the requested amount was paid.
For example: ! 41.39 -
Check that the PaymentResponse contains the following:
-
PaymentResult.AmountsResp.AuthorizedAmount: A value of 1 less than the requested amount. For example, 40.39 if the requested amount was 41.39. -
Response.Result: Partial.
-
-
Make a second payment request for the remaining amount, with a
SaleReferenceIDthat allows you to identify the two partial authorizations as belonging together. -
In your Customer Area and/or reports, find the two partial authorizations by their Merchant Order. The Merchant Order corresponds to the
SaleReferenceIDfrom the payment requests.
