Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 3.0.8.0
- * @ Author : DeZender
- * @ Release on : 25.09.2017
- * @ Official site : http://DeZender.Net
- *
- */
- class CoinPaymentsAPI
- {
- private $private_key = '';
- private $public_key = '';
- private $ch = null;
- public function Setup($private_key, $public_key)
- {
- $this->private_key = $private_key;
- $this->public_key = $public_key;
- $this->ch = NULL;
- }
- public function GetRates($short = true)
- {
- $short = (($short ? 1 : 0));
- return $this->api_call( 'rates', array( 'short' => $short ) );
- }
- public function GetBalances($all = false)
- {
- return $this->api_call( 'balances', array( 'all' => ($all ? 1 : 0) ) );
- }
- public function CreateTransactionSimple($amount, $currency1, $currency2, $buyer_email, $address = '', $ipn_url = '')
- {
- $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI = array(
- 'amount' => $amount,
- 'currency1' => $currency1,
- 'currency2' => $currency2,
- 'buyer_email' => $buyer_email,
- 'address' => $address,
- 'ipn_url' => $ipn_url
- );
- return $this->api_call( 'create_transaction', $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI );
- }
- public function CreateTransaction($req)
- {
- return $this->api_call( 'create_transaction', $req );
- }
- public function GetCallbackAddress($currency, $ipn_url = '')
- {
- $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI = array(
- 'currency' => $currency,
- 'ipn_url' => $ipn_url
- );
- return $this->api_call( 'get_callback_address', $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI );
- }
- public function CreateWithdrawal($amount, $currency, $address, $auto_confirm = false, $ipn_url = '')
- {
- $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI = array(
- 'amount' => $amount,
- 'currency' => $currency,
- 'address' => $address,
- 'auto_confirm' => ($auto_confirm ? 1 : 0),
- 'ipn_url' => $ipn_url
- );
- return $this->api_call( 'create_withdrawal', $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI );
- }
- public function CreateTransfer($amount, $currency, $merchant, $auto_confirm = false)
- {
- $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI = array(
- 'amount' => $amount,
- 'currency' => $currency,
- 'merchant' => $merchant,
- 'auto_confirm' => ($auto_confirm ? 1 : 0)
- );
- return $this->api_call( 'create_transfer', $_obfuscate_DSkPFBAzGTkOCwsBiwrHwsoCQ4kWzI );
- ........................................................................
- .........................................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement