- This topic has 7 replies, 4 voices, and was last updated 13 years ago by .
Viewing 8 posts - 1 through 8 (of 8 total)
Viewing 8 posts - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Coupon causing post processing failure with authorize.net
I am testing a coupon with a $300 product that reduces the price to $1. The transaction goes through authorize.net but no post processing runs (product email is not sent and the sale is not recorded). The estore_post_payment_debug.log shows:
[03/15/2011 1:41 AM] – SUCCESS :Coupon Code Used : testABC$
[03/15/2011 1:41 AM] – FAILURE :Wrong Product Price Detected. Actual Product Price : 300
[03/15/2011 1:41 AM] – FAILURE :Paid Product Price : 1
followed by a SUCCESS :gateway=authorize message showing the transaction was approved
Lets try to identify if the plugin is having a difficulty retrieving the coupon code from the database.
Can you please create another very simply coupon like the following:
Code: TEST123
Discount: 50%
The rest doesn’t matter for this test so hit the “Save Coupon” button.
Please do another test transaction with this coupon and let me know what the debug shows.
The test123 coupon transaction went through and post processing completed successfully
Okay, can you change your coupon code “testABC$” to “testABC” and give it a try. Not sure if the “$” symbol in the coupon is doing something funny.
test123$ worked as well. Maybe the issue is with fixed discount.
Found the issue… please get a new build of eStore from here and give it a go:
of course – after we customized our estore a ton we just encountered this issue. Amin, do you remember what the fix was? i have downloaded new version of estore to compare to ours – if you could point us in the right direction that would be awesome!
I don’t remember the actual code change but there should be another way to get past it easily. Find the following block of code in the “eStore_process_payment_data.php” file and remove it (that should do the job):
if ($cart_item_data_total < $true_product_price)
{
eStore_payment_debug('Wrong Product Price Detected. Actual Product Price : '.$true_product_price,false);
eStore_payment_debug('Paid Product Price : '.$cart_item_data_total,false);
return false;
}