Posts

Showing posts from July, 2017

change localhost to demo.com

open  c:/window/system32/driver/etc/hosts file change 127.0.0.1       demo.com Open C:/xampp/apache/conf/extra/httpd-vhost.conf Add in last <VirtualHost *>         ServerName demo.com         ServerAlias demo.com         DocumentRoot "C:/xampp/htdocs/public"     </VirtualHost>

Pin payment laravel

use Omnipay\Omnipay; use Omnipay\Common\GatewayFactory; $load = new GatewayFactory(); $gateway= $load->create('Pin'); $gateway->initialize(array(   'secretKey' => 'your key', 'testMode'  => true, )); $card =  array('number' => '4200000000000000', 'expiryMonth' => '6', 'expiryYear' => '2019', 'cvv' => '123','name'=>'name ','address1'=>'address','city'=>'city','country'=>'india'); $response=$gateway->purchase([  'email'       => 'customer@email.com',  'description' => 'Widgets',  'amount'      => '20.00',  'currency'    => 'USD',  'card'       => $card,  'ip_address'  =>  $_SERVER['REMOTE_ADDR'] ])->send(); if ($response->

bootstrep checkbox

<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"> <div class="container">     <h1>CheckboxRadio (no JS)</h1>     <hr/>         <p>This snippet allows you create nice animated checkboxes and radios without JavaScript. <br/>Just put <code><span class="cr"><i class="cr-icon glyphicon glyphicon-ok"></i></span></code> right after your checkbox or radio.</p>     <p>Other markup was copied from <a href="http://getbootstrap.com/css/#forms" target="_blank">Bootstrap example</a>.</p>     <h2>Checkboxes</h2>     <hr/>     <h3>Default example</h3>         <div class="col-sm-12">         <div class="checkbox">           <label>             <input type="checkbox" value="&qu