|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/24/2003 Posts: 5 Location: ,
|
Hi all, first thank you for all the information that has been a great help to me in integrating PayPal into my shopping cart software. I wanted to be sure my new version included it, and it was not an easy task to add by any means, but I'm in the homestretch now!
Basically, everything is working great with the initial order. The response comes back from PayPal perfectly and the order gets inserted into the database. I am recording orders that come back as Completed or as Pending, and displaying the reason for pending orders to the merchant on the order invoice.
Now, my understanding was that once the order is approved and no longer pending, IPN would send another post to the script, and I wrote all the code to handle that, to update the database and mark the order as completed. I did something similar if the order is rejected. Problem is, nothing seems to happen. I have code in there to log all the actions, but it isn't picking anything up other than the initial order.
Any ideas? What could I be missing? Do most people just enter completed orders? I could do that instead, but this just seemed more robust.
Mary Jo Sminkey
CFWebstore E-Commerce
www.cfwebstore.com
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/24/2003 Posts: 5 Location: ,
|
Hhm, well an update on this problem is in order. It seems my basic problem is that IPN is not working at all. The orders are just getting added from the form that submits back to the response page. Drat, I've got bigger problems than I realize! So, can someone explain to me, if the notify and response URLs are the same, why the response one works but the notify for IPN does not? I definitely have IPN turned on, and have the same URL entered there as well. My script logs all invalid as well as valid responses and there's nothing getting logged other than when I submit something to it directly. It's like IPN isn't running...is there any way to tell if it is?? Mary Jo Sminkey CFWebstore E-Commerce www.cfwebstore.com
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 12/24/2003 Posts: 5 Location: ,
|
I was able to get everything solved myself, and thought I'd post about what the problem was for anyone else that runs into similar issues. What I did was move the basic IPN handler I had to the top level of a basic CF site, away from my shopping cart and all the special coding that goes through there. Tested it will both PayPal and Eliteweaver and it worked fine. So, I knew that IPN was working and that it was something going on in my store that was preventing it from communicating properly. Since I knew the script worked fine for me, the customer, I figured it probably was due to the cookies that the store set, since IPN would not have them. Problem is that you can't turn cookies off and use PayPal. But I was able to run the transaction through PayPal then clear my cookies and hit the store to see what happened. Eureka! The problem was that the basket number that I was sending back and forth to IPN was not getting set early enough in the application and it was redirecting to the error handler for an empty basket. A few lines of code later, and all is working! My software is still a month or so away from release, but I'll be sure to post when it's ready, as I'm sure a lot of PayPal merchants will love having all the advanced features it offers. Mary Jo Sminkey CFWebstore E-Commerce www.cfwebstore.com
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 7/20/2004 Posts: 2 Location: ,
|
Hi i was wondering if anyone could help with a few questions i have. When the coldfusion IPN code suppiled by paypal receives variables from the paypal forms it stores them as local variables. I need to use these variables to update my databse
The question i have is this, when someone buys more than one item in the shopping cart.is there more then one lot of product information sent to the IPN code? If so it shold be stored as an array. Or does it send the information for each product one at a time>
There is also some information missing that i need for my database, such as quantity of a product. Is there anyway i can get this because i need to remove the quantiy of each item from my stock levels
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 1/28/2005 Posts: 3 Location: ,
|
Did you ever get your IPN stuff to work with PayPal? I am having trouble with the IPN response as it always comes through with the CFHTTP.FileContent = "INVALID" instead of "VERIFIED". I would like to see exactly what IPN is sending to me? Do you know how I can capture that?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 6/29/2005 Posts: 11 Location: ,
|
Can anyone provide me with some code examples of how to receive and parse the requests and responses from PayPal? I have a shopping cart completely done in CFML and can't find any examples of how to pass data between my website and PayPal and vice versa. I've read their documentation, which all assumes I know SOAP and XML which I don't so I'm looking for someone who's already done it to guide me in the right direction.
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 7/22/2004 Posts: 25 Location: ,
|
Hi jmarin@jadeinc.com, May UI I know what PayPal Web service API you are trying to call. Sanjesh http://www.soapknox.com
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 6/29/2005 Posts: 11 Location: ,
|
sanjeshp, not quite sure what you mean... I'm so ignorant about this stuff. I just want to be able to have customers leave my e-commerce app to pay for their items, and then return to my store and pass the success or fail response from the PayPal server back to my site so I can parse them out and know whether the transaction was sucessful or not. So whatever API you need to do that.
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.809 seconds.