Support

Home Forums Event Espresso Premium Fill Tax Value for passing to PayPal

Fill Tax Value for passing to PayPal

Posted: September 27, 2018 at 8:45 am


Matt

September 27, 2018 at 8:45 am

Is there a way to force a value into the Tax field before passing to PayPal. We are using a customization to calculate Multi-Province tax rates with Percent Modifiers, but there is no way to get that to PayPal. Is there a function to take the value we have in Javascript and push it into the Tax variable before the handover?


Josh

  • Support Staff

September 28, 2018 at 1:01 pm

Hi,

You could do something like the code example from this item in the snippet library:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_ee_apply_transaction_surcharge.php

In a nutshell that’s taking a value from the registration form, then conditionally adding a transaction surcharge based on the answer of a question on the registration form.


Matt

October 1, 2018 at 5:30 am

Is there a way to make that dynamic. Also, I’m concerned that will duplicate the charge since it’s already in price modifiers.

Is there a way to take it out of Price Modifiers and put it into Tax?


Matt

October 1, 2018 at 5:43 am

Actually…found another one from a previous user post that utilizes: https://gist.github.com/joshfeck/d4c013dd1b64807fee2e8d4c4d237456

This looks like what I need. Will try that.


Matt

October 1, 2018 at 7:01 am

Is there a way to apply this at the ticket level instead of on the whole purchase?
https://gist.github.com/joshfeck/d4c013dd1b64807fee2e8d4c4d237456/revisions


Josh

  • Support Staff

October 1, 2018 at 7:32 am

That code was intended for applying the surcharge to the transaction amount.


Matt

October 1, 2018 at 10:54 am

Is there anything for applying a percent increase to a single ticket?


Josh

  • Support Staff

October 1, 2018 at 11:19 am

The price modifier add-on (available from a third-party developer) should be able to do that:

http://aparnascodex.com/downloads/price-modifier-for-event-espresso-4/


Matt

October 1, 2018 at 11:39 am

That doesn’t really work. Price Modifiers work perfectly on the EE end, but they don’t pass as “Tax” to PayPal. All I really need to do is take the subtotal of the Price Modifiers I already have and pass them to PayPal via IPN. Is there something that can do that?


Josh

  • Support Staff

October 1, 2018 at 11:50 am

You might try opening an issue on GitHub, label the issue with “Question” and “Payment Method”. One of the developers may be able to offer some insight on how to pass that information to PayPal.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Josh 1 week, 6 days ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!