question

jasper avatar image
jasper asked jasper commented

Issues with refund on Sandbox US merchant

We just did a sanity test yesterday and all worked. We are using the semi-integrated solution with a terminal and a US merchant. This morning we are experiencing some weird replies doing a refund after a payment.

{"errors":[{"title":{"success":false,"result":"FAIL","reason":"FAIL","message":"Could not find gateway info for merchant with id: 35285 and payment with id: 3925827537","orderId":"J8ZG***********","paymentId":"4YQZ0V**********"}}]}

Merchant id 35285 is totally unfamiliar

Payment id 3925827537 is totally unfamiliar

The obfuscated id is ours though.

Payment and void works fine.

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

This should be resolved now.

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

This issue should be resolved for all new payments, payments take in a window including Feb 1-2 will still have issues being refunded.

10 |2000

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

jasper avatar image
jasper answered jasper commented

I just did a fresh payment and refund today. The issue seems to persist.

[2022-02-04T07:34:24.200Z] debug Sending RefundPaymentResponse notification to listeners

[2022-02-04T07:34:24.201Z] RefundPaymentResponse {

_class_: <ref *1> [Function: RefundPaymentResponse] {

_meta_: { fields: [Object], _class_: [Circular *1], _superMeta_: [Object] }

},

success: false,

result: 'FAIL',

reason: 'FAIL',

message: 'Could not find gateway info for merchant with id: 35285 and payment with id: 3925830615',

_superClass_: <ref *2> [Function: BaseResponse] {

_meta_: { fields: [Object], _class_: [Circular *2] }

},

orderId: 'SDFF9P*******',

paymentId: 'XMD69DJY********',

refund: undefined

}


This is the communication going on just before .....

[2022-02-04T07:34:21.597Z] info Connection attempt complete.

[2022-02-04T07:34:22.085Z] debug Open...

[2022-02-04T07:34:22.087Z] debug Connected

[2022-02-04T07:34:22.089Z] debug Sending Connect notification to listeners

[2022-02-04T07:34:22.090Z] debug Sending: {"id":"6","type":"COMMAND","packageName":"com.clover.remote.protocol.websocket","method":"DISCOVERY_REQUEST","payload":"{\"method\":\"DISCOVERY_REQUEST\",\"messageId\":\"6\",\"version\":0,\"supportsOrderModification\":false}","remoteSourceSDK":"com.clover.cloverconnector.cloud:4.1.2","remoteApplicationID":"J9HX*******.BHGPK********","version":1}

[2022-02-04T07:34:22.571Z] debug DefaultCloverDevice, handling remote message receipt. Message: {"attachment":null,"attachmentEncoding":null,"attachmentUri":null,"authentication":null,"directed":false,"fragmentIndex":null,"id":"3692","idempotencyKey":null,"lastFragment":null,"method":"ACK","packageName":"com.clover.remote.protocol.websocket","payload":"{\"METHOD_TYPE\":\"ACK\",\"method\":\"ACK\",\"reason\":null,\"rejected\":false,\"sourceMessageId\":\"6\",\"sourceMethod\":\"DISCOVERY_REQUEST\"}","remoteApplicationID":"com.clover.remote.protocol.websocket:1.0-414","remotePayCompatibilityVersion":1,"remoteSourceSDK":"com.clover.internal.apps","resultInfo":null,"type":"COMMAND","version":2}.

[2022-02-04T07:34:22.589Z] debug DefaultCloverDevice, handling remote message receipt. Message: {"attachment":null,"attachmentEncoding":null,"attachmentUri":null,"authentication":null,"directed":false,"fragmentIndex":null,"id":"3693","idempotencyKey":null,"lastFragment":null,"method":"DISCOVERY_RESPONSE","packageName":"com.clover.remote.protocol.websocket","payload":"{\"merchantId\":\"H2E8******\",\"merchantMId\":\"RCTST000******\",\"merchantName\":\"Oc**'*\",\"model\":\"Clover_C403\",\"name\":\"Flex(2nd Generation)\",\"ready\":true,\"serial\":\"C043EQ118******\",\"supportsAcknowledgement\":true,\"supportsAuth\":true,\"supportsManualRefund\":true,\"supportsMultiPayToken\":true,\"supportsPreAuth\":true,\"supportsTipAdjust\":true,\"supportsVaultCard\":true,\"supportsVoidPaymentResponse\":true,\"method\":\"DISCOVERY_RESPONSE\",\"version\":1}","remoteApplicationID":"com.clover.remote.protocol.websocket:1.0-414","remotePayCompatibilityVersion":1,"remoteSourceSDK":"com.clover.internal.apps","resultInfo":null,"type":"COMMAND","version":2}.

[2022-02-04T07:34:22.593Z] debug Got a Discovery Response

[2022-02-04T07:34:22.594Z] info 2022-02-04T07:34:22.588Z - Stopping reconnect loop.

[2022-02-04T07:34:22.595Z] info 2022-02-04T07:34:22.589Z - Executing device heartbeat check ...

[2022-02-04T07:34:22.596Z] debug Sending: {"type":"PING","packageName":"com.clover.remote.protocol.websocket","remoteSourceSDK":"com.clover.cloverconnector.cloud:4.1.2","remoteApplicationID":"J9HXA*******.BHGPK******"}

