WordPress Simple Paypal Shopping Cart: Post payment price validation failed.
-
Shipping was 1 Euro and product costed 2 for this test.
The debug log told me:[07/21/2015 2:13 PM] – SUCCESS :Item Quantity: 1
[07/21/2015 2:13 PM] – SUCCESS :Item Total: 3.00
[07/21/2015 2:13 PM] – SUCCESS :Item Currency: EUR
[07/21/2015 2:13 PM] – SUCCESS :custom values
[07/21/2015 2:13 PM] – SUCCESS :
Array
(
[wp_cart_id] => 173
[ip] => 79.251.28.103
)
[07/21/2015 2:13 PM] – SUCCESS :Order post id: 173
[07/21/2015 2:13 PM] – FAILURE :Error! Post payment price validation failed. The price amount may have been altered. This transaction will not be processed.
[07/21/2015 2:13 PM] – FAILURE :Original total price: 2. Paid total price: 3
[07/21/2015 2:13 PM] – FAILURE :IPN product validation failed.
[07/21/2015 2:13 PM] – SUCCESS :Paypal class finished.In my case this check causes the error (wordpress-simple-paypal-shopping-cart/paypal.php ):
// if($orig_individual_item_total < $individual_paid_item_total){
// $this->debug_log(‘Error! Post payment price validation failed. The price amount may have been altered. This transaction will not be processed.’, false);
// $this->debug_log(‘Original total price: ‘ . $orig_individual_item_total . ‘. Paid total price: ‘.$individual_paid_item_total, false);
// return;
// }
//*** End of security check ***When I commented out the security check it works again in my case
- The topic ‘WordPress Simple Paypal Shopping Cart: Post payment price validation failed.’ is closed to new replies.