PHP code example of wajub / wajub-php
1. Go to this page and download the library: Download wajub/wajub-php 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/ */
wajub / wajub-php example snippets
use Wajub\Wajub;
$wajub = new Wajub(['api_key' => config('services.wajub.secret')]);
$payment = $wajub->payments->create([
'amount' => 25000,
'currency' => 'XAF',
'email' => '[email protected]',
'callback' => route('checkout.complete'),
]);
return redirect()->away($payment->authorization_url);