Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Adding SQUARE payment processing? | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Adding SQUARE payment processing?

Adding SQUARE payment processing?

Posted: October 24, 2013 at 7:29 am

Viewing 5 reply threads


Dori Settles

October 24, 2013 at 7:29 am

I’d like to add a link to our SQUAREUP account on the payment page. I understand that there won’t be any hooks to update the database as paid. I’m looking for suggestions as to the best way to go about this – I thought about editing one of the other payment methods to have a link to Square. We’re currently using Paypal as the only payment method, and requiring payment in order for the registration to be confirmed. Any suggestions are appreciated! Thank you.


Sidney Harrell

  • Support Staff

October 24, 2013 at 11:41 am

You can add the code below (modify to suite, of course) to:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.


Dori Settles

October 25, 2013 at 2:59 pm

Hi, this is my first time editing EE code… so please bear with me…

Do I need to add the code to both functions and custom_functions?
Is there a specific location in teh functions file I should include the code?
What is my end result after adding the code – will it create a new payment gateway, or automatically add Square to the payment screen for registration?
Should I be replacing the square.com with my full item url for the customer to check out?

Thank you!


Sidney Harrell

  • Support Staff

October 25, 2013 at 5:12 pm

Do I need to add the code to both functions and custom_functions?

No, only add it to one of those 3 options.

Is there a specific location in teh functions file I should include the code?

Probably the easiest for you would be to use the third option, download the zip in the link, upload it as a plugin to your site through the wp-admin plugins interface and activate it. Then access the site’s files over ftp and go to the wp-content/plugins/CustomFunctionsPlugin/ folder and open the file CustomFunctionsPlugin.php and add the above code to the bottom of the file, below the comment block (that’s the plugin header).

What is my end result after adding the code – will it create a new payment gateway, or automatically add Square to the payment screen for registration?

It will just add the link to square to the payment screen, next to the paypal button.

Should I be replacing the square.com with my full item url for the customer to check out?

Yes, replace the href value (what’s in quotes next to href=) with the full item url that you get from square. Also replace the image src (what’s in quotes next to src=) with a link to an appropriate button image. (square should provide a link or an image file that you can upload to the media section of WP)


Sidney Harrell

  • Support Staff

October 25, 2013 at 5:18 pm

I did a little digging and according to this: https://squareup.com/help/en-us/article/3853-square-api square does not offer any way for us to build a full EE payment gateway.


Dori Settles

October 28, 2013 at 6:51 am

Thank you Sidney for your assistance. I used the plugin, made the edits and added a target=blank so it would pop a new tab since it won’t hook back in. Now I just need to do a little playing on the square side to see how I want to set up price points, most of my classes are the same price, but there’s a few that are different.

Viewing 5 reply threads

The support post ‘Adding SQUARE payment processing?’ 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 - Staging Server