PHP code example of olaoluwa-98 / laravel-payant

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

    

olaoluwa-98 / laravel-payant example snippets


"olaoluwa-98/laravel-payant": "1.1.*"

'aliases' => [
    ...
    'Payant' => Olaoluwa98\Payant\Facades\Payant::class,
    ...
]



return [

    /**
     * Public Key From Payant Dashboard
     *
     */
    'public_key' => env('PAYANT_PUBLIC_KEY'),

    /**
     * Private Key From Payant Dashboard
     *
     */
    'private_key' => env('PAYANT_PRIVATE_KEY'),

    /**
     * Payant API MODE
     */
    'mode' => env('PAYANT_MODE'),
];

PAYANT_PUBLIC_KEY=xxxxxxxxxxxxx
PAYANT_PRIVATE_KEY=xxxxxxxxxxxxx
PAYANT_MODE= DEMO or LIVE

$client_data = ['first_name' => 'Emmanuel',
                'last_name' => 'Awotunde',
                'email' => '[email protected]',
                'phone' => '+2348090579032'];
Payant::addClient($client_data);
bash
php artisan vendor:publish --provider="Olaoluwa98\Payant\PayantServiceProvider"