Laravel Package For Milyoona
⬇️ How to install and config milyoona/ipg package?
composer require milyoona/laravel-ipg
php artisan vendor:publish --tag=milyoona_ipg
getToken()
: gives you a token and urlpay()
: auto redirect you to gatewayverify()
: verify your request just one timetrace()
: trace your request many times
-
<?php use Milyoona\Ipg\Facades\MilyoonaIpg; MilyoonaIpg::terminal('YOUR_TERMINAL_ID') ->amount('AMOUNT_OF_PRODUCT') ->callbackUrl('YOUR_CALLBACK_URL') ->getToken(); // or ->pay(); for redirect to gateway page // If you set the terminal_id and callback_url in config/milyoona_ipg.php you not need to fill this methods. MilyoonaIpg::amount('PRICE_OF_PRODUCT')->getToken(); // or ->pay(); for redirect to gateway page
Option description mobile mobile number of customer national_code national code of customer order_id order id of product card_no limit customer for pay with a specific card number description description of order <?php use Milyoona\Ipg\Facades\MilyoonaIpg; MilyoonaIpg::terminal('YOUR_TERMINAL_ID') ->amount('PRICE_OF_PRODUCT') ->callbackUrl('YOUR_CALLBACK_URL') ->option([ 'mobile' => 'MOBILE', 'national_code' => 'NATIONAL_CODE', 'order_id' => 'ORDER_ID', 'card_no' => 'CARD_NUMBER', 'description' => 'YOUR_DESCRIPTION', ]) ->getToken(); // or ->pay(); for redirect to gateway page
-
<?php use Milyoona\Ipg\Facades\MilyoonaIpg; MilyoonaIpg::terminal('YOUR_TERMINAL_ID') ->token('YOUR_TOKEN') ->verify(); // or ->trace(); // If you set the terminal_id in config/milyoona_ipg.php you not need to fill this method. MilyoonaIpg::token('YOUR_TOKEN') ->verify(); // or ->trace();