Posts

Showing posts with the label PayPal

PayPal Integration with Laravel

Image
  PayPal Integration with Laravel First create a Laravel project           composer create-project laravel/laravel paypal Create a database and connect it with the project Run below command to create payment table           php artisan make:migration create_payments_table Go to migration file and add following fields Run again php artisan migrate Run php artisan make:model Payment Run php artisan make:controller PaymentController Go to web.php and add following routes Go to https://developer.paypal.com/home Create a PayPal developer account. Add the client id and secret key to the .env file Run below code in terminal           composer require league/omnipay omnipay/paypal Add the following code to the PaymentController Create a blade file as payment.blade.php Create a simple form Run the project