Support

Home Forums Event Espresso Premium Paypal Hidden Input

Paypal Hidden Input

Posted: September 4, 2014 at 11:03 am

Viewing 4 reply threads


Wes Wilke

September 4, 2014 at 11:03 am

Is there somewhere I could add a hidden input to pass certain varaibles to Paypal?

ie. <intput type=”hidden” name=”handling” value=”4.2″ />


Dean

September 5, 2014 at 1:22 am

Hi,

EE4 doesn’t use hidden fields for PayPal, but the PayPal data can be found here /wp-content/plugins/event-espresso-core-reg/modules/gateways/Paypal_Standard/EE_Paypal_Standard.class.php

We are in the middle of re-writing the gateways, and one feature that is being added is the ability to add an extra charge dependant on the gateway, which may be of use to you once it becomes available.


Sidney Harrell

September 5, 2014 at 2:51 am

Ok, there are 2 parts to this, so bear with me:
The first thing you will need to do is add and activate this custom plugin:
https://raw.githubusercontent.com/sidharrell/EE4custom/master/CustomEE4FunctionsPlugin.php
The second part is a modification to the core EE4 plugin to allow that custom function to work. I have added this modification our repository and submitted a ticket to have it included in a future release. Depending on the dev team’s workflow, it should be included within 1-3 releases. So until then you will need to go into plugins/event-espresso-reg/modules/gateways/Paypal_Standard/EE_Paypal_Standard.class.php and add the following at line 411:

 do_action( 'AHEE_EE_Paypal_Standard_form_build', $this);

right after:

$this->addField('no_shipping ', $no_shipping);


Wes Wilke

September 5, 2014 at 7:41 am

Sidney – I have followed these steps, and a new item appears at PayPal checkout, but it shows Sales Tax at $0.00

https://www.evernote.com/shard/s445/sh/ab4d528d-a5d5-4eca-a1eb-fc714d76e621/a1a32712ac6ee54f3d90158585271fda


Sidney Harrell

September 10, 2014 at 9:03 pm

Can you tell if it is passing the handling field in the request? You may need to watch the network tab in the chrome developer tools during the checkout process. Can you provide a link so that we can examine the request?

Viewing 4 reply threads

The support post ‘Paypal Hidden Input’ 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