Support

Home Forums Event Espresso Premium Surcharge for credit cards

Surcharge for credit cards

Posted: December 4, 2019 at 5:42 am


jkornbau03

December 4, 2019 at 5:42 am

How do I add a credit card surcharge that will only go on when they select to pay by Stripe?


jkornbau03

December 4, 2019 at 5:59 am

Also how do I handle registrations for a camp setting? It wants to make the primary attendee the parent but they obviously aren’t coming to camp. I made the child the primary attendee but that causes problems with their account then being in the child’s name along with payments in child’s name with auto fill.


Tony

  • Support Staff

December 5, 2019 at 4:54 am

Hi there,

How do I add a credit card surcharge that will only go on when they select to pay by Stripe?

Currently, we don’t have the option to add a surcharge onto specific payment methods, it may be possible with some custom code but depending on the location of the users registering onto your site you may run into issues when doing this.

For example if the registrant is from the EU, PSD2 effectively bans surcharges.

See: https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers

Also how do I handle registrations for a camp setting? It wants to make the primary attendee the parent but they obviously aren’t coming to camp. I made the child the primary attendee but that causes problems with their account then being in the child’s name along with payments in child’s name with auto fill.

EE isn’t best suited for registration setups that split the attendee from the purchaser, it can be done but requires some workarounds.

When you say the account is in the child’s name, are you automatically registering the user from the registration form?

You can set up custom questions for a ‘purchaser’ (aka Parent) and use the answers to those questions in say the emails, invoice etc but the autofill will need some custom code to swap out the details.

Is there an event I can run a registration on to view your current set up? I can then advise further from there.


jkornbau03

December 10, 2019 at 3:52 am

This reply has been marked as private.


Tony

  • Support Staff

December 11, 2019 at 5:51 am

Ok, so right now you have the questions set up how you would need them to be.

Collecting the Child’s info using the ‘First Name’, ‘Last Name’ system questions and the parents using custom questions

(Side note – ‘Camper’s Birthdate’ is set up as a number input so it cant be set to a date currently)

I made the child the primary attendee but that causes problems with their account then being in the child’s name

With this do you mean the child name is replacing the parents name on the WP User account? If so you can disable that within the WP User integration add-on.

Event Espresso -> Registration from -> User integration settings.

Set ‘Always sync contact information with WP user profile?’ to No and update.

along with payments in child’s name with auto fill.

Will it work for you if we disable the aufo-fill on all of the fields within a payment method?


jkornbau03

December 11, 2019 at 6:06 am

How do we disable auto fill on certain payment options?

Also I took the birthdate off of dates because it wants to do them American style of month/ day/year instead of European of day/month/year. Any idea of how to change the setup?


Tony

  • Support Staff

December 11, 2019 at 11:55 am

How do we disable auto fill on certain payment options?

You would need a snippet that targets those specific payment methods to display.

Which payment methods do you want this disabled on?

Also I took the birthdate off of dates because it wants to do them American style of month/ day/year instead of European of day/month/year. Any idea of how to change the setup?

The datepicker should use the date format set within WordPress itself.

Dashboard -> Settings -> General -> Date format.

Is that currently set to m/d/Y? If so change it to d/m/Y and the datepicker should use that format.


jkornbau03

December 12, 2019 at 5:19 am

So I changed the settings and it still shows up wrong in the date picker.

As far as payments it would be Stripe that needs to not be auto fill with Camper’s info instead Parent’s information would be nice.

How do I have the information in the registration phase be auto filled with what is in the WordPress User information?

Is there a better way to do donations? Because if you look at my events I setup up a “ticket” as a donation. This means they have to fill in registration information for it which is bad.


jkornbau03

December 12, 2019 at 5:22 am

Also in the date picker it shows from 2010-2028 as the year options. The only way to go before that is click up the list say 2010 and then if you open the year the drop down then shows earlier. Why would it not allow me to scroll and why does it go in the future?


Tony

  • Support Staff

December 13, 2019 at 4:31 am

So I changed the settings and it still shows up wrong in the date picker.

Then it’s likely something else is overriding the default setting and explicitly setting that format.

I’ll need to see the datepicker on the page to see what is happening, can you add it to the form?

As far as payments it would be Stripe that needs to not be auto fill with Camper’s info instead Parent’s information would be nice.

You’ll need custom development to pull in values from other locations that what EE uses currently, I can give you a snippet to disable the autofill.

How do I have the information in the registration phase be auto filled with what is in the WordPress User information?

Which fields are you referring to?

You’ll likely need custom development for this as EE uses the WP user account for the system questions, which you can’t use as that would then be the child info.

Is there a better way to do donations? Because if you look at my events I setup up a “ticket” as a donation. This means they have to fill in registration information for it which is bad.

Within Event Espresso itself, you need an additional ticket as you do now.

