Support

Home Forums Event Espresso Premium DIfferent payments for different events

DIfferent payments for different events

Posted: September 24, 2012 at 4:04 am


Joel Rey

September 24, 2012 at 4:04 am

As a non profit, we have a social website with WordPress, BuddyPress (plus bbforum) and Espresso Event to organize events.

We have defined Event Admins who are taking care of their events management : announcement, organization, promotion, registration, etc… But to day, they are unable to manage the payment for the participation fees because EE has the only possibility to send payment to only one account for each kind of payment.
For the moment, we are testing and I do everything myself, dispatching things to the testers, but tomorrow, to do it with 50 events managers and 1000 member (we are 787 members today) will take a full time just to dispatch payments to the different Event Admins !

The only solution I’ve found today, is to send the members to a payment page totally independant from Event Espresso (for instance, the article page in WordPress), but loosing all the integration of Event Espresso. Not really very good solution.


Dean

September 24, 2012 at 5:20 am

Hello Joel,

I do understand what you are saying here, and it is something that we are actively discussing inhouse.

As it stands there is no way to have multiple payment gateways or a gateway per event.

In future versions of Event Espresso we will be looking to add new features that allow event website owners more flexibility in this area, though the exact details and timescale for this are still being discussed.


Joel Rey

September 24, 2012 at 7:55 am

Please place it on top of things to do : I keep Event Espresso because it is VERY useful for FREE event (but in this case I do not need all the fetaures of EE) or if people have to send checks. But it is so close than unusable with on line payment (except if you install one EE per bank account), that in fact I cannnot use it.


Sidney Harrell

September 24, 2012 at 9:25 am

Hey Joel,
I just realized there is a quick and dirty way to do exactly what you want without extensive code modification. Which gateway are you using? And are you using the Multiple Event Registration add-on?


Joel Rey

September 24, 2012 at 8:19 pm

Hi Sydney,
Well, I am based in Europe, and we have different kinds of payment systems, but I think that the most usable in your list here is paypal. Normally, our event admins do not use paypal, but it would be an acceptable solution to force them compared to a non operational system !
I didnt installed Multiple Event Registration for the moment.

I was also thinking to a solution : just before generating the button for paypal payment, could you replace inside the link to paypal the email of site owner by the email of the “owner” (the one who created the event)? In the future, it would be better to have a new field, but for the moment, it would allow to use Event Espresso, even if we have only paypal !


Sidney Harrell

September 25, 2012 at 11:06 am

That’s pretty much what I was thinking, except put “paypal_account” into the event_meta for the event, then have the gateway check the event_meta for that field before using the regular payment settings field as a default. We could probably get other gateways to use a similar check, or even check the event_meta for which gateway to use based on the event.
It’s actually a lot easier to do this without the MER introducing complications like 2 events in the shopping cart by different event managers using different accounts. That’s why I was asking.


Joel Rey

September 26, 2012 at 3:54 am

Oh yes, I see !
No I am not using the MER.

But I am very much interested by your solution that would allow me to use the payment. Maybe to put it with an information to not use in conjunction of multiple events with different accounts for the different events ?


Joel Rey

September 26, 2012 at 10:26 am

Dean, Sydney,

I have a proposal to solve this problem, and I insist to solve it because i am sure that it covers a lot of non profit organizations.

  1. Check if it is is multiple event
    1.a. If yes, just take the main email for payment
    1.b. If single event, check if there is an payment email in the definition of event. If no, take the main email. If yes, replace the email in gateway button by payment email of the event.

I think that this would do the thing.

The future solution to sort the whole would be to generate several payments if products in the cart are to be paid to different accounts.
But I cannot wait the time to develop this and the two tests should not be so difficult and would not change anything for those who do not need it but will open a whole filed of customers …


Sidney Harrell

September 27, 2012 at 9:25 pm

Hey Joel,
Try changing the start of the paypal/paypal_vars.php file to be:

function espresso_display_paypal($payment_data) {
global $wpdb;
extract($payment_data);
$event_meta = event_espresso_get_event_meta($event_id);
include_once ('Paypal.php');
$myPaypal = new EE_Paypal();
echo '<!-- Event Espresso PayPal Gateway Version ' . $myPaypal-&gt;gateway_version . '-->';
global $org_options;
$paypal_settings = get_option('event_espresso_paypal_settings');
$paypal_id = empty($paypal_settings['paypal_id']) ? '' : $paypal_settings['paypal_id'];
if (!empty($event_meta['paypal_id'])) {
    $paypal_id = $event_meta['paypal_id'];
}
$paypal_cur = empty($paypal_settings['currency_format']) ? '' : $paypal_settings['currency_format'];

And then put the paypal_id in the event meta.


Joel Rey

September 29, 2012 at 8:12 am

Yeah, nice shot !

Thank you Sidney, it works !!!

Well, I had a strange behaviour when testing because I was in the same time the buyer and the seller, and paypal does not like this so much, but by the end, it works.

This is really a big step for us as we are able at least to let people organize events !

The support post ‘DIfferent payments for different events’ 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.

Do NOT follow this link or you will be banned from the site!