[2022-02-04T07:34:22.596Z] debug Ready

[2022-02-04T07:34:22.597Z] debug Sending Ready notification to listeners

[2022-02-04T07:34:22.599Z] debug Sending: {"id":"7","type":"COMMAND","packageName":"com.clover.remote.protocol.websocket","method":"REFUND_REQUEST","payload":"{\"method\":\"REFUND_REQUEST\",\"messageId\":\"7\",\"version\":2,\"fullRefund\":true,\"amount\":null,\"orderId\":\"SDFF9P3******\",\"paymentId\":\"XMD69D******\"}","remoteSourceSDK":"com.clover.cloverconnector.cloud:4.1.2","remoteApplicationID":"J9HXA4B******.BHGPKS********","version":2}

[2022-02-04T07:34:22.992Z] debug DefaultCloverDevice, handling remote message receipt. Message: {"attachment":null,"attachmentEncoding":null,"attachmentUri":null,"authentication":null,"directed":false,"fragmentIndex":null,"id":null,"idempotencyKey":null,"lastFragment":null,"method":null,"packageName":"com.clover.remote.protocol.websocket","payload":null,"remoteApplicationID":null,"remotePayCompatibilityVersion":1,"remoteSourceSDK":null,"resultInfo":null,"type":"PONG","version":2}.

[2022-02-04T07:34:22.995Z] debug Received pong 2022-02-04T07:34:22.991Z

[2022-02-04T07:34:23.104Z] debug DefaultCloverDevice, handling remote message receipt. Message: {"attachment":null,"attachmentEncoding":null,"attachmentUri":null,"authentication":null,"directed":false,"fragmentIndex":null,"id":"3694","idempotencyKey":null,"lastFragment":null,"method":"ACK","packageName":"com.clover.remote.protocol.websocket","payload":"{\"METHOD_TYPE\":\"ACK\",\"method\":\"ACK\",\"reason\":null,\"rejected\":false,\"sourceMessageId\":\"7\",\"sourceMethod\":\"REFUND_REQUEST\"}","remoteApplicationID":"com.clover.remote.protocol.websocket:1.0-414","remotePayCompatibilityVersion":1,"remoteSourceSDK":"com.clover.internal.apps","resultInfo":null,"type":"COMMAND","version":2}.

[2022-02-04T07:34:24.170Z] debug DefaultCloverDevice, handling remote message receipt. Message: {"attachment":null,"attachmentEncoding":null,"attachmentUri":null,"authentication":null,"directed":false,"fragmentIndex":null,"id":"3695","idempotencyKey":null,"lastFragment":null,"method":"REFUND_RESPONSE","packageName":"com.clover.remote.protocol.websocket","payload":"{\"code\":\"FAIL\",\"message\":\"Could not find gateway info for merchant with id: 35**** and payment with id: 392*****\",\"orderId\":\"SDFF9P*****\",\"paymentId\":\"XMD69******\",\"reason\":\"FAIL\",\"method\":\"REFUND_RESPONSE\",\"version\":1}","remoteApplicationID":"com.clover.remote.protocol.websocket:1.0-414","remotePayCompatibilityVersion":1,"remoteSourceSDK":"com.clover.internal.apps","resultInfo":null,"type":"COMMAND","version":2}.

[2022-02-04T07:34:24.195Z] debug DefaultCloverDevice, handling remote message receipt. Message: {"attachment":null,"attachmentEncoding":null,"attachmentUri":null,"authentication":null,"directed":false,"fragmentIndex":null,"id":"3696","idempotencyKey":null,"lastFragment":null,"method":"FINISH_CANCEL","packageName":"com.clover.remote.protocol.websocket","payload":"{\"method\":\"FINISH_CANCEL\",\"version\":1}","remoteApplicationID":"com.clover.remote.protocol.websocket:1.0-414","remotePayCompatibilityVersion":1,"remoteSourceSDK":"com.clover.internal.apps","resultInfo":null,"type":"COMMAND","version":2}.

[2022-02-04T07:34:24.199Z] debug Sending: {"id":"8","type":"COMMAND","packageName":"com.clover.remote.protocol.websocket","method":"SHOW_WELCOME_SCREEN","payload":"{\"method\":\"SHOW_WELCOME_SCREEN\",\"messageId\":\"8\",\"version\":0}","remoteSourceSDK":"com.clover.cloverconnector.cloud:4.1.2","remoteApplicationID":"J9HXA******.BHGPK******","version":2}

[2022-02-04T07:34:24.200Z] debug Sending RefundPaymentResponse notification to listeners

2 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 ·
Ok, we will continue to investigate. If you need to test refunds right now, I would recommend you run an auth (not a sale). I just tested with an auth and refunds are working fine (they don't work with sales).
0 Likes 0 ·
jasper avatar image jasper David Marginian ♦♦ commented ·

I have just tested it again this morning with a sale and now refund behaves fine. We are not using / supporting auth at the moment. I think you can close this one, have a nice day.

0 Likes 0 ·

Welcome to the
Clover Developer Community