question

mtt avatar image
mtt asked hammer answered

remote-pay-cloud allow customer to select receipt method

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...');
};
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

hammer avatar image
hammer answered

This was fixed in a very recent (today) version of remote-pay-cloud. Please see version 1.1.0-rc6.0, published to NPM.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community