Support

Home Forums Event Espresso Premium Add Paypal fee to transation

Add Paypal fee to transation

Posted: April 17, 2016 at 5:07 am

Viewing 5 reply threads


k9nosetime

April 17, 2016 at 5:07 am

Hello i am using Paypal and Direct Deposit – with the Paypal I want to add the paypal fee to this amount – I saw this post previously

https://eventespresso.com/topic/add-paypal-fee-to-transaction/

and just wondered if there were any updates and an easy way to achieve this please? needed urgently if anyone know please….


k9nosetime

April 19, 2016 at 1:54 am

can anyone please let me know if there is a way for me to add the paypal fee – I saw in an older post that adding this to functions.php will do this but can anyone confirm please?

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');
  • This reply was modified 8 years, 5 months ago by Tony. Reason: Code formatting


Tony

  • Support Staff

April 20, 2016 at 2:39 am

That code ‘works’ in that it will add an additional amount onto your PayPal payments – http://take.ms/YJLLW

However note that it does this as late as it possibly can, when the user is redirected to PayPal, which means Event Espresso does not have any of the information that was added by the above.

This means that when the user returns to the site after paying through PayPal EE is expecting X value to be paid, however the user paid X + Y (X being the value of the ticket Y being the additional fee added by the above)

EE will identify this as an overpayment when the user returns to the site and show Y as an overpayment on registration overview – http://take.ms/vGNrP

Note that the above function likely goes against the PayPal User Agreement shown here: https://www.paypal.com/webapps/mpp/ua/useragreement-full#4

Section 4.5 indicates no surcharges can be charged for PayPal transactions so its not something EE or PayPal currently support.


k9nosetime

April 20, 2016 at 5:56 am

thanks Tony – its just when offering a lot of courses at $200 or more each, the Paypal fee is substantial when you have over 100 or more users registering….it seems unfair that the person running the courses has to pay the Paypal fee

we accept DD Cheque and Paypal so its hard to make the course fee enough to cover Paypal fees as some users wont pay using Paypal and then are unfairly paying more.

it would be good if there was some work around for this….

Sue


Lorenzo Orlando Caum

  • Support Staff

April 20, 2016 at 6:46 am

Please see my reply here:

https://eventespresso.com/topic/you-can-make-a-payment-here-link-not-working/#post-201003


Lorenzo


k9nosetime

April 20, 2016 at 8:44 am

thanks!

Viewing 5 reply threads

The support post ‘Add Paypal fee to transation’ 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