ScenarioBen and his family check into a hotel for a 5 night/6 day vacation, billed at $300 per night including tax. When they check in, Clearpath Payments
authorizes Ben’s
card for the anticipated total of $1,500 on behalf of the hotel, but does not capture it right away. During their stay, Ben and his family eat at the hotel’s numerous restaurants, have a spa day, and use the hotel laundry services, and each time charges the amount to the room.
At the end of the stay, Ben is presented a final hotel bill of $2,500 showing the price of the room plus the $1,000 spent during their stay.
At the end of the stay, Ben is presented a final hotel bill of $2,500 showing the price of the room plus the $1,000 spent during their stay.
Because the original authorization hasn’t been captured, the hotel will submit an incremental authorization for the additional $1,000 before capturing the full $2,500.
Steps
-
Retrieve the
paymentIdfrom the original authorization you need to increment. This is how we link the incremental authorization to its original authorization. -
Call the incrementAuthorization mutation and pass in the required inputs:
- Upon the incremental authorization’s approval, capture the transaction the final transaction amount.