Support

Home Forums Event Espresso Premium Discount Codes Values Not Correct When Processed by USAePay Module.

Discount Codes Values Not Correct When Processed by USAePay Module.

Posted: December 18, 2016 at 5:17 pm

Viewing 15 reply threads


Brad Slusher

December 18, 2016 at 5:17 pm

We’ve had this issue for a long while, and could not resolve it using any methods suggested on previous support forum posts.

Event Espresso version 3.1.37.11.P
WordPress version WP 4.7

Here are the steps:
– Create a discount code (save5) which will discount an event by $5
– Create an event with a price of $6
– Apply discount code, and price to customer displayed after application is $1
– Customer checks out via credit card, and charge is processed and appears in Event Espresso as paid
– BUT the customer is actually charged $4 as reflected by their bank statement
– Payment Status shows Completed and price paid as $1

This same transaction when processed by PayPal is correctly charged $1 BUT:
– The Thank You page response is incorrect:
Payment Date: <-blank
Amount Paid/Owed: $1.00 Incomplete
Payment Status: Incomplete
– The confirmation emails sent the customer are correct
– The Payment Status shows completed on Payment Details page

We have confirmed that caching (WP Rocket) is disabled on the following:
/event-registration/
/thank-you/
/transactions/
/registration-cancelled/
/my-events/
/wp-admin/


Tony

  • Support Staff

December 19, 2016 at 7:52 am

Hi Brad,

Can you link us to an event we can use to view this one please?


Brad Slusher

December 19, 2016 at 8:15 am

Sure! Here’s the URL to the test event:
https://uncorkedcanvas.com/event-registration/?ee=2366


Brad Slusher

December 19, 2016 at 8:38 am

Note: We have also encountered a problem with USAePay when applying a % discount amount, whereby the customers bank account is charged 1/2 the amount of the discount (e.g. if the discounted amount is supposed to be $3, the customers bank account is debited $1.50). You can test using the save50 discount code, which is supposed to discount the amount by 50%.


Josh

  • Support Staff

December 19, 2016 at 12:15 pm

Hi Brad,

I ran a few test registrations on your site, and checked the hidden inputs that get sent to USAEpay, and those amounts are correct:

Screenshot of $6 ticket – $5 discount = $1.00 total amount

Screenshot of $6 ticket – 50% discount = $3.00 total amount

Those amounts should be what’s getting processed as payments on USAepay’s end, but you can check with them to see if any other amounts are being added after the billing form is sent.

With PayPal, if you refresh the Thank you page after a brief moment, does the payment information update to be correct?


Brad Slusher

December 19, 2016 at 12:30 pm

I’ll follow-up with USAePay to see what they are getting on their end. When no discount code is involved the payments go through as expected and the correct amount is charged to the credit card.

As for PayPal, if I wait a few seconds and refresh the page, the correct values and status are shown.

Example:
Payment Type: PayPal
Payment Date: December 19, 2016
Amount Paid/Owed: $3.00 Completed
Payment Status: Completed


Josh

  • Support Staff

December 19, 2016 at 12:55 pm

The PayPal IPN is slow. So what you could do is add a message to the Thank You page that instructs PayPal payers to refresh the page if the payment hasn’t posted to your website yet.


Brad Slusher

December 19, 2016 at 1:03 pm

Here’s what USAePay is showing when looking at the transaction details on their end:
Amount: 9:00
Discount: 5.00
Amount (charged): 4.00

Even though in the transaction description appended to the bottom of the report, it shows:
SKU Item Cost Qty Subtotal Taxable
1 Attendee: Brad Slusher $1.00 1 EA $1.00 N
Members Admission for Test Event – DO NOT REGISTER


Josh

  • Support Staff

December 19, 2016 at 1:12 pm

Your ticket price isn’t even $9.00, so no idea why USAEpay is getting that amount. You might try clearing your browser’s cache, then test the registration again. You can inspect the Pay with credit card button to check the inputs that get sent to USAepay while you’re testing to make sure the input fields are correct.


Brad Slusher

December 19, 2016 at 1:25 pm

Tried a completely different browser with cache cleared. Same results:

Payment Type: USAePay
Payment Date: December 19, 2016
Amount Paid/Owed: $1.00
Payment Status: Completed

Actual amount charged = $4


Josh

  • Support Staff

December 19, 2016 at 1:46 pm

Did you happen to inspect the payment form’s html to see what was set for the amount hidden input value?


Brad Slusher

December 19, 2016 at 11:07 pm

The value is: <input name=”amount” type=”hidden” value=”1.00″>

BUT, i’m not sure how/where any of the rest of the info such as the description is getting passed to USAePay. It does not appear in the form’s HTML anywhere as far as I can tell.


Tony

  • Support Staff

December 20, 2016 at 7:36 am

Hi Brad,

We had a look into the USAePay gateway and believe we have found the problem when using promo codes. The gateway has been updated and the changes are currently up for review however if you would like to test the updated version its available here:

http://take.ms/2LUEe

Place the usaepay_onsite folder within /wp-content/uploads/espresso/gateways/

EE will use the ‘custom’ version from that location in place of the original.

The changes to the gateway basically remove the promotion code from being sent to USAePay.


Brad Slusher

December 20, 2016 at 11:43 am

That’s seems to have fixed the problem! I’ve tested both a $5 discount code, and a 50% discount code and the amount debited to the account is now correct.

I appreciate you driving this to a resolution. That’s what customer support is all about!


Tony

  • Support Staff

December 20, 2016 at 5:06 pm

Great, I’m glad it’s working correctly now and thank you for keeping us updated.

As long as no additional issues are found during review/testing this will be included in the next update to EE3.


Josh

  • Support Staff

July 17, 2017 at 1:14 pm

Event Espresso 3.1.37.12 was released today and it includes a fix for the issue you reported here.

Viewing 15 reply threads

The support post ‘Discount Codes Values Not Correct When Processed by USAePay Module.’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso