Download the PHP package cryptopay-dev/cryptopay without Composer
On this page you can find all versions of the php package cryptopay-dev/cryptopay. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cryptopay-dev/cryptopay
More information about cryptopay-dev/cryptopay
Files in cryptopay-dev/cryptopay
Package cryptopay
Short Description Cryptopay API client
License MIT
Homepage https://business.cryptopay.me
Informations about the package cryptopay
Cryptopay PHP Library
The official PHP library for the Cryptopay API.
Cryptopay is a payment gateway and business wallet that allows merchants to automate the processes of accepting cryptocurrency payments and payouts from their customers, as well as making currency exchange transactions and receiving data on the transaction history and account balance statuses for reporting.
For more information, please visit Cryptopay API docs.
Table of contents
- Installation
- Configuration
- Usage
- Accounts
- Channels
- CoinWithdrawals
- Coins
- Customers
- ExchangeTransfers
- Invoices
- Rates
- Risks
- Subscriptions
- Transactions
- Callbacks
Installation
Requirements
- PHP 7.4+
Composer
You can install the library via Composer. Run the following command:
To use the library, use Composer's autoload:
Configuration
Create API credentials
Learn mode about API credentials at Developers guide.
Configure library
Example: examples/Init.php
Usage
Accounts
List accounts
List account transactions
Channels
A channel is a static cryptocurrency address that may be assigned to each one of your customers.
List channels
Create a channel
List channel payments
Retrieve a channel
Retrieve a channel by custom id
Retrieve a channel payment
Update a channel
CoinWithdrawals
In addition to accepting payments through the Cryptopay payment gateway, it is also possible to make payments to your customers in any of the cryptocurrency currently supported by Cryptopay. In Cryptopay, these payments are called “Coin Withdrawal”. The process of requesting coin withdrawal is almost the same for a customer in Cashier as the process of making a deposit with one exception - the customer will need to specify the address of the wallet he wants to send the cryptocurrency to.
List withdrawals
Commit a withdrawal
Create a withdrawal
List network fees
Retrieve a withdrawal
Retrieve a withdrawal by custom id
Coins
List supported coins
Customers
Customer objects allow you to reject High-Risk transactions automatically, and to track multiple transactions, that are associated with the same customer.
List customers
Create a customer
Retrieve a customer
Update a customer
ExchangeTransfers
Commit an exchange transfer
Create an exchange transfer
Retrieve an exchange transfer
Invoices
An invoice is a request for a cryptocurrency payment which contains a unique BTC, LTC, ETH or XRP address and the amount that has to be paid while the invoice is valid.
List invoices
Commit invoice recalculation
Create an invoice
Create invoice recalculation
Create invoice refund
List invoice refunds
Retrieve an invoice
Retrieve an invoice by custom_id
Rates
Retrieve all rates
Retrieve a pair rate
Risks
Score a coin address
Subscriptions
List subscriptions
Cancel a subscription
Create a subscription
Retrieve a subscription
Retrieve a subscription by custom_id
Transactions
List transactions
Callbacks
All callbacks needs to be validated with signature
If the signature is wrong, the package validation will throw ForbiddenException. Otherwise, it will return object.
All versions of cryptopay with dependencies
guzzlehttp/guzzle Version ^7.2
ext-json Version *
vlucas/phpdotenv Version ^5.2