Support

Home Forums Event Espresso Premium Paypal IPN not working with partial payments

Paypal IPN not working with partial payments

Posted: February 13, 2015 at 9:56 am

Viewing 11 reply threads


Erica Neubauer

February 13, 2015 at 9:56 am

I’m using EE3.1.36.5.P and implemented partial payments via the method here:
https://eventespresso.com/wiki/setting-partial-payments-ee/
(although that link doesn’t seem to work anymore, I used it a year ago)

Its been working beautifully, however we realized that none of the partial payments are been recorded in EE on our website even though they go through just fine on Paypal. Any full payments that are made on Paypal are recorded. I’ve already done all the Paypal IPN troubleshooting steps. I searched the forums and found a similar thread:
https://eventespresso.com/topic/paypal-ipn-problems-2/page/12/

I didn’t understand which part of the code on line 27 to remove and there was no response as to whether that worked anyway. Any help would be greatly appreciated, we will have many more partial payments coming in and I’ve already spent hours manually entering them into EE.


Josh

  • Support Staff

February 13, 2015 at 5:00 pm

Hi Erica,

This is the line of code I mentioned in the other thread:

if ($myPaypal->ipnData['mc_gross'] >= $payment_data['total_cost'] && ($myPaypal->ipnData['payment_status'] == 'Completed' || $myPaypal->ipnData['payment_status'] == 'Pending')) {
			$payment_data['payment_status'] = 'Completed';

The idea I had was to remove the first part of the code, which does a comparison to how much money was paid vs how much money is owed. So what happens is if the amount paid equals (or is greater in the case of tax added) the amount owed, then Event Espresso sets the payment status to complete.

My idea for that other thread was to remove that check, because in the case of making a partial payment, the amount paid will actually be less than the amount owed. So the code ends up looking like this:

if ($myPaypal->ipnData['payment_status'] == 'Completed' || $myPaypal->ipnData['payment_status'] == 'Pending') {
			$payment_data['payment_status'] = 'Completed';


Erica Neubauer

February 13, 2015 at 8:10 pm

Hi Josh,
Thank you for your response. I put the code in and tested out it by making a reservation for myself and then making a partial payment. EE has not received any record of it from Paypal. When I look at the paypal.ipn-results.log I can see it there. It seems like it worked (it had the success message: Errors resulting from the execution of curl transfer: [02/14/2015 3:00 AM] – SUCCESS!) but its still not showing in EE. Any ideas? Would the rest of the log result be helpful at all?


Sidney Harrell

February 17, 2015 at 4:11 pm

Hi Erica, terribly sorry, I remember Josh telling me to get with you about this, and I forgot. I think I wrote that thing up a while ago and I think we took it down because it was pretty hard to implement.
Can you fill out the form here: https://eventespresso.com/send-login-details/
I’ll probably need ftp credentials to put some debugging code in, to see what is going on. It sounds like the 2nd payment update is going through the ipn verification, but it’s still not updating the EE payment, for some reason.


Scott Biddle

February 18, 2015 at 9:51 am

I am wondering about this as well. I am looking at needing to have people put in a deposit and then be able to later.


Sidney Harrell

February 18, 2015 at 10:41 am

Hi Scott,
As you can see from Erica’s experience, it’s not something that is easy to do, requires a number of hacks, and takes a lot of massaging to get it to work in EE3. That’s why we took down the unofficial how-to, even though it said at the top that it was officially not supported, it still led to to much support time being spent on it.
It was something that I kind of bore down and forced to make work on my test site, but everybody who has tried to follow along with what I did has trouble with it, including the rest of the support staff. I wouldn’t recommend trying it. Instead I would recommend waiting a little while longer for official support for partial payments in EE4. Work on that feature was blocked until release of 4.6, but now that it’s out, work has resumed, and I would expect to see something in the pre-release channel fairly soon. (officially, we cannot give any firm date on any release. We’re an Agile development shop, and part of that is staying flexible)


Scott Biddle

February 18, 2015 at 10:51 am

Thanks Sidney. I am currently using EE3. How easy is it to switch to EE4 both financially, in midyear, as well as program wise?


Sidney Harrell

February 18, 2015 at 11:06 am

You’re EE3 license comes with EE4. It should be available in your download page. Eventually, we’d like to see everyone move to EE4 as the features that they need are added to EE4. I would recommend trying it out on a development server, or locally, to get a feel for it, make sure it’s feature complete enough for your needs, etc. The core system is much, much better, but with the library of add-ons that was built up for EE3 over the years, we are still racing to add features to EE4 so that all of our customers can switch.


Erica Neubauer

February 18, 2015 at 11:17 am

It would be great if EE4 could do partial payments, we would definitely make the switch!


Erica Neubauer

February 19, 2015 at 9:29 am

Have we gotten anywhere with this? I’ve got a bunch of people who have made partial payments and will need to pay their balances soon. Is my only option at this point to manually enter their payments into Event Espresso?


Josh

  • Support Staff

March 4, 2015 at 5:37 pm

Hi Erica,

Yes, since fully automated partial payment management isn’t currently a feature that’s in Event Espresso 3 or Event Espresso 4 you’ll need to manually enter the partial payments into the admin.


Erica Neubauer

March 4, 2015 at 8:01 pm

Well, amazingly, it is actually working now. I did do the code change mentioned above a week or so ago, and tested it via a new registration and it didn’t seem to work. But now I’ve had tons of successful partial payments go through. Thanks for all your help, whatever just worked, it certainly wasn’t me!

Viewing 11 reply threads

The support post ‘Paypal IPN not working with partial payments’ 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