Support

Home Forums Event Espresso Premium How do I display multiple payment options on event registration page?

How do I display multiple payment options on event registration page?

Posted: December 11, 2013 at 12:57 pm

Viewing 4 reply threads


goshen

December 11, 2013 at 12:57 pm

Hi, recently purchased EE and I’d like to know a couple of things:

1. We use Paypal and Tickets.com for our events payment. I see you have Paypal plugin, but how do we set up a non-plugin type gateway like ticket.com which is just a standard link to the gateway site (example link http://purchase.tickets.com/buy/TicketPurchase?&agency=xyz&pid=1234567)?

2. How do we display multiple payment options for visitors to choose from? So for example, on our site, we give visitors the option to pay via Paypal or Tickets.com.

Thanks

  • This topic was modified 10 years, 11 months ago by goshen.


Dean

December 12, 2013 at 4:29 am

Hi,

1) Well it depends. If it is just an offsite link then you could modify one of the templates to add it in. However just doing that wont send any data back to the plugin to confirm that payment has been made. In order to fully integrate it you would have to create a custom gateway using the Tickets.com API if they have one.

2) Excluding tickets.com, offering multiple payment options is as easy as going to the Payment Settings and activating the different gateways you wish to use.

As mentioned in number 1, Tickets.com is not a supported gateway so there isn’t an easy way to include it without either changing some of the templates or creating a custom gateway for it.

Custom gateway documentation: https://eventespresso.com/wiki/custom-gateway-integration/
Recommended developers: https://eventespresso.com/developers/event-espresso-pros/


goshen

December 14, 2013 at 10:52 am

Thanks.
“If it is just an offsite link then you could modify one of the templates to add it in.”

So which of the Expresso templates should I be modifying and will this be a hard coding of the url?

As previously mentioned in the ticket, this is an outbound (offsite) link to tickets.com that I want to make available as an additional payment gateway option to Paypal for my event visitors:

http://purchase.tickets.com/buy/TicketPurchase?&agency=xyz&pid=1234567)?

Any help in integrating this will be highly appreciated.


Josh

  • Support Staff

December 16, 2013 at 1:16 pm

Hi there,

The template that controls the display of the payment options is in /gateways/gateway_display.php. Within it you will find action hooks that can be used to add new payment options. If you use those action hooks you will not need to edit this template directly.


goshen

December 20, 2013 at 9:54 pm

I have spent a few hours trying to add/create a new offline payment option that just links out to tickets.com url format I provided above. I have not had any luck.

I will really appreciate any help here. None of the default payment gateways link out directly to the provider site since they use API calls. Unfortunately, I can not duplicate because Tickets.com does have published API to connect to, so I am limited to using the direct link to their website.

In a nutshell, all I am asking for is help to include an offline payment option that I can add an image button that links to a url like below:
<a href="http://purchase.tickets.com/buy/TicketPurchase?&agency=xyz&pid=1234567"><img src="tickets.png alt="Pay Now via Tickets.com"></a>

Thanks a million for the help.


Josh

  • Support Staff

December 24, 2013 at 9:28 am

Hi there,

Are you familiar with how WordPress action hooks work? If not, here’s a good starting point:

http://wordpress.org/support/topic/fliters-vs-actions-from-a-newbe

With that, if you look in gateway_display.php you’ll find a bunch of lines of code that start with do_action. These are action hooks. Since you’ll be sending them offsite to pay, the one that would likely make sense to use in this case is this one:

do_action('action_hook_espresso_display_offsite_payment_gateway', $data);

You can use this action to add your custom payment button via a custom function. The custom function can include something like this:

  • This reply was modified 10 years, 11 months ago by Josh. Reason: code formatting
Viewing 4 reply threads

The support post ‘How do I display multiple payment options on event registration page?’ 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