CoinPayments
class CoinPayments (View source)
Properties
protected Credentials | $credentials | ||
protected RequestAgent | $requestAgent | ||
protected string|null | $ipnUrl | Optional URL for your IPN callbacks. |
Methods
CoinPayments constructor.
Get basic account info
Addresses returned by this API are for personal use deposits and reuse the same personal address(es) in your wallet. There is no fee for these deposits but they don't send IPNs.
Gets your current coin balances (only includes coins with a balance unless all = true).
Create a transaction
Get transaction information via transaction ID
No description
Creates an address for receiving payments into your CoinPayments Wallet.
Creates a withdrawal from your account to a specified address.
Creates a transfer from your account to a specified $PayByName tag.
Creates a transfer from your account to a specified merchant.
No description
No description
No description
No description
No description
No description
Details
at line 38
__construct(string $merchantID, string $publicKey, string $privateKey, string $ipnSecret)
CoinPayments constructor.
at line 94
ApiCall
getDepositAddress(string $currency)
Addresses returned by this API are for personal use deposits and reuse the same personal address(es) in your wallet. There is no fee for these deposits but they don't send IPNs.
For commercial-use addresses see 'get_callback_address'.
at line 107
ApiCall
getBalances(bool $all = false)
Gets your current coin balances (only includes coins with a balance unless all = true).
at line 123
ApiCall
createTransaction(float $amount, string $currencyIn, string $currencyOut, array $additional = [])
Create a transaction
at line 157
ApiCall
getTransactionInfo(string $txID, bool $all = true)
Get transaction information via transaction ID
at line 176
ApiCall
getTransactionsList(int|null $limit = null, int|null $start = null, int|null $newer = null, bool|null $all = null)
at line 196
ApiCall
getCallbackAddress(float $currency)
Creates an address for receiving payments into your CoinPayments Wallet.
at line 217
ApiCall
createWithdrawal(float $amount, string $currency, string $address, bool $autoConfirm = false)
Creates a withdrawal from your account to a specified address.
at line 241
ApiCall
sendToPayByName(float $amount, string $currency, string $pbnTag, bool $autoConfirm = false)
Creates a transfer from your account to a specified $PayByName tag.
at line 264
ApiCall
createTransfer(float $amount, string $currency, string $merchant, bool $autoConfirm = false)
Creates a transfer from your account to a specified merchant.
at line 286
ApiCall
queryAPI(string $command, array $parameters)
Makes a query to API Not recommended