Plugin Author
mra13
(@mra13)
PayPal sends the IPN to the plugin for ALL transactions (credit card, paypal everything).
If the plugin is not getting IPN from PayPal then that means there is an issue in your PayPal account.
Enable the debug option in the plugin and check to see if the plugin receives the IPN message from PayPal after the payment. If it doesn’t receive the IPN then thats where the issue is.
First make sure, your IPN is enabled in your PayPal account:
https://www.tipsandtricks-hq.com/ecommerce/how-to-setup-paypal-ipn-notification-2796
Hi,
Thanks for your quick reply.
I have checked that my paypal IPN is enabled.
Second, when people pay money through their own PayPal account(not credit card), it Work!. I can see all data in cart orders in work press.
But if they choose credit card option in PayPal, then problem occur. The cart orders is remain empty and no data return.
That seems strange.
Thanks
On the other hand, I have set the coupon code for my items.
After checking the debug code, the error seems occur with the discount price. (this is using credit card through paypal)
And my debug code is as follow:
[12/02/2015 7:57 AM] – SUCCESS :Item Quantity: 1
[12/02/2015 7:57 AM] – SUCCESS :Item Total: 0.01
[12/02/2015 7:57 AM] – SUCCESS :Item Currency: HKD
[12/02/2015 7:57 AM] – SUCCESS :Custom values
[12/02/2015 7:57 AM] – SUCCESS :
Array
(
[wp_cart_id] => 1760
[ip] => 60.15.246.21
[coupon_code] => xxxxxx
)
[12/02/2015 7:57 AM] – SUCCESS :Order post id: 1760
[12/02/2015 7:57 AM] – SUCCESS :Checking price. Original price: 1250. Paid price: 0.01
[12/02/2015 7:57 AM] – FAILURE :Error! Post payment price validation failed. The price amount may have been altered. This transaction will not be processed.
[12/02/2015 7:57 AM] – FAILURE :Original total price: 1250. Paid total price: 0.01
[12/02/2015 7:57 AM] – FAILURE :IPN product validation failed.
[12/02/2015 7:57 AM] – SUCCESS :Paypal class finished.
Follow is the debug code with Paypal Account payment(Not credit card) which is successful. And this kind payment method, no price checking need!
[12/02/2015 8:32 AM] – SUCCESS :Item Quantity: 1
[12/02/2015 8:32 AM] – SUCCESS :Item Total: 0.01
[12/02/2015 8:32 AM] – SUCCESS :Item Currency: HKD
[12/02/2015 8:32 AM] – SUCCESS :Custom values
[12/02/2015 8:32 AM] – SUCCESS :
Array
(
[wp_cart_id] => 1759
[ip] => 60.15.246.21
[coupon_code] => xxxxxx
)
[12/02/2015 8:32 AM] – SUCCESS :Order post id: 1759
[12/02/2015 8:32 AM] – SUCCESS :Paypal class finished.
Plugin Author
mra13
(@mra13)
Please update the plugin. We have just applied an improvement for this in the plugin.
Hi mra13,
Thanks for your updated.
I have update the plugin today.
But after running the test, the error still occur:
Here is the latest debug test:
[12/03/2015 10:21 AM] – SUCCESS :Order post id: 1760
[12/03/2015 10:21 AM] – SUCCESS :Checking price. Original price: 1250. Paid price: 0.01
[12/03/2015 10:21 AM] – FAILURE :Error! Post payment price validation failed. The price amount may have been altered. This transaction will not be processed.
[12/03/2015 10:21 AM] – FAILURE :Original total price: 1250. Paid total price: 0.01
[12/03/2015 10:21 AM] – FAILURE :IPN product validation failed.
[12/03/2015 10:21 AM] – SUCCESS :Paypal class finished.
Plugin Author
mra13
(@mra13)
Are you sure you updated the plugin? Please post a link to your site so I can inspect a couple of things.
Plugin Author
mra13
(@mra13)
Have you done a brand new transaction from a NEW browser (so nothing is cached) for that item? The log is showing that the price of the item is 1250 but when I go to your site, I see the item price to be 680. So that tells me that you have recently changed the price? Also, if I try the coupon “dindin2”, it says the coupon doesn’t exist.
@terrybase, is your issue resolved?
Hi, I am marking this thread as resolved. No replies in 3 months.
Thank you