question

radhamanickam avatar image
radhamanickam asked David Marginian Deactivated answered

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.

semi-integrationsClover Flexsecure network pay display
9 comments
10 |2000

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

David Marginian avatar image David Marginian ♦♦ commented ·

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 ♦♦ commented ·

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

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

I am not able to fetch any logs from the device

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

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 Deactivated answered

The developer was passing the externalPaymentId instead of the paymentId.

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