1. Go to this page and download the library: Download digitwires/payway 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/ */
digitwires / payway example snippets
$payway = new PaypalGateway(); // OR any available payment class
$payway->initPayment([
'amount' => 100,
'user_id' => '111',
'user_first_name' => 'John',
'user_last_name' => 'Doe',
'user_email' => '[email protected]',
'user_phone' => '+11234567890',
'source' => 'website',
'currency' => 'USD',
]);
$payway = new PaypalGateway(); // OR any available payment class
$payway->verifyPayment($request)
use Digitwires\Payway\Classes\PaypalGateway;
use Digitwires\Payway\Classes\PaytabsGateway;
use Digitwires\Payway\Classes\PaymobGateway;