Support

Home Forums Event Espresso Premium Adding Fee to Paypal checkout

Adding Fee to Paypal checkout

Posted: August 5, 2015 at 2:40 pm

Viewing 3 reply threads


Joshua Foshee

August 5, 2015 at 2:40 pm

I know there was a customer that added this to functions.php:

function add_pp_args($args){
 
  $ppamt = $args['amount_1'] + $args['tax_cart'];
  $ppamt = ( ($ppamt * .026) + .30 ); 
  $ppamt = number_format((float)$ppamt, 2, '.', '');
  //remove debug
  foreach($args as $key => $val) if( substr($key,-2) == '_2' ) unset($args[$key]);
  $args['item_name_2'] = "Booking and Service Fee";
  $args['amount_2'] = $ppamt;
  $args['quantity_2'] = 1;
  return $args;
}
 
add_filter('FHEE__EEG_Paypal_Standard__set_redirection_info__arguments','add_pp_args');

But which functions.php do you add it too?

/wp-content/plugins/event-espresso-core-reg/public/Espresso_Arabica_2014
or
/wp-includes

The first doesn’t accomplish anything and the second shows a error when I try to load the website.


Lorenzo Orlando Caum

  • Support Staff

August 5, 2015 at 3:05 pm

redacted – Event Espresso support team – LOC


meremetia

August 6, 2015 at 1:04 am

thanks so much for this it is really handy.
any chance to have this integrated in EE4 and when creating an event there will be an option like “pass PayPal (or any other processing) costs to customer”?

then we can enter a formula (% or fixed cost) to the events that this applies

thanks for your consideration


Dean

August 6, 2015 at 5:47 am

Hi,

I can’t guarantee inclusion, but I’ll certainly add your idea to our feature request list!

Viewing 3 reply threads

The support post ‘Adding Fee to Paypal checkout’ 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