Llamatronics Posted July 14, 2017 Share Posted July 14, 2017 When a Paypal payment comes in using PayPal Pro (CC Processing) - I get the email from Paypal that I have received a payment - but the order is stuck at "pending" until I manually change it to "processing"... I'm on CC version 6.1.7 Paypal Pro & Express version 1.1.9. Transaction log looks like everything was successful - order just didn't switch to processing - or trigger the confirmation email... Transaction ID Status Amount Gateway Date/Time Notes XXXXX584AF406592Y Success $44.74 PayPal Card Payment Today, 17:03 CVV2 correctly matched. Any help would be appreciated! It's not a big deal - just annoying to have to manually change the status of every order... If you need the site URL its www.LlamaTronics.com Thanks! Quote Link to comment Share on other sites More sharing options...
keat Posted July 14, 2017 Share Posted July 14, 2017 (edited) Have a look at this, it might help. Ahh, I see you already did. Edited July 14, 2017 by keat Quote Link to comment Share on other sites More sharing options...
Llamatronics Posted July 16, 2017 Author Share Posted July 16, 2017 Yeah - I did notice that - but wasn't sure it was 100% the same thing... I'll dive a little deeper into it and see if that helps. Quote Link to comment Share on other sites More sharing options...
Llamatronics Posted July 16, 2017 Author Share Posted July 16, 2017 UPDATE - Well, I went through everything from that post - updated my Sanitize class file, cleared all cache except images - then did a test order - still stuck at pending... Anyone have any other advise? I haven't updated to 6.1.8 yet because of multiple non-stock edits I didn't want to have to redo... Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 16, 2017 Share Posted July 16, 2017 PayPal Pro module uses CubeCart's Request functions, which will log what was sent to PayPal and what was returned, if anything. In admin, Request Log, find the entry for the order you just made a test with, 'x'-out any personal info, and copy the entry here. We may be able to confirm or deny the problem exists at this stage. Quote Link to comment Share on other sites More sharing options...
Llamatronics Posted July 16, 2017 Author Share Posted July 16, 2017 Here is the log: Today, 11:10 Request Sent - https://api-3t.paypal.com/nvpPAYMENTACTION=Sale&IPADDRESS=XX.XXX.XXX.XXX&RETURNFMFDETAILS=1&INVNUM=170716-130938-4264&AMT=2.08&ITEMAMT=2.08&CREDITCARDTYPE=Visa&ACCT=4***********9922&CVV2=XXX&EXPDATE=082021&EMAIL=andy%40llamatronics.com&FIRSTNAME=D&LASTNAME=Gelsinger&STREET=XXX+XXXXXX+Rd&STREET2=&CITY=Janesville&STATE=WI&ZIP=XXXXX&COUNTRYCODE=US&CURRENCYCODE=USD&SHIPTOPHONENUM=XXXXXXXXXX&SHIPTONAME=Andy+Gelsinger&SHIPTOSTREET=XXX+XXXXXXXX+XX&SHIPTOSTREET2=&SHIPTOCITY=Janesville&SHIPTOZIP=XXXXX&SHIPTOSTATE=WI&SHIPTOCOUNTRY=US&BUTTONSOURCE=CubeCart_Cart_DP_US_v6&METHOD=DoDirectPayment&VERSION=112&PWD=XXXXXXXXXXXXXXXXXXXXX&USER=XXXXXXXXXXXXXXXX.com&SIGNATURE=XXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXX Response receivedTIMESTAMP=2017%2d07%2d16T18%3a10%3a09Z&CORRELATIONID=97bd3fcf8c87d&ACK=Success&VERSION=112&BUILD=33063964&AMT=2%2e08&CURRENCYCODE=USD&AVSCODE=Y&CVV2MATCH=M&TRANSACTIONID=XXXXXXXXXXXXXXXX I wasn't sure what all should be X'd out - let me know if I did too much! Also - this seems to match that shows up in the transaction log on the order as well - Status: Success. Thanks for looking into this! Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 16, 2017 Share Posted July 16, 2017 So we will assume that the response was dealt with, as you say there is a log item for this order - the transaction ID matches and the amount matches. The next step in the code is to set the order to Processing. Let's add some diagnostic code. I'll be back with specific edits for CC617. Quote Link to comment Share on other sites More sharing options...
bsmither Posted July 16, 2017 Share Posted July 16, 2017 In the PayPal_Pro folder, open for editing the file gateway.class.php and find: Near line 606: if($this->_api_method=='Sale' || ($this->_api_method=='Authorization' && $this->_module['authProcess']=='1')) { Change to: if($this->_module['paymentAction']=='Sale' || ($this->_module['paymentAction']=='Authorization' && $this->_module['authProcess']=='1')) { I think this version of the PayPal Pro module (v1.1.9) is using the wrong variable here. Quote Link to comment Share on other sites More sharing options...
Llamatronics Posted July 17, 2017 Author Share Posted July 17, 2017 That seems to have fixed it! Thanks so much!! Strange the the PayPal Pro Module would be using the wrong variable - but at least you helped me fix it!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.