PHP code example of paneedesign / flypme-bundle

1. Go to this page and download the library: Download paneedesign/flypme-bundle 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/ */

    

paneedesign / flypme-bundle example snippets



// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...

            new PaneeDesign\FlypMeBundle\PedFlypMeBundle(),
        ];

        // ...
    }

    // ...
}

$flypme = $this->get('ped_flyp_me.handler');

$flypme->orderNew("LTC", "ZEC", "0.02", "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt", "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T", "invoiced_amount");

$flypme->orderUpdate("1b5929e7-0e6c-44a6-a428-e4db856d880e", "LTC", "ZEC", "0.03", "t1SBTywpsDMKndjogkXhZZSKdVbhadt3rVt", "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T", "invoiced_amount");

$flypme->orderAccept("1b5929e7-0e6c-44a6-a428-e4db856d880e");

$flypme->orderCheck("1b5929e7-0e6c-44a6-a428-e4db856d880e");

$flypme->orderInfo("1b5929e7-0e6c-44a6-a428-e4db856d880e");

$flypme->orderCancel("1b5929e7-0e6c-44a6-a428-e4db856d880e");

$flypme->addRefund("fc0d5579-5921-4097-8e5c-7e5ec8e7a2ea", "LajyQBeZaBA1NkZDeY8YT5RYYVRkXMvb2T");

$flypme->dataExchangeRates();

$flypme->currencies();

// $flypme->orderLimits($fromCurrency, $toCurrency)
$flypme->orderLimits('BTC', 'ETH');