Skip to content

BitCoen Payments API

Andrey Nedobylsky edited this page Aug 11, 2018 · 2 revisions

Integration of payments Bitcoin is extremely simple. Only one API method is needed for accepting payments:

http(s)://pay.bitcoen.io/createDeposit/

GET or POST params:

  • callback - The http or https address which will be called when deposit will be recived. See below
  • receiverAddress - Full BitCoen address to which the funds will be transferred

Returns JSON structure

  • status- "ok" or "error"
  • data - If status = "ok" contain deposit information
    • params - Object with request params
    • wallet - Information about generated wallet
      • id - Wallet Full address. Show this address to user.
      • block - Wallet block. You can create tiny address by concatenation "BL_" prefix and block number. (for example: BL_11)
      • keysPair - Contain ONLY public key
        • public - Wallet public key

Callback

The URL of the callback on your site or on the server of your application will be POST with these parameters:

  • amount - Transfer amount in BEN
  • mil - Transfer amount in Mil
  • address - Address, generated by createDeposit method
  • receiverAddress - Your address

Misc

Additional information:

  • Transaction may take a 20-30 minutes
  • Calling createDeposit may take up to 30 seconds

Clone this wiki locally