See also the
Dispute response object.
You can only accept disputes that have a
Open. If you have already issued a refund for the disputed transaction, do not accept the dispute – instead, submit file or text evidence of the refund.
result = gateway.dispute.accept("a_dispute_id")
If the dispute is successfully accepted, the result will be successful. Otherwise, check for validation errors.
if result.success? # dispute successfully accepted else p result.errors end
If the dispute can't be found, it will raise a
The unique dispute identifier. You can only accept disputes that have a