In today’s e-commerce world, crypto payments play a significant role in managing transactions among customers and merchants online.
Our Coinremitter has provided its customers with one of the fastest services and for that quickest services, it does have integrations with some of the plugins such as Laravel.
Coinremitter has provided its customers with one of the fastest services and for that quickest services, it does have integrations with some of the plugins such as Laravel.
These are the most powerful plugins in their respective ways.
Though, Coinremitter helps users to Integrate Coinremitter In Laravel by using specific websites. You can install the plugin Coinremitter by using the Laravel composer.
Also, Laravel integration will mostly be performed in the code language. Perhaps, that's the only way to integrate coinremitter into Laravel.
Here is the installation procedure for integrating Coinremitter into Laravel:
You can install Coinremitter plugin using Larval composer:
composer require coinremitter/laravel
Add Coinremitter\CoinremiterServiceProvider: class line at the bottom in the providers array
'providers' => [
Coinremitter\CoinremiterServiceProvider::class,
]
php artisan vendor:publish
If this file doesn't exist then create and set configuration like this. How to get Password and API key?
return [
'BTC'=>[
'API_KEY'=>'YOUR_API_KEY_FROM_COINREMITTER_WALLET',
'PASSWORD'=>'YOUR_PASSWORD_FOR_WALLET',
],
'LTC'=>[
'API_KEY'=>'YOUR_API_KEY_FROM_COINREMITTER_WALLET',
'PASSWORD'=>'YOUR_PASSWORD_FOR_WALLET',
],
];
You must include package namespace wherever you prefer to use this library, such as,
use Coinremitter\Coinremitter;
After using the namespace to access all library methods by creating class objects like,
$btc_wallet = new Coinremitter('BTC');
Here "BTC" must be in config/coinremitter.php file array.
Get the balance of your wallet using a get_balance call.
$balance = $btc_wallet->get_balance();
This will return either a response to success or a response to error if anything went wrong.
{
"Flag":1,
"msg":"Get balance successfully !",
"Action":"get-balance",
"Data":{
"Balance":123
}
}