Create a Refund by Object

Facades: merchant

Overview

Creates a new refund request by passing a refund object.

Parameters

ParameterDescription
refundA Refund object

Example

Refund refund = new Refund();
refund.setInvoice("QrPWSMkq594kQfJex28S7X");
refund.setGuid("f281d1d1-5c35-4e28-89bc-031e771c787c");
refund.setAmount(1.0);
refund.setPreview = true;
refund.setImmediate = false;
refund.setBuyerPaysRefundFee = false;

bitpay.createRefund(refund);