CodeIgniter Forums
Confusion in Paypal - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Confusion in Paypal (/showthread.php?tid=13341)



Confusion in Paypal - El Forum - 11-19-2008

[eluser]nandish[/eluser]
Hi guys

<form action="https://www.paypal.com/cgi-bin/webscr" method="post" name="pay_pal">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="Donation">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" value="9.00">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="AU">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="hidden" name="return" value="http://vipadvantage.com">
<input type="image" src="http://www.paypal.com/en_US/i/btn/x-click-but01.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>


1)Submit the paypal form

2)it goes to paypal site

3)customer complete his process

4)redirect to mywebsite


can any one please explain complete flow of paypal integration(steps)

Thanks in advance


Confusion in Paypal - El Forum - 11-19-2008

[eluser]manilodisan[/eluser]
Customer buys, he's taken to paypal, after a successfull transaction he's being taken back to your defined 'success' url (you should have 3 url's defined for communication and further action: success, cancel, ipn). Meanwhile Paypal sends a post to your defined 'ipn' url. Your server takes that post, checks back with paypal to verify if the transaction was indeed processed and adds the order or modifies the status of the existing one. It's quite simple.


Confusion in Paypal - El Forum - 11-19-2008

[eluser]ray73864[/eluser]
checkout the Paypal_Lib in the wiki, it makes things easier in terms of dealing with Paypal IPN


Confusion in Paypal - El Forum - 12-31-2008

[eluser]pilotLight_Tre[/eluser]
Hi there,

I know this is a late reply, but here's how the complete flow:

1) User clicks on the Paypal submit button which sends them to Paypal.
2) User logs into their account or create a new account.
3) User make payment.
4) Paypal submits a hidden form (with some valuable information) back to your site. This will only happen if you set the URL where you want Paypal to submit that info to. The field is called "notify_url". After you've received this information, you should then add the order to your database. Optionally, you can have it send out a payment confirmation email to the customer with the Paypal transaction ID and all.
5) User clicks on the "Return to ..." button and views their receipt.


Confusion in Paypal - El Forum - 12-31-2008

[eluser]The Wizard[/eluser]
hello,
i've also a paypal controller for Code Igniter, someone coded it i dont remember it anymore
but it works flawlessly.

lemme take a look


Confusion in Paypal - El Forum - 12-31-2008

[eluser]The Wizard[/eluser]
http://codeigniter.com/wiki/File:paypal_lib.zip/