Tuesday, 5 February 2013

Paypal Buy Now Button

Paypal Buy now Button


How to create paypal "paynow" html button.

To create a button you must have an paypal account in which money will transfer.

1) Login to paypal website

Paypal Login Form
Add caption

2) Click on "Merchant Services"
Merchant Services

3) Click on "Website Payment Standard"


4)Click on "Give it a try"


5) Fill few field and create button



6) Button is created

7) Want HTML Code
<form action="https://www.paypal.com/in/cgi-bin/webscr" method="post" name="_xclick"> 
<input name="cmd" type="hidden" value="_xclick" />
<input name="business" type="hidden" value="youremailaddress" />
<input name="currency_code" type="hidden" value="USD" />
<input name="item_name" type="hidden" value="Item Name" />
<input name="amount" type="hidden" value="5.00" />
<input alt="Make payments with PayPal - it's fast, free and secure!" border="0" name="submit" src="http://www.paypal.com/en_GB/i/btn/x-click-but01.gif" type="image" />
</form>



Saturday, 2 February 2013

Google map integration

Google Map - Simple Example


<script src="//maps.google.com/maps/api/js?sensor=true"></script>
<script>
function initialize()
{
var mapProp = {
    /** Add lat/lng of your location **/
  center:new google.maps.LatLng(51.508742,-0.120850),
  zoom:5,
  mapTypeId:google.maps.MapTypeId.ROADMAP//try SATELLITE,HYBRID,TERRAIN
  };
var map=new google.maps.Map(document.getElementById("googleMapId1"),mapProp);
}

google.maps.event.addDomListener(window, 'load', initialize);
</script>


<div id="googleMapId1" style="height: 300px; width: 650px;">
</div>


Sensor: The sensor parameter is required & it indicates whether this application uses a sensor (such as a GPS locator) to determine the user's location. Set this value to either true or false.

Zoom: The zoom property specifies the initial zoom level for the map. zoom: 0 shows a map of the Earth fully zoomed out. Higher zoom levels zoom in at a higher resolution.

MapTypeId: The mapTypeId property specifies the initial map type to display.
The following map types are supported:
  1. ROADMAP (normal, default 2D map)
  2. SATELLITE (Photographic map)
  3. HYBRID (Photographic map + roads and City)
  4. TERRAIN