Paypal Express Confirmation Stage Failure

  • Posts: 13
  • Thank you received: 1
10 years 8 months ago #148489

-- url of the page with the problem -- : www.settlementonquay.com.au/harmony-day
-- HikaShop version -- : 1403011738 - Business 2.3.0
-- Joomla version -- :2.5
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Any
-- Error-message(debug-mod must be tuned on) -- : Error_message

I'm not seeing any reports being generated, so can not include any error messages, although I have enabled debugging for both Paypal plugins, and turn reporting on to 'Each time Hikashop is triggered', no fiule is being written to the ~safe//logs folder..

I have activates both the Standard and PayPal Express plugin.
The first issues was the error message, 'No payment method found ' when viewing the Cart page, even though the plugins were created and published. That was resolved after I un-published/Published the Standard Paypal plugin. Now both show in the Cart, but there is No option to choose between them (radio button lines up with the Std Paypal checkout), but if you click on the Express Checkout Icon it does indeed take you to the Paypal express checkout.
After logging in to Paypal to make a payment using 'PayPal', you see your Address, Payment and Contact details as stored in paypal, then when clicking on the Continue button to return to the vendor to confirm your payment, it ends up displaying a message at the site - "Thanks for you payment, and finished without confirmation, and doesn't load any obvious page..

No payment is process via Paypal as the accounts (vendor and purchaser) all still show $0, yet the purchaser receives an Email saying their purchase was successful and the order shows in hikashops backend and is listed as 'confirmed'.
We anticipated an easy setup but it proving to be a painful process.
All the API settings in Paypal are correct and the problem occurred with and without any return URL'S being set in paypal.
I also tried switching on the IPN and pointing it to index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=en but its made no difference.

Any elaboration or assistance on this will be greatly appreciated..

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 8 months ago #148645

Hi,

The fact that you don't have any radios to choose between the PayPal Standard and the PayPal express checkout is normal. The radios are only displayed when you have several payment methods to select from with the normal checkout of HikaShop.
With PayPal express checkout, you don't go through the normal checkout of HikaShop but do the checkout via PayPal. So that's why it's not in the list of the payment methods to select the checkout of HikaShop. And since you only have the PayPal standard payment methods in your HikaShop checkout, there is only this payment method displayed while the PayPal express checkout plugin displays a specific icon in the cart.

As far as I can see the PayPal Express Checkout is working fine. I'm getting redirected to PayPal on your website when I click on the express checkout button with the correct price.
So I guess that the transaction is also generated by PayPal.
The issue is maybe with the setup of the IPN in your PayPal account. If you force the IPN URL to index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=en it means that PayPal will always notify the PayPal standard payment plugin. But then it won't work with the PayPal express checkout since it has its own IPN URL which it gives to PayPal automatically if you don't set any URL in your PayPal account.
The fact that no money was transfered could indicate that the transaction has been made but that it was not captured automatically.
Do you receive any PayPal transaction notification email after the payment in PayPal ?
Could you do some screenshots of the emails just to make sure that we're talking about the same emails ?

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 1
10 years 8 months ago #148743

Hi Nicolas, thnx for your reply..
As I mentioned before, I only set up the IPN as a secondary test to try and get it working.. The key problem seems to be this. When chosing to pay via your PayPal account (ie: logging in to paypal after the checkout directs you there) then clicking on 'Continue' seems to bypass the whole Confirmation process in Hikashop.. It goes straight to the 'Thankyou for your purchase' message.
Even with IPN off its still redirecting to that same URL,,
I have also removed the Standard checkout leaving only Paypal Express, removed the IPN from the Paypal settings and tried again, but still the same result. No confirmation and straight the the completed 'Thankou' message.
In the shops backend all these order show as 'confirmed'.
I get two emails (as the purchaser), first one to confirm the order creation, and second one after the erroneous 'Thankyou' message to say its status has been changed to confirmed..
I also notice there are no option for allowing or disallowing payment types (e-check etc)?? My past experience is that if a user processes a payment with 0 balance in their Paypal account pay with e-checks. On a system we built some time ago we included the ability to 'detect and refuse' e-check payments..
Perhaps there is a problem with the workflow of the checkout process??
Login - Address - Fields - Cart Status - Payment - Cart - Status (Advanced checkout workflow edition = YES)
Unfortunately I am unable to 'monitor' the email address for the vendors Paypal account...

