Transaction
Transaction: Adjust Authorization
Note
Authorization and capture can incur merchant fees in some markets. For more information, see your
Braintree User Agreement.
- 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(…)
BigDecimalThe adjusted amount to be authorized for the transaction. This value must be greater than 0 and can't be same as current authorized amount of the transaction, and must match the currency format of the merchant account.