There is a 3rd party add-on that allows you to assign ‘values’ to questions on the registration here:

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

You could use that for donation without a ticket.

Also in the date picker it shows from 2010-2028 as the year options. The only way to go before that is click up the list say 2010 and then if you open the year the drop down then shows earlier. Why would it not allow me to scroll and why does it go in the future?

Again I’ll need to see the datepicker question to see what is happening.

Can you create a test event that doesn’t require log in so I can view it? You can set it to password protected and post the password here to prevent others from registering onto it.


jkornbau03

December 13, 2019 at 4:50 am

Okay I setup an event called “test” the password is BCM2019.

As far as auto fill for user information. If the user inputs their address and phone number and stuff like that into their account, I want that to be auto filled if possible.


jkornbau03

December 13, 2019 at 5:15 am

Also do I have to pay the annual premium in order to continue to use your product next year?


Tony

  • Support Staff

December 16, 2019 at 2:28 am

Ok, so that date picker isn’t the one EE uses, it looks like the ‘Event Planner Pro’ add-on is loading its own version and replacing all other instances on your site.

Are you still using the above plugin? If you temporarily deactivate it and refresh the registration page, does the date picker work as expected then?

As far as auto fill for user information. If the user inputs their address and phone number and stuff like that into their account, I want that to be auto filled if possible.

We have some snippets that will pull Address info (from the System Address questions not the WP User profile) here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/jf_filter_address_answer_for_wpuser.php

If you want to pull details from the WP User account specifically, you’ll need some custom development, if you are not familiar with PHP you’ll need the help of a developer to create something like the above.

However, we do have a snippet that saves the previously used answer and autofills them on the next registration, will that work for you?

That is available here:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/mn_wp_user_addon_save_custom_answers_too.php

You can add either/both of those to a custom functions plugin on your site, we have some documentation on creating one here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


jkornbau03

December 16, 2019 at 8:04 am

This reply has been marked as private.


Josh

  • Support Staff

December 16, 2019 at 8:07 am

Can you verify that the new plugin is activated, and also verify that you’re logged in with a user account that has previously registered where the same questions were asked?


jkornbau03

December 16, 2019 at 8:47 am

This reply has been marked as private.


Tony

  • Support Staff

December 16, 2019 at 10:21 am

Actually, that snippet may not work for your setup as it uses the EE_Contact linked to your user account, in your case you may not have a contact linked because your system questions do not match your user profile data.

If you check the profile page in the admin for the user you tested above, do you see a ‘View linked contact’ button, like this – https://monosnap.com/file/I0sE8s7aPQ30jRnuUMDDvhaAi3E3B4

If not you going to need some custom code to work for your specific set up.


jkornbau03

December 17, 2019 at 5:46 am

No I don’t have that “View linked contact” button. Should/can I set it up to link the data?


Tony

  • Support Staff

December 18, 2019 at 6:08 am

I’m not going to say you should, as EE expects the contact to be assigned to a WP User account that matches its details and all of our snippets expect that, so doing so may not work well but it’s easy enough to test (problem is you’ll still need something custom to do this for you automatically during registration as currently, EE will not).

On the above test account you used you can follow the steps here:

https://gist.github.com/joshfeck/2165ff295c968f861cef8775fc8b1dc9

You find the ID of the WP User account, then find the ID of the EE Contact and use the code snippet with Debug Bar + Console to apply that to the user. EE will then have a contact linked to the user and the above should work but you’ll want to fully test it to make sure it works as expected.


jkornbau03

December 18, 2019 at 6:42 am

This seems a bit above my skill level for programming. Is there anything else you can suggest?

Also the advertisement page says there is a GDPR support that allows us to show someone all the data we hold on them. It also says we can easily delete their data if asked. Do you know how that is done?


Tony

  • Support Staff

December 18, 2019 at 7:05 am

This seems a bit above my skill level for programming. Is there anything else you can suggest?

Whichever way you go from here you’re going to need some help from a developer as what you are trying to do is outside EE’s normal flow so I’d recommend getting in touch with someone who can build out the functionality you need.

We have some developers familiar with Event Espresso listed here:

https://eventespresso.com/developers/event-espresso-pros/

Or you could try the folks a codeable.

Also the advertisement page says there is a GDPR support that allows us to show someone all the data we hold on them. It also says we can easily delete their data if asked. Do you know how that is done?

We hook into the WP GDPR compliance feature and add any EE data we have o the user into that so its in Dashboard -> Tools.

You should have ‘Export Personal Data’ and ‘Erase Personal Data’

So for example, if you go to ‘Export Personal Data’ and enter the email of address the user that requested their data it will send them an email confirming that, you’ll then see the request in the table and can download the data from that by hovering over the email.

The support post ‘Surcharge for credit cards’ 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