Support

Home Forums Event Espresso Premium Payment Page After Registration shows wrong TOTAL OWED

Payment Page After Registration shows wrong TOTAL OWED

Posted: November 15, 2013 at 12:52 am

Viewing 4 reply threads


Shannon Graham

November 15, 2013 at 12:52 am

The $value being given to Paypal is TOTALLY wrong. The value on the payment pages are also TOTALLY wrong if there has been a previous payment. To make this request simple (since I’ve hacked the core to death getting the RIGHT AMOUNT OWED to display), I just want to know where the heck the variable is passed to paypal. The example line of code is:
<input type="hidden" name="amount_1" value="400.00"/>

Where is the code that populates the “value” field?

Is it here: * total_cost set by filter_hook_espresso_get_total_cost
I don’t know how the filter_hook stuff works.

I must be an idiot but I have looked EVERYWHERE and I can NOT figure out where this variable is pulled from. I have edited the core to reflect the right cost, as can be seen here:
http://www.empiremeetings.ca/thank-you/?r_id=9-5283cb752dc57

The amount going to paypal should be pulled from a displayed value on the page. If the two amounts are kept in separate places, legal implications ensue when they don’t match up. I don’t understand why payments would not be reflected when someone owes less than the total “cost” of the ticket. The amount going to a payment processor should reflect a balance due.

Regardless, can you tell me where to find this darn variable so I can just change it for now – I have a Go Live in 48 hours and this item was discovered via a complaint from a client on the last event.


Dean

November 15, 2013 at 1:47 am

Hi Shannon,

First off, in what way is the payment amount being passed to PayPal wrong? Is it too much or too little? Are you using Multiple Event Registration or the Price Modifier addons? Before the discovery of the issue, was there any modifications made to the gateway files?

In answer to your question, the amount is held in the $item object array, so $item->orig_price. You can see this in the event-espresso/gateways/paypal/paypal_vars.php file.

“I don’t understand why payments would not be reflected when someone owes less than the total “cost” of the ticket. The amount going to a payment processor should reflect a balance due.”

I’m not entirely sure what you mean by this, but I think you’re referring to partial payments? If so, then Event Espresso does not currently support partial payments which might be why you are having issues here.


Shannon Graham

November 17, 2013 at 12:35 am

The problem is not the partial payment, per se, it is how Paypal and EE don’t seem to get along. I got everything working and then suddenly, Paypal is no longer working at all. Reverted to STOCK and it’s still not working. I have STOCK EE loaded. No custom code AT ALL. And this happens:

1)Register
2) Click Paypal
3) Pay via Paypal
4) Returned to site
5) Payment Pending, no reflection of payment received. I get a successful Paypal txn but it is not recognized by the system whatsoever. Money is gone from Paypal Account, return URL shows Paypal variables have been sent back:

http://www.empiremeetings.ca/thank-you/?r_id=9-5288702e1ca16&type=paypal&tx=6HS72446XK262460C&st=Completed&amt=1.00&cc=USD&cm&item_number

yet there is no accounting for it in my DB. 🙁 HELP!!

http://www.empiremeetings.ca/event-registration/?ee=9


Shannon Graham

November 17, 2013 at 1:35 am

Scratch that. It was an IP error.


Dean

November 18, 2013 at 1:50 am

Hi Shannon,

Does this mean that everything is working now?

Viewing 4 reply threads

The support post ‘Payment Page After Registration shows wrong TOTAL OWED’ 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