Support

Home Forums Event Espresso Premium Populating Credit Card Payment Form

Populating Credit Card Payment Form

Posted: September 1, 2020 at 7:44 pm

Viewing 8 reply threads


JohnB

September 1, 2020 at 7:44 pm

We use the “system questions” to capture the “attendee’s” details and “custom questions to capture the “Payer’s” details.

When the “pay by credit card” option is selected, the credit card payment form is populated with some “primary registrant” details ie first and last names etc.

Is there anyway to control this and populate with the PAYER details?


Tony

  • Support Staff

September 2, 2020 at 6:21 am

Hi John,

Which payment method are you using?


JohnB

September 2, 2020 at 7:27 am

Credit card payments by eWay

In conjunction with the eWay add-on/ plugin https://wordpress.org/plugins/eway-payment-gateway/


JohnB

September 2, 2020 at 7:29 am

When I wrote

When the “pay by credit card” option is selected, the credit card payment form is populated with some “primary registrant” details ie first and last names etc.

I was referring to when a client is making the payment and selected “pay by c/card etc.


Tony

  • Support Staff

September 2, 2020 at 3:30 pm

Hi John,

I understand, but the fields are controlled by the specific payment method in question (so in this case the eWay payment method).

There are some hooks within Event Espresos that can be used to change those field, but not to answers from specific registration questions.

They can be set to be empty if that helps?


JohnB

September 2, 2020 at 3:39 pm

Hi Tony,
If the payment form opened with blank fields that is fine.
How do we set that up?


Tony

  • Support Staff

September 2, 2020 at 4:06 pm

Adding something like this to the site should do it:

add_filter('FHEE__EE_Billing_Attendee_Info_Form__populate_from_attendee', '__return_empty_array()');

Add that to either your themes functions.php file or a custom functions plugin if you already have one.


JohnB

September 2, 2020 at 4:09 pm

Thank you.


Tony

  • Support Staff

September 2, 2020 at 4:21 pm

You’re most welcome.

Viewing 8 reply threads

The support post ‘Populating Credit Card Payment Form’ 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