PHP code example of queents / payment-module
1. Go to this page and download the library: Download queents/payment-module 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/ */
queents / payment-module example snippets
//request contain data that will sent to payment methods
\PaymentModule::pay($request->all())
//return error message empty if success
\PaymentModule::getErrorMessage()
//return array with data that contain the payment url
\PaymentModule::getData()
//takes payment method id and the request from payment getway
\PaymentModule::callback($request->all(),$paymentMethod)
bash
php artisan payment:install
bash
php artisan optimize:clear