Process of Integrating Coinremitter Plugin Into PHP


Integrate Coinremitter In Php

PHP is one of the broadly used platforms for e-commerce websites. PHP is a stable, fast, and trusted language. Today countless e-commerce websites are running on PHP.

A smoothly operating portal to payments is essential to running a business with a significant online presence.

You can easily integrate crypto-coins into your own website or app with our Coiremitter PHP plugin, after installation you can start accepting crypto-payments.

To integrate the Coinremitter payment gateway into your PHP website,

you need to implement the following steps below:

01. Configuration Guide:

You can install the plugin Coinremitter using the composer in your project using:

composer require coinremitterphp/coinremitter-php

02. Library Usage:

You must have to include package namespace anywhere you wish to use this library, such as:

include_once './vendor/autoload.php';

use CoinRemitter\CoinRemitter;

You can control all the library methods by creating a class object such as,

$params = [
   'coin'=>'BTC',//coin for which you want to use this object.
   'api_key'=>'YOUR_API_KEY',//api key from coinremitter wallet
   'password'=>'PASSWORD' // password for selected wallet

$obj = new CoinRemitter($params);

03. Get Balance:

you can get your wallet balance by using “get_balance call”

$balance = $obj->get_balance();

It will return either a positive response or an answer to an error if anything goes wrong.

Below you can check the success response:

    "msg":"Get balance successfully !",