Skip to content

Instantly share code, notes, and snippets.

View mromarreyes's full-sized avatar
🏠
Working from home

Omar Reyes mromarreyes

🏠
Working from home
View GitHub Profile
@mromarreyes
mromarreyes / clover refund bug
Created January 7, 2017 20:26
Clover refund fails but the refund appears in the clover transactions app
Navigated to https://dev.petexec.net/admin/ownerRefund.php?uid=3&orderId=13110921
ownerRefund.js:6197 debug Server responded with information on how to contact device. Opening communication channel...
ownerRefund.js:6197 debug contacting device
ownerRefund.js:6197 debug Contacting url - wss://api.clover.com/support/remote_pay/cs?token=C030UQ55171799&friendlyId=J8VXFMBBFX2FX&forceConnect=false
ownerRefund.js:6197 debug this.deviceSocket = [object WebSocket]
ownerRefund.js:6197 debug deviceSocket.onopen
ownerRefund.js:6197 debug Event {isTrusted: true, type: "open", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…}
ownerRefund.js:6197 debug sendMessage RemoteMessage {id: "s0", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "DISCOVERY_REQUEST", payload: "{"method":"DISCOVERY_REQUEST","version":0}"…}
ownerRefund.js:6197 debug sendMessage RemoteMessage {id: "s1", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "REFUND_REQUEST", payload: "{"met
confirmation.js:6197 debug Server responded with information on how to contact device. Opening communication channel...
confirmation.js:6197 debug contacting device
confirmation.js:6197 debug Contacting url - wss://apisandbox.dev.clover.com/support/remote_pay/cs?token=C030UQ53430379&friendlyId=6MA0CSKVR8V5N&forceConnect=false
confirmation.js:6197 debug this.deviceSocket = [object WebSocket]
confirmation.js:6197 debug deviceSocket.onopen
confirmation.js:6197 debug Event {isTrusted: true, type: "open", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…}
confirmation.js:6197 debug sendMessage RemoteMessage {id: "s0", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "DISCOVERY_REQUEST", payload: "{"method":"DISCOVERY_REQUEST","version":0}"…}
confirmation.js:6197 debug sendMessage RemoteMessage {id: "s1", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "TX_START", payload: "{"method":"TX_START","version":0,"payIntent":{"act…Prompt":false,"requires
debug Server responded with information on how to contact device. Opening communication channel...
debug contacting device
debug Contacting url - wss://apisandbox.dev.clover.com/support/remote_pay/cs?token=[MY_MINI_SERIAL]&friendlyId=[MY_FRIENDLY_ID]&forceConnect=false
debug this.deviceSocket = [object WebSocket]
debug deviceSocket.onopen
debug Event {isTrusted: true, type: "open", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…}
debug sendMessage RemoteMessage {id: "s0", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "DISCOVERY_REQUEST", payload: "{"method":"DISCOVERY_REQUEST","version":0}"…}
debug sendMessage RemoteMessage {id: "s1", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "TX_START", payload: "{"method":"TX_START","version":0,"payIntent":{"act…Prompt":false,"requiresRemoteConfirmation":true}}"…}
debug sendMessage RemoteMessage {id: "s2", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "TX_START",
Navigated to https://omar.petexec.net/admin/confirmation.php?orderId=12645249
debug Server responded with information on how to contact device. Opening communication channel...
debug contacting device
debug Contacting url - wss://apisandbox.dev.clover.com/support/remote_pay/cs?token=[MY_MINI_SERIAL]&friendlyId=[MY_FRIENDLY_ID]&forceConnect=false
debug this.deviceSocket = [object WebSocket]
debug deviceSocket.onopen
debug Event {isTrusted: true, type: "open", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…}
debug sendMessage RemoteMessage {id: "s0", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "DISCOVERY_REQUEST", payload: "{"method":"DISCOVERY_REQUEST","version":0}"…}
debug sendMessage RemoteMessage {id: "s1", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "TX_START", payload: "{"method":"TX_START","version":0,"payIntent":{"act…Prompt":false,"requiresRemoteConfirmation":true}}"…}
debug Object {id: "10732", method: "TX_START_RESPONSE",
Navigated to https://omar.petexec.net/admin/confirmation.php?orderId=12645249
debug Server responded with information on how to contact device. Opening communication channel...
debug contacting device
debug Contacting url - wss://apisandbox.dev.clover.com/support/remote_pay/cs?token=[MY_MINI_SERIAL]&friendlyId=[MY_FRIENDLY_ID]&forceConnect=false
debug this.deviceSocket = [object WebSocket]
debug deviceSocket.onopen
debug Event {isTrusted: true, type: "open", target: WebSocket, currentTarget: WebSocket, eventPhase: 2…}
debug sendMessage RemoteMessage {id: "s0", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "DISCOVERY_REQUEST", payload: "{"method":"DISCOVERY_REQUEST","version":0}"…}
debug sendMessage RemoteMessage {id: "s1", type: "COMMAND", packageName: "com.clover.remote.protocol.websocket", method: "TX_START", payload: "{"method":"TX_START","version":0,"payIntent":{"act…Prompt":false,"requiresRemoteConfirmation":true}}"…}
debug Object {id: "10707", method: "TX_START_RESPONSE",