• 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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi, can enabled debug mode and check the log file?

    PeggyLP

    (@peggylp)

    Hi,
    I continue to have this problem:

    FAILURE :Error! Post payment price validation failed. The price amount may have been altered. This transaction will not be processed.
    FAILURE :Original total price: 389. Paid total price: 330.65
    FAILURE :IPN product validation failed.

    Can anyone offer a solution?

    Thanks,
    Peggy

    mbrsolution

    (@mbrsolution)

    Hi, have you set up your PayPal IPN?

    PeggyLP

    (@peggylp)

    Hi,
    Yes, PayPal IPN is enabled.

    PeggyLP

    (@peggylp)

    Also, my buyer used a discount code. I wonder if the problem might be related to that.

    mbrsolution

    (@mbrsolution)

    You might want to check the discount code your buyer used? Make sure it is a valid code.

    PeggyLP

    (@peggylp)

    Hello,
    The discount is valid and worked as it should. It was a 15% discount and as you can see from my original post, they paid $330.65 from an original price of $389.00.

    mbrsolution

    (@mbrsolution)

    Hi, just looking at your log file again. Your IPN is not passing? I know you said that you have enabled this feature in your PayPal account. Can you double check to make sure it is set correctly. Then try and carry a test transaction. Then check the log file and make sure the following FAILURE :IPN product validation failed. shows as success.

    Hello,
    This problem was resolved with update 4.1.6.

    Thank you,
    Peggy

    Hi Peggy, great news ??

    Can you mark this support thread as resolved if you have not already done so.

    Thank you

    Hello,
    I am not the originator of this post so I don’t know how to mark it resolved. I will gladly do it if you tell me how.

    Thank you,
    Peggy

    Sorry @peggy I realized after I had posted my comment that you are not the creator of the support thread.

    Sorry for the confusion.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘WordPress Simple Paypal Shopping Cart: Post payment price validation failed.’ is closed to new replies.