Interested In Advertising? | Contact Us Here
Warning!

 

Welcome to Clean It Up; the UK`s largest cleaning forum with over 34,000 members

 

Please login or register to post and reply to topics.      

 

Forgot your password? Click here

Nick Wareham

  • Posts: 244
Paypal for your website
« on: May 30, 2010, 12:15:24 am »
So, basically I wanted the customer to be able to input their name, address and how much they want to pay, and then pass these details to paypal ready for payment.  Boy did I not realise how complicated this simple task would be.

Finally perfected it, so if you need to do this for your website here is the code to use:

Code: [Select]
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
<input type="hidden" name="cmd" value="_xclick"> 
<input type="hidden" name="business" value="YOUR_PAYPAL_EMAIL_ADDRESS">
<input type="hidden" name="on0" value="Customer Name">
<input type="hidden" name="on1" value="Customer Address">
Name:<br>
<input type="text" name="os0" /><br>
Address:<br>
<input type="text" name="os1" /><br>
Amount to pay (£):<br>
<input type="text" name="amount" />
<input type="hidden" name="item_name" value="Window Cleaning" />
<input type="hidden" name="no_shipping" value="0" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="GBP" />
<br />
<input name="submit" type="submit" value="Pay Now" />
</form>

So, just thought some on here might find it useful.  Feel free to use it if you like - but change the "YOUR_PAYPAL_EMAIL_ADDRESS" to your own, obviously!

May save you a few hours!

Re: Paypal for your website
« Reply #1 on: May 30, 2010, 06:40:25 am »
Nice one Nick,but i thought you could add the html from paypal site.If you are registered a s a business with them they allow you to use the paypal button in your web pages.

Nathanael Jones

  • Posts: 5596
Re: Paypal for your website
« Reply #2 on: May 30, 2010, 08:22:53 am »
personally I prefer the paypal generated encrypted code,.. its not always a good thing to advertise what e-mail address you use for paypal as it attracts scammers. :(

Nick Wareham

  • Posts: 244
Re: Paypal for your website
« Reply #3 on: May 30, 2010, 12:11:02 pm »
Yes I started with the paypal generated code, this is just it but a little bit modified.

Nathanael Jones

  • Posts: 5596
Re: Paypal for your website
« Reply #4 on: May 30, 2010, 08:10:23 pm »
Yes I started with the paypal generated code, this is just it but a little bit modified.
If you generate it from within your paypal account there is an option to encrypt the code which completely hides your details. :)

traps7

Re: Paypal for your website New
« Reply #5 on: October 01, 2010, 08:38:23 pm »
Got a link to the paypal generated one Nat?

Edit. its ok I got it now.