Last edit: 10 years 8 months ago by matrix. Reason: Amendment

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 1
10 years 8 months ago #148745

Addendum:
We have removed the PayPal Express option and gone back to the Standard PayPal checkout and it is now working, unfortunately without the improved functionality of PP Express...
We shall endeavour to 'stage' a setup somewhere else and nut out the issues with getting PP Express working properly, as this is the preferred method for us on sites we setup.
Thnx....

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 8 months ago #148779

Hi,

I don't think that there is a problem with the checkout workflow.
It's normal that you get a thank you page after the payment if the order is confirmed. What's strange is that you don't see the transaction in your PayPal account because if you get the order confirmed, it means that the payment notification was received by HikaShop.
From all you said, it looks more like an issue with the PayPal account settings or something like that (maybe not looking at the correct account, or the transactions are not captured automatically ?). Normally, you should get an email also from PayPal themselves regarding the transaction. Do you get such email ?
But yes, the best would be to have a staging website with a PayPal sandbox so that we could see the whole process on our end.

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 6 months ago #155067

-- url of the page with the problem -- : www.pooltablefeltcloth.com
-- HikaShop version -- : Business 2.3.0
-- Joomla version -- :3.2.4
-- PHP version -- : 5.4.27
-- Browser(s) name and version -- : Any
-- Error-message(debug-mod must be tuned on) -- : Error_message

I'm have a similar setup with both PayPal standard and PayPal Express together (plus First Data via Authorize.net plugin).

My problem with PayPal Express is no payment shows up in PayPal and I get an blank page instead of a confirmation page.

Add product then click PayPal Express button from Hikashop, then I log into paypal.com, and then I click "Continue" button and then get a blank page. No Payment is registered anywhere.

The following web server error log is generated once I hit "Pay Now":

[Thu May 08 15:17:49.388763 2014] [:error] [pid 31906:tid 140700796196608] [client xx.xx.xx.xx:20971] PHP Fatal error:  Call to a member function Quote() on a non-object in /plugins/hikashoppayment/paypalexpress/paypalexpress.php on line 593.

The the URL that displays the blank page is:
http://www.pooltablefeltcloth.com/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=paypalexpress&tmpl=component&token=EC-59U022699Y420835G&PayerID=XXXXXXXXXX

An order is "created" in HikaShop and it shows the transaction ID in the history "EC-59U022699Y420835G" (same as in the URL above). But that is as far as it goes.

I've tried enabling sandbox with my developer API information but all I get is
Connection failure - error code : 10431 , error message : Item amount is invalid.

If I turn turn off "Send cart detail to paypal", then the sandbox will work but the same problem (blank page) and web log error occurs. Nothing is registered in the developer sandbox notifications either.

Nothing shows up in the Payment log file despite debug being turned on in Express.

The sandbox developer account works fine with the PayPal standard.

For now I have unpublished PayPal Express as it isn't working and customers are frustrated.

Last edit: 10 years 6 months ago by jazzmang.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
10 years 6 months ago #155101

Hi,

Thank you for your thorough report.
Please add the line:
$db = JFactory::getDBO();
before the line:
$sql = 'SELECT history_order_id FROM `#__hikashop_history` hh INNER JOIN `#__hikashop_order` ho ON hh.history_order_id = ho.order_id WHERE history_data = '.$db->Quote(htmlspecialchars($token)).';';
in the file /plugins/hikashoppayment/paypalexpress/paypalexpress.php and that should fix the problem.

