mdiniz Posted April 2, 2013 Share Posted April 2, 2013 Hello all I'm having a problem and need some assistance. I went through the paypal module and I see it making calls to the NVP API (SetExpressCheckout, GetExpressCheckoutDetails and DoExpressCheckoutPayment). When I finish a payment, the order status changes to Payment Accepted. However, if I log in on my PayPal account (both buyer and seller), the payment is pending there, so no real money in my account. The result of the call DoExpressCheckoutPayment has payment_status as 'Pending', when I would expect 'Completed'. How to handle such case? As far as I understand, this module doesn't implement IPN, so it seems to me that once DoExpressCheckoutPayment is executed, there's no other action to update the status in the paypal_order table, am I right? Should I implement IPN? Right now the user can cancel a payment on his paypal account and that would cause a mess in my system. If you need more information to be able to help me out, please let me know. Thank you Marcelo Link to comment Share on other sites More sharing options...
Doulas Akula Posted April 2, 2013 Share Posted April 2, 2013 What version of PS and paypal are you using. Am using PS - 1.4.7.0 and Paypal 2.8.7. For me it works fine. A client pays and the payment reflects in my back end as payment accepted and in paypal as complete. My settings in Paypal module configuration is direct sales for payment type. You may also have to check your own paypal merchant account for configurations settings being used. Link to comment Share on other sites More sharing options...
mdiniz Posted April 2, 2013 Author Share Posted April 2, 2013 Sorry, I should have mentioned the versions. I use Prestashop 1.5.3.1 and PayPal module 3.4.6, so I think it's a whole different deal. My settings in the PayPal module are also for direct sales. I am not sure what is to be configured in my merchant account, I'll check again but I would appreciate someone to explain to me. Thank you Link to comment Share on other sites More sharing options...
mdiniz Posted April 4, 2013 Author Share Posted April 4, 2013 I checked this issue out again and it happened that in PayPal sandbox (which is what I was using) you have the option to turn payment reviews on and off, and it was turned on, so all the payments had a 'Pending' status. When I turned it off, the payments started being 'Completed' and everything went on fine. However, in cases where a payment is really put under review by PayPal (their fraud detection mechanism could do that, for instance), then the order goes straight to the Payment accepted state, when it should go to 'Awaiting for PayPal payment' (configuration name PS_OS_PAYPAL, which happens not to be used anywhere in the code). I patched the module locally but it would be good to have it done for everyone. Also, for this cases, when the payment is cleared, PayPal issues a IPN request, and we need to read this data and update the order (the other option is to update the order manually when the payment is cleared, but who wants to do that?). Right now I don't see any code listening on IPN requests, please let me know if there's any, if there is, I want to use it. Thank you! Link to comment Share on other sites More sharing options...
benjamin utterback Posted April 4, 2013 Share Posted April 4, 2013 Hi mdiniz, yes in sandbox mode all PayPal transactions would be marked as Pending. I will go ahead and mark this thread as Pending thank you! Link to comment Share on other sites More sharing options...
mdiniz Posted April 5, 2013 Author Share Posted April 5, 2013 Thank you Benjamin So I had another look at the code and it seems there is a controller waiting for IPN notifications. However, that's only for the Hosted Solution option (HSS) (have a look where notifyurl is set on hookPayment function), and I would like to have it to the Express Checkout option as well. I would assume the code is pretty much the same, but I would let it to the official developers. Can the IPN implementation be ported to the Express Checkout option as well? Thank you, cheers! Link to comment Share on other sites More sharing options...
Guest locen Posted May 24, 2016 Share Posted May 24, 2016 (edited) even now all paypal transaction are pending in sandbox? prestashop 1.6.0.9 paypal 3.10.8 please help me. i made test in sandbox mode and i have "waiting for paypal payment" in not sandbox mode I can pay. I make this test because after 17 June Paypal will change standard security. If i see "waiting for paypal payment" after 17June i will not able to receive payments? please help me Edited May 24, 2016 by locen (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now