Magento 1.9x paypal - "unable to initialize express checkout" random error - php

This issue is like randomly occurring in some of the customers. There is this one customer who experienced the issue where after she placed an order using paypal express checkout and it should go back to the site success order page but it goes to shopping cart page saying "unable to initialize express checkout" and then the cart is empty. This issue occurs to some of users but not all.
I can't seem to track the issue as we tested using paypal sandbox with the same situation with the customer who reported. Logged in, maybe add discount code and then order using paypal express checkout but we can't replicate the error in our numerous test purchase.
Note that most of the customers has no issue occurring to them using paypal express checkout and logged in.
Need help to find the source of issue, or if somebody already experienced this issue and solved it. Thank you!

Related

opencart 2.0.1.0 payment error with paypal when ordering 1 item

We have a opencart 2.0.1.0 setup for over 2 years. Our client report a problem with paypal standard processing at checkout. This has only occurred in the past couple of weeks, it has been working without error before the 28th march.
when the order is processing it goes to Paypal and we get the following error:
'Things don't appear to be working at the moment. Please try again later.'
the url for this page is:
https://www.paypal.com/webapps/shoppingcart/error?flowlogging_id=68742a854b13a&code=ADDRESS_ERROR&mfid=1491730428804_3441ea66ee65a
There are no errors in the error logs in opencart or in the server logs.
The checkout has a onestep check module installed with guest checkout only, there is no shipping or taxes applied.
I have tried all kinds of product variations, including removing options, required fields, etc and always get the same error as the clients and their customers get.
As PayPal was the only payment method, I turned on 'Cash On Delivery' option and the orders process as they should so the problem is with Paypal.
I have checked all settings incase the client has changed something without realizing but everything appears to be ok.
I then ordered 2 products and it worked, the Paypal page loaded with the paypal guest login page with all the correct details.
I tried several combinations of orders including ordering 2 units of one product. This time the payment error with paypal occurred again.
So if I order 2 products it works as it should. There is no minimum order total option in opencart so this isn't causing a problem.
As everything was working ok previously, and i cant find any errors in the cart ordering I am at a lost as to why this is happening. Can anyone help please, I have lodge a t ticket with paypal but it will take from 24-48hrs for their reply.
I am having the same issue. Have a look at the following. I think it may be due to a PayPal update done on March 31st
https://www.antropy.co.uk/blog/opencart-paypal-standard-error-after-march-31st-2017-update/

Paypal Pro not showing shipping methods in magento

I am using paypal pro express checkout in magento 1.6 when I try to paypal pro express checkout from cart or product page its redirect to paypal page but there is no shipping option showing in paypal page for select shipping method.
Here is image from product page
Here is paypal page image
From image you can also get more idea
Any one know how to do it ?.
Yes it is correct. Paypal pro express checkout work similar. When User Click on Pay now Button. User will again redirect on Site, On Paypal Express Order Review Page.
Where user will have the option to sleecte applicable shipping method and click on Place Order button to place order finally.
The answer from Pankaj Pareek is absolutely correct. This is the checkout flow on Magento for Paypal Express. Note that your question title is misleading, whether you are using Paypal Payments Pro or Paypal Standard is irrelevant - when the user clicks the button from the cart or product page they are using Paypal Express to check out.
Magento's default Paypal Express checkout flow is dire - it actually takes longer to check out this way than a normal checkout as there's a ludicrous review step. You should note that even though you are using 1.6 it has not improved in the intervening 4.5 years despite them being bought by ebay.
Basically it's a backend config option to pass the shipping methods across.
However there is a bug which means its the id that gets shown in Paypal, not the label. It looks awful in Paypal. I stuck a module to fix it up in this answer;
https://magento.stackexchange.com/questions/6945/paypal-express-shipping-methods/#answer-50290
And other than this small problem the communication on shipping between Paypal and Magento works really well. User updates the address and the shipping options update etc.
You can further improve this flow by removing the review stage altogether in Magento. That is a bit harder, there are modules you can buy that help. It all massively improves conversion rates, it is well worth doing.

Magento Paypal order placed but incorrect redirect

I am working with Magento V1.9.1.1.
I have entered the correct details for the sandbox account into the Website Payments Standard (Includes Express Checkout) "configure" area and enabled the solution.
When I put an item in the cart and pay with paypal, it takes you away to a paypal "pay site" to which I log in with the test buyer account and pay for the transaction. When I click the continue button it takes me back to my website to a review order page in which the user has to select a shipping method.
Once selected you then click the "place order button" it takes you to:
http://www.domain.co.uk/checkout/cart
with a message saying:
Unable to initialize Express Checkout.
You have no items in your cart.
Note: The purchase is visible within the paypal developer sandbox. Also the order is placed correctly within Magento Sales->Orders.
It just seems to not take the user to the right place.
Any help on this would be appreciated.
Unable to initialize Express Checkout.
This error is thrown when the following condition is true:
if (!$quote->hasItems() || $quote->getHasError())
It seems that the order is placed before the submit button is clicked and so the cart becomes empty and !$quote->hasItems() becomes true

Magento + PayPal express - user comes back without shipping method

I have a Magento website with the PayPal express payment option. I'm trying to skip the review page when my costumers pay with PayPal. As was mentioned in a former thread (Magento: easy way to remove "paypal/express/review" step), this can be easily achieved by writing an extension that changes a few line in the controller, and this behavior is actually built into v1.9.
However, these solutions didn't work for me. The built-in option apparently did nothing, and the review page was still there. The workarounds proposed in the former thread caused an infinite loop between the actions "placeOrder" and "review".
After a long time, I have now found out that when the user comes back from PayPal, the system doesn't recognize the shipping method selected in the PayPal checkout screen, and accordingly sends the user back to the review page to select a shipping method.
Has anyone ever encountered that or have any solution in mind? I am using Magento 1.9.1.0, and PayPal express is in sandbox mode.

My Stock gets deducted with empty cart if redirected to third party like paypal if order is not even completed

The Problem i am facing is whenever I place order lets suppose payment method is PayPal I am redirected to PayPal website . When i press back from browser my stock gets deducted and i cant see order in My Account also my Cart goes empty . At admin side order is listed as Pending Payment I have to cancel that in order to restore my payment.
Its magento's basic functionality in order to convert such customers into potential ordering ones though calling or emailing.
Below listed plugin would help you :
http://www.magentocommerce.com/magento-connect/magento-pending-orders-automatic-cancelation-with-stockreleaser-by-soon.html
Try PayPal Express instead. The order only will get created in Magento once paid in PayPal. Very easy to implement and saves a big headache of trying to deal with all the side effects of the PayPal Standard setup.

Categories