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-phpSTEP 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');
Comments
Post a Comment