Simple paypal payment system with sandbox demo | 2my4edge

12 July 2016

Simple paypal payment system with sandbox demo

Paypal payment system is one of the simplest way to transfer money through online, even if you dont have paypal account also you can pay through your credit card or debit card. this code is very simple one only. here i will give you one sample example. Lets see the code and sandbox complete demo.  

simple paypal payment system in php
DOWNLOAD                   LIVE DEMO

STEP 1 : OPEN https://developer.paypal.com/ . 
STEP 2 : Login in to your paypal account. 
STEP 3 : Then click on the Sand accounts.
STEP 4 : Create Personal and business account.



If you have any doubt to create accounts see the below video.


After creating business and personal account. Use business account you code. personal account to do the payment. Lets see the code.

FORM ACTION
Form action sandbox url is :
https://www.sandbox.paypal.com/cgi-bin/webscr

Form action live url is  : 
https://www.paypal.com/cgi-bin/webscr

<div align="center">
<img src="product.gif">
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="business" value="bbasaprogrammer@gmail.com">
  <input type="hidden" name="item_name" value="Item name goes here">
  <input type="hidden" name="item_number" value="ITEMNO001">
  <input type="hidden" name="amount" value="50">
  <input type="hidden" name="tax" value="1">
  <input type="hidden" name="quantity" value="1">
  <input type="hidden" name="no_note" value="1">
  <input type="hidden" name="currency_code" value="USD">
  <input type='hidden' name='cancel_return' value='http://2my4edge.com/cancel.html'>
  <input type='hidden' name='return' value='http://2my4edge.com/return.html'>

  <!-- Enable override of buyers's address stored with PayPal . -->
  <input type="hidden" name="address_override" value="1">
  <!-- Set variables that override the address stored with PayPal. -->
  <input type="hidden" name="first_name" value="Arunkumar">
  <input type="hidden" name="last_name" value="Maha">
  <input type="hidden" name="address1" value="Address line one">
  <input type="hidden" name="city" value="Bangalore">
  <input type="hidden" name="state" value="KA">
  <input type="hidden" name="zip" value="560102">
  <input type="hidden" name="country" value="IN">
  <input type="image" name="submit"
    src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif"
    alt="PayPal - The safer, easier way to pay online">
</form>
</div>

Change business value to you account address. similarly you can change the amount, tax, quantity, item_name, item_number like that. if you want to show the buyer address. you can give the address details.

This is the simple way for paypal payment system. if you have any doubt Watch this youtube video for reference. 

I hope this post is really helpful to you. Keep supporting for more updates. Stay in touch with us in social media. 





RELATED POSTS :

4 comments:

  1. Daroga Haffu Singh8/17/2016 10:53 AM

    Bahut Badhiya, Maraj, Hamauko Sasur Pasand Aago ...

    ReplyDelete
  2. You are a great encourager. This is so helpful.

    ReplyDelete
  3. Thank you, More power to you God bless

    ReplyDelete
  4. Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. eBay stealth account

    ReplyDelete

^