Support

Home Forums Event Espresso Premium Verify Payment EE_Single_Page_Checkout process_attendee_information()

Verify Payment EE_Single_Page_Checkout process_attendee_information()

Posted: March 10, 2020 at 1:55 pm


info@bhaa.ie

March 10, 2020 at 1:55 pm

Hi,
We use this filter to process the answers to custom questions on the assumption that payment has been completed

FHEE__EE_Single_Page_Checkout__process_attendee_information__valid_data_line_item

When implemented this filter action, is there a recommended way to verify a payment transaction was completed successfully?. From the $request_parameter is there a way to access the payment transaction details.

We’ve seen one of two cases where we’ve processed an users registration when a payment was no confirmed or declined.
Any advise would be appreciated,
Paul


Josh

  • Support Staff

March 10, 2020 at 2:34 pm

Hi,

That particular filter is applied during the attendee information step, so no there isn’t a way to verify payment because the payment step hasn’t happened yet.

There is an action hook that fires when payment is a success:
AHEE__EE_Payment_Processor__update_txn_based_on_payment__successful


info@bhaa.ie

March 10, 2020 at 2:50 pm

Is there an existing example of the parameter/s that are provided to this action hook. If i can access the ‘primary_registrant’ and ‘EVT_ID’ i think i’d have enough information.


Josh

  • Support Staff

March 10, 2020 at 3:15 pm

The parameters are the $transaction and $payment objects. Here’s a link to the hook in its source file:
https://github.com/eventespresso/event-espresso-core/blob/master/core/EE_Payment_Processor.core.php#L549

Here’s a link to a support topic where this hook was discussed in greater detail:

https://eventespresso.com/topic/getting-payment-and-transaction-objects-from-hook-after-payment-is-applied/

The support post ‘Verify Payment EE_Single_Page_Checkout process_attendee_information()’ 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