Using remote-pay-cloud rc5
How do I allow customers to select the receipt method?
I see the "transaction was cancelled" screen for a few moments, then the receipt screen blinks just for a second not allowing me to select the receipt method for refunds.
I don't believe I have any code that automatically selects receipt methods. Do I need code that explicitly allows the options?
Here's my request:
Listener.prototype.onReady = function (merchantInfo) {
$('#status').show();
var refundRequest = new clover.remotepay.RefundPaymentRequest();
refundRequest.setOrderId(orderId);
refundRequest.setPaymentId(transactionId);
refundRequest.setFullRefund(true);
this.cloverConnector.refundPayment(refundRequest);
};
Listener.prototype.onRefundPaymentResponse = function(response) {
$('#status').html('Refunding payment...');
};