Categories Innovative Task

Stripe payment in laravel

routes.php  Route::get(‘/’, function () { return view(‘welcome’); }); Route::post(‘/testdata’, function () { $stripe = array( // Note Please write secret_key and publishabel_key from your stripe account. “secret_key” => “”, “publishable_key” => “” ); \Stripe\Stripe::setApiKey($stripe[‘secret_key’]); echo $token = $_POST[‘stripeToken’]; $customer = \Stripe\Customer::create(array( ’email’ => ‘customer@example.com’, ‘source’ => $token )); $charge = \Stripe\Charge::create(array( ‘customer’ => $customer->id, ‘amount’ […]

Read More
Categories Innovative Task

How make virtual server on local system

1] open command prompt as admin Write >> cd driver Write >> cd etc Write >> notepad hosts 2] add this code on hosts file 127.0.0.1        videorequestlive.com 3] then go to C:\xampp\apache\conf\extra and open this file( httpd-vhosts ) and change it as <VirtualHost *:80> ServerAdmin videorequestlive.com DocumentRoot “C:\xampp\htdocs\videorequest” ServerName videorequestlive.com </VirtualHost> NOTE […]

Read More