create Refund
suspend fun createRefund(request: RefundRequests.CreateRefundRequest): Pair<Refund?, NetworkingError?>
Creates a new refund for the specified charge intent.
Return
A pair containing the created Refund on success, or a NetworkingError on failure.
Parameters
request
The refund creation parameters, including the required charge intent ID.
fun createRefund(request: RefundRequests.CreateRefundRequest, completionHandler: (Refund?, NetworkingError?) -> Unit)
Creates a new refund for the specified charge intent and delivers the result via callback.
Parameters
request
The refund creation parameters, including the required charge intent ID.
completion Handler
Invoked with the created Refund on success, or a NetworkingError on failure.