Skip to content

Instantly share code, notes, and snippets.

@nakedible-p
Created January 31, 2019 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nakedible-p/f73d4d21e220342c5c4c02061cbd644b to your computer and use it in GitHub Desktop.
Save nakedible-p/f73d4d21e220342c5c4c02061cbd644b to your computer and use it in GitHub Desktop.
const c = new WebSocket(
'wss://api.poplatek.com/api/v2/terminal/35516/jsonpos',
['jsonrpc2.0']
);
c.send(
JSON.stringify({
jsonrpc: '2.0',
method: 'Purchase',
params: { amount: 150, currency: 978, receipt_id: 15335 }
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment