PHP code example of codepreneur / halk-pay

1. Go to this page and download the library: Download codepreneur/halk-pay 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/ */

    

codepreneur / halk-pay example snippets


use Codepreneur\HalkPayGateway\Contracts\TransactionReferenceResolver;
use Codepreneur\HalkPayGateway\Contracts\CallbackProcessor;

$this->app->bind(TransactionReferenceResolver::class, YourOidResolver::class);
$this->app->bind(CallbackProcessor::class, YourCallbackProcessor::class);
bash
php artisan vendor:publish --tag=halkpay-config
bash
php artisan vendor:publish --tag=halkpay-views