Retrying a failed payment can be done in two ways.
use_wire parameter to
true indicates the failed payment will be retried using a wire. Note that only debit payments can be retried using wires. The wire details for this retry attempt are provided in the
wire_details object in the first (most recent) payment attempt after the
/retry endpoint is called.
bank_account parameter indicates the failed payment will be retried using a new bank account. Both credits and debits may be retried using a new bank account.
Note that the
can_retry field on the Payment object communicates whether a payment can be retried. We recommend relying on this field to determine whether a retry is possible.