Help In setting up coinpayment laravel plug in

I am a beginner in Laravel and currently studying PHP Laravel And Javascript!
I love Laravel. But I am trying to install a Crypto currency script from GitHub

hexters /CoinPayment

I hit a stump on getting past the installation: al the files are in the Laravel/hexters/src
publish the vendor php artisan vendor:publish --tag=coinpayment no issues
then : php artisan coinpayment:install

But im not sure about the next instruction:

**

Create Button transaction. Example placed on your controller

**
Do I create a controller and put the code in the new controller file? how to I call the index file from the
hexters/coinpayment/modules/view folders??

Any help would be greatly appreciated!!

###########################################
use Hexters\CoinPayment\CoinPayment;
. . .
/*

  • @required true
    */
    $transaction[‘order_id’] = uniqid(); // invoice number
    $transaction[‘amountTotal’] = (FLOAT) 37.5;
    $transaction[‘note’] = ‘Transaction note’;
    $transaction[‘buyer_name’] = ‘Jhone Due’;
    $transaction[‘buyer_email’] = ‘buyer@mail.com’;
    $transaction[‘redirect_url’] = url(’/back_to_tarnsaction’); // When Transaction was comleted
    $transaction[‘cancel_url’] = url(’/back_to_tarnsaction’); // When user click cancel link

/*

  • @required true
  • @example first item
    */
    $transaction[‘items’] = [
    ‘itemDescription’ => ‘Product one’,
    ‘itemPrice’ => (FLOAT) 7.5, // USD
    ‘itemQty’ => (INT) 1,
    ‘itemSubtotalAmount’ => (FLOAT) 7.5 // USD
    ];

/*

  • @example second item
    */
    $transaction[‘items’] = [
    ‘itemDescription’ => ‘Product two’,
    ‘itemPrice’ => (FLOAT) 10, // USD
    ‘itemQty’ => (INT) 1,
    ‘itemSubtotalAmount’ => (FLOAT) 10 // USD
    ];

/*

  • @example third item
    */
    $transaction[‘items’] = [
    ‘itemDescription’ => ‘Product Three’,
    ‘itemPrice’ => (FLOAT) 10, // USD
    ‘itemQty’ => (INT) 2,
    ‘itemSubtotalAmount’ => (FLOAT) 20 // USD
    ];

$transaction[‘payload’] = [
‘foo’ => [
‘bar’ => ‘baz’
]
];

return CoinPayment::generatelink($transaction);