Dispute
Dispute: Finalize
See also the Dispute response object.
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.
- Java
Result<Dispute> result = gateway.dispute().finalize("a_dispute_id");
If the dispute is successfully finalized, the result will be successful. Otherwise, check for validation errors.
- Java
if (result.isSuccess()) {
// dispute successfully finalized
} else {
for (ValidationError error : result.getErrors().getAllDeepValidationErrors()) {
System.out.println(error.getCode());
System.out.println(error.getMessage());
}
}
Arguments
disputeId
required, stringThe unique dispute identifier. You can only finalize disputes that have a getStatus()
of OPEN.