PHP code example of hfsepayment / laravel-plugin

1. Go to this page and download the library: Download hfsepayment/laravel-plugin 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/ */

    

hfsepayment / laravel-plugin example snippets




use HFSEpayment\Epayment;

$pay = new Epayment();

$payment = [
   'env'            => "test",
   'client_id'      => "test",
   'client_secret'  => "yF587AV9Ms94qN2QShFzVR3vFnWkhjbAK3sG",
   'secret_hash'    => 'qwerty12345',
   'terminal'       => "67e34d63-102f-4bd1-898e-370781d0074d",
   'invoiceId'      => "300022002",
   'amount'         => 10,
   'currency'       => "KZT",
   'backLink'       => "https://example.kz/success.html",
   'failureBackLink' => "https://example.kz/failure.html",
   'postLink'       => "https://example.kz/",
   'failurePostLink' => "https://example.kz/order/1123/fail",
   'language'       => "rus",
   'telephone'      => "",
   'email'          => "",
   // ...additional props
];
    
$pay->gateway($payment);