You can only finalize disputes that have a status
of OPEN
. This will submit the evidence to the banks and update the status to DISPUTED
.
PHP
Copy
Copied
$result = $gateway->dispute()->finalize("a_dispute_id");
If the dispute is successfully finalized, the result will be successful. Otherwise, check for validation errors.
PHP
Copy
Copied
if ($result->success) {
# dispute successfully finalized
} else {
echo $result->errors;
}
If the dispute can't be found, you'll receive a Braintree_Exception_NotFound
exception.
Arguments
disputeId
required, string
The unique dispute identifier. You can only finalize disputes that have a status
of OPEN
.