PHP code example of mnpy / mnpy-php-api-sdk

1. Go to this page and download the library: Download mnpy/mnpy-php-api-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mnpy / mnpy-php-api-sdk example snippets


$transaction = new Transaction('API_KEY');

$transaction->setApiKey('API_KEY');

public function create(string $merchant_name, float $price, string $address, string $redirect_url, array $options);

$tx = $transaction->create(
   'MNPY Store',
   100,
   '0x960819D261AbaF8df1F7cc0b8Cb5CaA30410cC6f',
   'https://mnpy.io/',
   [
        'fee'  => 5,
        'code' => 'VEN'
   ]
);

$tx = $transaction->get($tx->uuid);

echo $tx->status;

$ composer