jeudi 27 octobre 2016

Make only two routes with https protocol in Laravel 5.3

I want only my payment checkout pages in https. I have a website in http://, I´m implement a payment checkout with Stripe credit card, but Stripe only works with https...

I want that all my website have http, except the /payment-date page and the payment-data-post page, to send the data to Stripe with secure protocol.

How I can have only those two pages on https?

The routes are:

Route::get('/payment-data',['as'=> 'payment_data','uses' => 'WebController@getPaymentData']);

Route::post('/post-payment-data', ['as'  => 'post_payment_data', 'uses' => 'WebController@postPaymentData']);

I want only this routes in https

The framework is Laravel 5.3



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2f9BEF3
via IFTTT

Aucun commentaire:

Enregistrer un commentaire