Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Coupon causing post processing failure with authorize.net
- This topic has 7 replies, 4 voices, and was last updated 14 years, 1 month ago by
admin.
-
AuthorPosts
-
March 15, 2011 at 3:07 am #2940
hlandgar
MemberI 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
March 16, 2011 at 12:41 am #30185amin007
ParticipantLets 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.
March 17, 2011 at 1:40 am #30186hlandgar
MemberThe test123 coupon transaction went through and post processing completed successfully
March 17, 2011 at 2:07 am #30187amin007
ParticipantOkay, 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.
March 17, 2011 at 4:40 pm #30188hlandgar
Membertest123$ worked as well. Maybe the issue is with fixed discount.
March 18, 2011 at 12:42 am #30189amin007
ParticipantFound the issue… please get a new build of eStore from here and give it a go:
October 31, 2011 at 4:09 pm #30190jomo5280
Memberof 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!
October 31, 2011 at 11:09 pm #30191admin
KeymasterI 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;
} -
AuthorPosts
- You must be logged in to reply to this topic.