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.
- Ruby
result = gateway.dispute.finalize("a_dispute_id")
If the dispute is successfully finalized, the result will be successful. Otherwise, check for validation errors.
- Ruby
if result.success?
# dispute successfully finalized
else
result.errors.each do |error|
puts error.code
puts error.message
end
end
Arguments
dispute_id
required, StringThe unique dispute identifier. You can only finalize disputes that have a status
of OPEN.