Download the PHP package coinremitter/laravel without Composer
On this page you can find all versions of the php package coinremitter/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download coinremitter/laravel
More information about coinremitter/laravel
Files in coinremitter/laravel
Package laravel
Short Description Official laravel plugin for Coinremitter cryptocurrency payment gateway
License MIT
Homepage https://coinremitter.com/
Informations about the package laravel
CoinRemitter Plugin For Laravel
Coinremitter is a crypto payment processor. Accept Bitcoin, Bitcoin Cash, Litecoin, Dogecoin, Dash, Tron, Binance ,Tether USD ERC20,Tether USD TRC20 etc.View all supported currency here.
What is the Crypto Payment Processor?
The Crypto Payment Processor acts as a mediator between merchants and customers, allowing the merchant to receive payments in the form of cryptocurrency.
If you want to use coinremitter API then refer this api documentation.
Prerequisites
- A minimum of PHP 7.2 upto 8.4.
- Laravel Framework Installed.The plugin supports Laravel version 7.x upto 11.x
- Make sure Composer is installed globally. It is required to manage dependencies.
Installation Guide
You can install Coinremitter’s plugin using the composer in Laravel:
Register service provider for Laravel 10.x and earlier like below:
- In
config/app.php
Add line at the bottom in the array
Register service provider for Laravel 11.x like below:
- In
bootstrap/providers.php
Add line in array
Publish the configuration file to the config folder using the following command:
Set credentials of all coins which you want to use from coinremitter in config/coinremitter.php like this: If this file does not exist then create and set configuration like this. How to get API key and Password ?
NOTE: Include specific coins in coinremitter.php that you wish to utilize in your system.
Usage
You have to include the namespace of the package wherever you want to use this library like this:
after using name space you can access all the methods of library by creating object of class like,
NOTE: Here "BTC" must be in config/coinremitter.php file coins array.
Here’s an example using BTC
as the currency. You can replace it with your desired currency's short name.
E.g. To create invoice of Litecoin
. Use LTC
short name.
To find the short names of supported currencies,you can refer to this page or retrieve them using the Supported Currencies API.
Get Wallet Balance
You can get the balance of your wallet using the getBalance call.
This will return either a success response or an error response if something went wrong.The success response is as shown below:
Create Wallet Address
You can get a new wallet address using the following method:
Success response :
Validate Wallet Address
For validation of the wallet address, use the following method:
Success response :
Estimate Withdrawal Cost
To calculate fees for various withdrawal speeds, use following method will be used:
Success response:
Withdraw Wallet Balance
To withdraw the amount to a specific address the following method will be used:
Success response:
The dates received in the response are in the UTC format.
Get Transaction
To retrieve transaction information using the ID received from the Withdraw Wallet Balance
response's id or from the "id" field in the webhook using the following method.
Success response:
if reponse data object contains is equal to then the response will be given as shown below:
The dates received in the response are in the UTC format.
Get Transaction By The Address
Get the transaction using the address received using the following method:
Success response :
The dates received in the response are in the UTC format.
Create Invoice
You can create an invoice using the following method:
Success response:
The dates received in the response are in the UTC format.
Get Invoice
Get invoice details using invoice_id received using the following method:
Success response:
The dates received in the response are in the UTC format.
Fiat to crypto rate
To get fiat to crypto rate.
Success response :
Crypto To Fiat Rate
To convert crypto rate into fiat rate.
Success response :
Get Supported currency
To get all supported currency and their detail.
Success response :