question

radhamanickam avatar image
radhamanickam asked ·

Making RefundPayment is causing the Secure Network Pay Display Crashing

Hello,

I am using Secure Network Pay Display app to run RefundPaymentRequest on a CreditSale. But the Secure Network Pay display app is crashing once we call CloverConnector.RefundPayment(request). May I know what had crashed the app, I have added my sample code here.


var refundRequest = new RefundPaymentRequest();
refundRequest.PaymentId = paymentID;
refundRequest.OrderId = originalPayment.order.id;
refundRequest.Amount = AmountTotal;
refundRequest.FullRefund = AmountTotal >= originalPayment.amount;
refundRequest.DisablePrinting = DisablePrinting;
refundRequest.DisableReceiptSelection = DisableReceiptOptions;
foreach (KeyValuePair<string, string> items in RegionalExtras)
    {
        refundRequest.Extras[items.Key] = items.Value;
    }

DeviceConnector.RefundPayment(refundRequest);


Thanks in advance.

Clover Flexsemi-integrationssecure network pay display
9 comments
10 |2000 characters needed characters left characters exceeded

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

Is this happening on a devkit? If so, can you check the device logs (adb logcat). Production? If so can you provide us with a device serial number.

0 Likes 0 · ·
radhamanickam avatar image radhamanickam David Marginian ♦♦ ·

Its happening on a devkit. I can check the logs.

0 Likes 0 · ·
radhamanickam avatar image radhamanickam David Marginian ♦♦ ·

I am not able to fetch any logs from the device

0 Likes 0 · ·

Why, that doesn't make any sense. What is the device serial?

0 Likes 0 · ·
Show more comments

1 Answer

David Marginian avatar image
David Marginian answered ·

The developer was passing the externalPaymentId instead of the paymentId.

Share
10 |2000 characters needed characters left characters exceeded

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