See also the
Dispute response object.
You can only finalize disputes that have a
Open. This will submit the evidence to the banks and update the status to
result = gateway.dispute.finalize("a_dispute_id")
If the dispute is successfully finalized, the result will be successful. Otherwise, check for validation errors.
if result.is_success: # dispute successfully finalized else: for error in result.errors.deep_errors: print(error.code) print(error.message)
If the dispute can't be found, it will throw a
The unique dispute identifier. You can only finalize disputes that have a