PHP code example of magedahmad / larapayment

1. Go to this page and download the library: Download magedahmad/larapayment 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/ */

    

magedahmad / larapayment example snippets


MagedAhmad\LaraPayment\LaraPaymentServiceProvider::class,

$payment = new LaraPayment('EGP');

public function receive(Request $request) 
{
    $laraPayment = new LaraPayment();

    $laraPayment->verify_paymob($request->order, $request->all()); // return status
}
bash
php artisan vendor:publish --provider="MagedAhmad\LaraPayment\LaraPaymentServiceProvider
bash
php artisan migrate