PayPal and PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
partiallynothing
Forum Commoner
Posts: 61
Joined: Fri Nov 21, 2003 5:02 pm
Location: connecticut, usa

PayPal and PHP

Post by partiallynothing »

I am interested in seemlessly integrating PayPal with my web hosting service. Does anyone know of a oop class, tutorial, or other information on this topic. Thanks.
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Post by PrObLeM »

goto paypal and look for the docs

make sure you know cURL
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

Post by hongco »

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="YouremailforPaypaluse@youremail.com">
<input type="hidden" name="item_name" value="test using paypal">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="0.10">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but02.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>

I had never tried this code yet, but not sure what happens when the person paid an amount. Would he/she be redirected back to the website having this paypal button?

Thanks!
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

Post by hongco »

just found this class:
it's for paypal instant notice.

http://www.hotscripts.com/PHP/Scripts_a ... ce/PayPal/
hongco
Forum Contributor
Posts: 186
Joined: Sun Feb 20, 2005 2:49 pm

Post by hongco »

more info as I am also intrested in:

here is an article explaining some details how to integrate paypal with your 3rd party software.
http://www.devarticles.com/c/a/PHP/Quic ... -PayPal/1/
MicahCarrick
Forum Newbie
Posts: 23
Joined: Sat Apr 09, 2005 5:40 pm

Post by MicahCarrick »

I have a pretty easy to use paypal/ipn integration class which I've also included a demonstration file.

http://www.micahcarrick.com/v2/content/view/1/3/
Post Reply