Transaction
Transaction: Adjust Authorization
See also the Transaction response object.
After creating a transaction, the authorized amount of the transaction can be adjusted.
You can only adjust authorization for transactions that have a status of authorized. The required information is the transaction ID and the amount.
When a transaction is submitted for adjust authorization , if the new authorizing amount is less than the original authorized amount, we attempt a partial reversal to reverse the difference back to the cardholder. If the new authorizing amount is greater than the original authorized amount, we attempt an incremental authorization to increase the authorized amount.
- Java
TransactionRequest transactionRequest = new TransactionRequest().amount(new BigDecimal("10.00"))
Result<Transaction> result = gateway.transaction().adjustAuthorization("the_transaction_id", transactionRequest);
if (result.isSuccess()) {
Transaction adjustedTransaction = result.getTarget();
} else {
System.out.println(result.getErrors());
}
Arguments
transactionId
required, stringThe unique transaction identifier. You can only adjust authorization of transactions that have a status of AUTHORIZED.
Additional Parameters
.amount(…)
BigDecimal