Cryptocurrency Payment Gateway Plugin Integration Into PHP

php-logo

PHP

Integrate Coinremitter In PHP

PHP is a widely-used platform for eCommerce websites. Because of its speed and stability, PHP is a trusted programming language. And because of these reasons, we can see plenty of eCommerce platforms running PHP.

Seeing PHP’s vast applications, we thought of providing a smoothly operating portal supporting a revolutionary crypto payment method. Merchants can integrate PHP crypto payment plugin and directly accept crypto payments from customers on your website.

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 a package namespace anywhere if 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,

                        
                            $btcWallet = new CoinRemitter('WALLET_API_KEY','WALLET_PASSWORD');
                        
                    

03. Get Wallet Balance:

You can get your wallet balance by using the “getBalance” call.

$balance = $btcWallet->getBalance();

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

Below you can check the successful response:


{
    "success": true,
    "data": {
        "wallet_id": "6746c765xxxxxxxxxxxxxx",
        "wallet_name": "BTC-wallet",
        "coin_symbol": "BTC",
        "coin": "Bitcoin",
        "coin_logo": "https://api.coinremitter.com/assets/images/coins/32x32/BTC.png",
        "blockchain_network_name": "Bitcoin Network",
        "contract_address": "",
        "contract_address_url": "",
        "explorer_url": "https://www.blockchain.com/explorer/transactions/btc/",
        "chain_id": "",
        "remaining_withdraw_limit_24h": "49",
        "balance": "1.73000000",
        "minimum_deposit_amount": "0.1"
    }
}