Types of Paypal

PayPal Standard is the basic type of PayPal. When this is enabled, the customer will have to fill out your store checkout and will be able to choose PayPal Standard in the Payment section. When they are sent to PayPal, they will be able to log in to their PayPal account or use a credit/debit card without having an account. The line items will be displayed on PayPal and the order will be submitted on their end, not your store’s.

PayPal Express requires the customer to have a PayPal account. When you enable this, it will display on both the View Cart page (as a button) and on the Checkout page (as a choice in the Payment section). When the customer is sent to PayPal, the line items will not be shown. The customer will be sent back to the store to choose their shipping method and will submit the order from the store’s checkout page.

PayPal Pro is considered a payment gateway. You would enable this is in the Credit Cards section of your Payment Settings. You would use this to accept credit cards on your site, and the customer would not know that PayPal is being used. When you set this up, you can either use the API signature or certificate. If you are going to also use PayPal Express, you will need to use the certificate.

PayPal Advanced is the newest type of PayPal integration. With PayPal Advanced, you can accept both PayPal and credit cards on your site. You can set it so that customers are sent to PayPal to pay, or you can give them the ability to pay with a credit card without ever having to leave your site. This type of PayPal will work with all other PayPal types, and since it’s not a payment gateway itself, you can have it enabled alongside a true payment gateway like Authorize.net.

Paypal Buy Now button example

This is an example of paypal Buy Now button. You can change fields value according to your need.

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"><input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="nitinmaurya12@gmail.com" />
<input type="hidden" name="lc" value="IN" />
<input type="hidden" name="item_name" value="Demo" />
<input type="hidden" name="item_number" value="Demo001" />
<input type="hidden" name="amount" value="1.00" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="button_subtype" value="services" />
<input type="hidden" name="no_note" value="0" />
<input type="hidden" name="return" value="http://nitinmaurya.com" />
<input type="hidden" name="cancel_return" value="http://nitinmaurya.com" />
<input type="hidden" name="notify_url" value="http://nitinmaurya.com" />
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:<span class=" />NonHostedGuest" />
<input type="image" alt="PayPal – The safer, easier way to pay online." name="submit" src="https://www.paypalobjects.com/en_GB/i/btn/btn_buynowCC_LG.gif" />
<img alt="" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1" border="0" />

For Sandbox form action will be:
https://www.sandbox.paypal.com/cgi-bin/webscr

In case if you are using Live Paypal then use below URL in your ipn file to get values

$ch = curl_init(‘https://www.paypal.com/cgi-bin/webscr’);

otherwise please use below url for sandbox
$ch = curl_init(‘https://www.sandbox.paypal.com/cgi-bin/webscr’);