Skip to main content

Posts

Showing posts from May, 2020

Laravel 5.7 - Stripe Payment Gateway By Captain Laravel

Presented By Captain Laravel STEP 1:  we need to install stripe-php via the Composer package manager, so one your terminal and fire bellow command:   Command:-  composer require stripe/stripe-php STEP 2 :- Now, we need to set stripe key and secret. so first you can go on  Stripe  website and create development stripe account key and secret and add bellow: .env STRIPE_KEY=pk_test_reFxwbsm9cdCYYYBbynUfxAR STRIPE_SECRET=sk_test_iQMFWtUUTTBGFECAtgApY routes/api.php Route::get('stripe', 'StripePaymentController@stripe'); Route::post('stripe', 'StripePaymentController@stripePost')->name('stripe.post');