Latest News:
v1.2.1 Release Date is Sunday August 31st
on August 27, 2008, 08:52:45 PM [View]
Welcome, Guest. Please login or register.
August 28, 2008, 08:57:57 AM
Show Unread Posts | View Replies to Your Posts


Login with username, password and session length
cpCommerce Support  |  Version 1.x.x  |  Bug Reports  |  Unresolved  |  Topic: Purchase not recorded when using paypal 0 Members and 1 Guest are viewing this topic.
Pages: [1] Send this topic Print
Author Topic: Purchase not recorded when using paypal  (Read 941 times)
oracle3410
Junior Member
*
Offline Offline

Posts: 3


View Profile
« on: August 14, 2007, 02:47:50 PM »

When using paypal, my purchases are not stored in the database, so I have no clue what to send my customers.  If I choose offline processing, everything is fine, but when I do paypal, I get no record on my end, other than the e-mail saying that paypal has received cash.  No inventory update, nothing..


Report to moderator   Logged
softnow
cpModerators
Scholarly Member
*****
Offline Offline

Posts: 1812


View Profile
« Reply #1 on: August 14, 2007, 09:37:43 PM »

Are you sure you have setup paypal correctly in cpcommerce? As no one else has had this problem
Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #2 on: August 15, 2007, 08:26:11 AM »

Actually, I think everyone is having this problem (or at least I am as well). This was the reason I added product name and id number to the Paypal payment method (it still doesn't show purchases in the database, but at least the email that says "You've Got Cash!" from paypal will tell you the name and id).

You can see the code here.
Or just download the file here.

The above fix also sends tax, shipping and handling information to Paypal (without this fix it just sends the grand total).
« Last Edit: August 15, 2007, 08:56:55 AM by Jenius » Report to moderator   Logged
oracle3410
Junior Member
*
Offline Offline

Posts: 3


View Profile
« Reply #3 on: August 15, 2007, 01:28:26 PM »

I've setup paypal correctly, yes.

Users get directed back to my site, saying their order was completed and is being processed, but nothing on the cpCommerce side indicates a sale has been made.
Report to moderator   Logged
kaos
Junior Member
*
Offline Offline

Posts: 2


View Profile
« Reply #4 on: August 17, 2007, 10:34:16 AM »

I am getting the same issue. Paypal work correctly, however no feedback is giving to the site stating if the process was completed successifully.
Report to moderator   Logged
kaos
Junior Member
*
Offline Offline

Posts: 2


View Profile
« Reply #5 on: August 17, 2007, 12:42:32 PM »

Found the bug.
File Change in "/payment/paypal/response.php"

  $sql['temporary']   = "SELECT `cart`, `checkout` FROM `" . $db_chooser->MethodsTemporary() . "` " .
                        "where `id_temporary`='{$_GET['cpTempID']}' OR `id_temporary`='{$_POST['custom']}'";

Lines 8 -9, you need to add the ' ' between {$_GET['cpTempID']} and '{$_POST['custom']}'.
Its causing a mysql error.

Hope it helps, works for me..
Report to moderator   Logged
jongibbins
Junior Member
*
Offline Offline

Posts: 3


View Profile
« Reply #6 on: February 15, 2008, 08:39:02 AM »

Sorry to dig up an old thread.  Where exactly to you mean to put these ' ' marks? I am unsure where you mean.

Thanks

Jon
Report to moderator   Logged
Jenius
Junior Member
*
Offline Offline

Posts: 29


View Profile WWW
« Reply #7 on: February 15, 2008, 02:32:58 PM »

If you've applied the cpCommerce changes patch fix zip, this change is already in it and there's no need to add anything to the code. But even though this change is already in there, I'm still not sure if it actually fixed the problem.

Edit: This is the exact same problem that is also disscussed at this topic.
« Last Edit: February 22, 2008, 05:24:46 AM by Jenius » Report to moderator   Logged
Pages: [1] Send this topic Print 
cpCommerce Support  |  Version 1.x.x  |  Bug Reports  |  Unresolved  |  Topic: Purchase not recorded when using paypal
Jump to:  

Related Topics
Subject Started by Replies Views Last post
ipn test (script not post back) ryness 2 758 January 25, 2006, 06:52:58 PM
by softnow
can't modify description / paypal issues Tony_1 7 573 February 02, 2008, 10:00:35 AM
by Jenius
PayPal - Is it fully working now? WEZTEC 4 53 August 22, 2008, 03:02:33 PM
by WEZTEC
PayPal Fix Test !!! WEZTEC 7 59 August 27, 2008, 08:47:21 PM
by cpradio

Powered by MySQL Powered by PHP cpCommerce Support | Powered by SMF 1.1.
© 2004, Simple Machines LLC. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!