Posted: 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? |
|
Hi, You could do something like the code example from this item in the snippet library: 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. |
|
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? |
|
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. |
|
Is there a way to apply this at the ticket level instead of on the whole purchase? |
|
That code was intended for applying the surcharge to the transaction amount. |
|
Is there anything for applying a percent increase to a single ticket? |
|
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/ |
|
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? |
|
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. |
|
The support post ‘Fill Tax Value for passing to PayPal’ 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.