The following user(s) said Thank You: jazzmang

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 6 months ago #155630

That fixed it.

Note the $db = JFactory::getDBO(); in the original paypalexpress.php was there but AFTER that select line.

So just in the wrong place from a processing order stand point.

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 0
10 years 6 months ago #157007

Hi, I'm having a similar problem. I used the basic setup that HikaShop provides and then set up my Paypal info. I've done some tests and was able to make purchases. However, my orders are not getting confirmed in the control panel even after I receive a notice from PayPal of the transaction. I understand that this is being caused by PayPal not communicating with my site/HikaShop to update the status. I logged into the client's Paypal account and the only thing I could find was with regards to an API which would allow Paypal to communicate with the site. Any suggestions?

Update: I did just find the IPN section of the Paypal account and added my URL followed by /index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=paypal&tmpl=component&lang=en, but that didn't seem to clear it up either.

Last edit: 10 years 6 months ago by jcroce.

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 6 months ago #157008

I had to enable auto-return in order for this to change the status of order in HikaShop. See my thread over at www.hikashop.com/forum/checkout/867861-c...auto-return-url.html .

This applies to both PayPal standard and Express.

PS I"m still experiencing buggy issues with Express so I've just disabled it and sticking with standard for now. It is too inconsistent. I even got an confirmed order in HikaShop but no actual order in PayPal. Haven't had time to isolate it, may be later.

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 0
10 years 6 months ago #157010

Thanks, jazzmang, I wont be able to redirect it this way since the client is using his PayPal account for other transactions not associated with the website. Otherwise, it would be confusing to non-site transactions. But I don't think that would fix the IPN problem where the order status is not automatically updating. If I manually update the order status to "confirmed" through HikaShop, the downloads are available to the users who have made a purchase. So the problem I need to fix is having Paypal tell the site that the order is confirmed.

Please Log in or Create an account to join the conversation.

  • Posts: 238
  • Thank you received: 21
  • Hikamarket Multivendor Hikashop Business Hikashop Essential
10 years 6 months ago #157017

Do you mean your client has multiple sites running off the same PayPal account? If so, not sure how you could handle that then. But if you mean just other transactions like card swipper, it wouldn't be an issue.

If memory serves me right (and it may be wrong), I believe I found with Express the buyer had to be returned in order to the site to triggered the "confirmed" status on the order. I'd suggest setting up a sandbox account and testing. That is what I did and why I ended up enabling the Auto-Return URL, but I also did it to get Google AdWords Conversions tracking and the Analytics Ecommerece code to be triggered on the end view.

Nicholas or the Hikashop staff might be able to help you further.

The following user(s) said Thank You: jcroce

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 0
10 years 6 months ago #157032

Now that I think about it, the client is selling on eBay, so I guess it wouldn't affect things negatively if I'm understanding it correctly.

From what I see with HikaShop, the PayPayl preferences are all the same regardless of which PayPal plugin you use. And it seems like you can use more than one plugin, so I'm a little unclear on how that would affect things.

I actually do I have the Return url set in HikaShop under PayPal preferences. I've set it to return to the site onto a downloads page so that the user can download the item they've just paid for. Is that setting you're referring to or do you mean from within the Paypal account.

I'm still not sure if this would fix the problem because you are able to re-send these from the Paypal IPN history page which implies that it would work w/o the order having just been placed.

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 0
10 years 6 months ago #157033

I think I got this sorted out. Probably while I was trying to get things working I fiddled with some of the settings I shouldn't have. Specifically, the Invalid status Pending status, and Verified status. Once I set these to Confirmed, my next test order came through fine. Whether this is the "correct" way to do it or not, it works for this simple site where a user pays for an MP3, is returned to the downloads page, and downloads the song. Thanks for your help.

Please Log in or Create an account to join the conversation.

Time to create page: 0.086 seconds
Powered by Kunena Forum