Login:  Password:  

TRADE

VOTE

SUPPORT

Merchant documentation


C-CEX merchant service lets you sell your goods and services for any coin we have.
We accept payment for your goods, confirm it, and deposit it to your account.
To initiate the payment you just need to put this form on your site:

Checkout form:

<form method="post" action="https://c-cex.com/m.html?m=Your_merchat_key">
<input type="hidden" name="coin" value="doge">
<input type="hidden" name="amount" value="1.122">
<input type="hidden" name="purchase_name" value="Pink Elephant">
<input type="hidden" name="purchase_id" value="PinkElephant123">
<input type="submit" value="Proceed to checkout">
</form>


"Your_merchat_key" - take it from Your profile
"coin" - coin name
"amount" - amount of coins to pay
"purchase_name" - name of product to purchase
"purchase_id" - unique ID of product to purchase

Return URL (setup in Your profile):

When needed amount of coins confirmed on purchase user will see "Return to shop" link. This is Your "Return URL" link.
It will be appended with "ccexmpurchaseid" parameter which is Your unique ID of product to purchase. "result" will be equal to "1" if "Return to shop" link clicked, or "0" if "Cancel purchase" button clicked

Secret URL call (setup in Your profile):

When customer's deposits cover needed amount there will be automatic call to secret URL with following parameters:
"ccexmid" - C-CEX merchant's unique ID of transaction
"ccexmcoin" - coin name
"ccexmamount" - amount of coins paid
"ccexmpurchaseid" - unique ID of purchased product

Payment verification:

After Your secret URL called You have to verify payment by requesting: https://c-cex.com/m.html?qid=12345&qpid=ABCDE where qid is C-CEX merchant's unique ID of transaction and qpid is unique ID of purchased product
Result of this call will be Json string:

{"return":{"total":"xx","coin":"xx","ccexmid":"xx","ccexmpurchaseid":"xx"}}

"total" - amount of coins
"coin" - coin name
"ccexmid" - C-CEX merchant's unique ID of transaction
"ccexmpurchaseid" - unique ID of purchased product

If "total" = "-1" that means wrong transaction or failed payment.

Please, use this sticker on your page: