1. Go to this page and download the library: Download waad/zaincash 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/ */
// if return array use ->setIsReturnArray(true);
$transactionId = $transaction['id'];
// if return object use ->setIsReturnArray(false); -- default
$transactionId = $transaction->id;
// if return array use ->setIsReturnArray(true);
$success = $processingDetails['success'];
// if return object use ->setIsReturnArray(false); -- default
$success = $processingDetails->success;
// if return array use ->setIsReturnArray(true);
$success = $payDetails['success'];
// if return object use ->setIsReturnArray(false); -- default
$success = $payDetails->success;
// if return array use ->setIsReturnArray(true);
$success = $cancelDetails['success'];
// if return object use ->setIsReturnArray(false); -- default
$success = $cancelDetails->success;
bash
php artisan vendor:publish --tag="zaincash"
bash
php artisan optimize
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.