Dispute: Accept
Availability
        Managing disputes via the API is only available to merchants who can access disputes in the
        Braintree Control Panel.
    
- PHP
 
$result = $gateway->dispute()->accept("a_dispute_id");- PHP
 
if ($result->success) {
    // dispute successfully accepted
} else {
    echo $result->errors;
}