Send a POST request to the following URL:
The `Content-Type` header must be:
A sample request must be JSON encoded:
"extra_data": "ORDER_ID=50, or any data that will help you identify the user, product or order",
Here are the request parameters for creating and order:
||What currency you want the payment to be in. available: DASH GBX XZC
||3-4 Chars. Ex: "DASH"
||The price in the selected currency "coin"
||a valid float number, without surrounding `"`. example:
0.5 . not "0.5"
||Optional if price_usd is set
||The price in USD. Wil be converted to the "coin" currency based on the market place at the time of
creating the order. is ignored if price_coin is set
||a valid float number, without surrounding `"`. example: 0.5 . not "0.5"
||Optional if price_coin is set
||Your (the seller) wallet address, all payments will end up here. Must be same currency as "coin"
||The URL which our server will call once a payment is successful
||a valid url
||Optional if ipn_email is set
||Your email,for manual order processing. we will send a message to this address about a
payment, and any extra data it might contain.
||a valid email
||Optional if ipn_url is set
||Minimum confirmations to declare this order as paid, default is 1, max is 6
The `createorder` response will be in JSON format, you will have to store the Id, and verify the data there that
it matches your request to eleminate any attacks.
Here are the `createorder` response:
||0 if creation of order fails. 1 if it is successful
||In case of a failed order creation, you will receive the reason here. This is meant for the
developer(you) and not the client.
||This must match your pay_to address as this is where the final payment will go.
||[show to customer] This is the wallet address you have to ask you customer to pay to.
||[show to customer] This is the currency that you custmer must pay in. Make sure it is the same
currency you requested
||[show to customer] This is the payment amount in the currency you requested, make sure it matches
price_coin if you have used it. or an amount close to price_usd converted to the currency you've
||[show to customer] Minimum confirmations required
||This order/request id. store it as it will be sent back in the IPN, will help you know what to
process for your customer in case you didn't use the extra_data field.