Laravel_Payment
Laravel Payment (PayPal & Stripe)
Note : Two different Projects : 1- by Paypal 2- Stripe Library (Master Card)
1- First Project ( PayPal )
first you need to install Srmklive library
composer require srmklive/paypal "~1.0"
you have to create paypal account for developers (sandbox)
in env.
PAYPAL_MODE
PAYPAL_SANDBOX_API_USERNAME
PAYPAL_SANDBOX_API_PASSOWRD
PAYPAL_SANDBOX_API_SECRET
PAYPAL_CURRENCY=USD
In PayPal developer have sandbox have API Credentials
Have Bussiness and personal account
and have to make controller and routes and baldes
2- In Second Project ( Stripe - Master Card )
Use Stripe Library
uou have to make account in stripe for developers
write
composer require stripe/stripe-php
in env.
STRIPE_KEY=
STRIPE_SECRET=
and have to make controller and routes and baldes
in controller
use session;
use stripe
stripe\stripe:setApiKey(env('STRIPE_SECRET'));
Stripe\Charge
Session::flash
On this page
Contributors
Created January 17, 2026
Updated January 17, 2026