Support

Home Forums Event Espresso Premium Updating Payment Status from script

Updating Payment Status from script

Posted: March 24, 2017 at 3:47 am

Viewing 1 reply thread


subkom

March 24, 2017 at 3:47 am

Hi there,

we are receiving most of our payments via offline methods like wire transfer.

In EE3 we created a script, which frequently polls our bank account to get the incoming payments. then the script is going through these and searching for the corresponding transaction in EE3 via sql queries. if it founds a matching transaction, it is going to update the payment status and fills in the amount payed. afterwards the script sends out an email with the ticket links to the customer.

now we would like to upgrade to EE4, and the script needs to be migrated to. so here are some questions to it:

1. is there a way of using some kind of API in EE4 to update the payment status? something like updateTransaction ( txnid, amountNewlyPayed ). this would be great because we could get rid of the sql

2. if not, what tables/fields need to be updated in EE4 when a payment is done to get it properly displayed in EE4?

3. is there a way, to trigger the “payment received, here are your tickets” mail to be sent by EE4 from the script? like an API sendMessage( paymentSuccess, txnid )

Thanks and kind regards,
stephan


Tony

  • Support Staff

March 24, 2017 at 5:50 am

Hi Stephen,

We don’t provide support for custom coding on the forums but we can help point you in the right direction. I recommend taking a look at the developer documentation we have for how the EE payment methods update the payment within a transaction which can be found here:

https://github.com/eventespresso/event-espresso-core/tree/master/docs/L–Payment-Methods-and-Gateways

And also how the EE_Payment_processor class handles the payments to update the transactions which is within \core\EE_Payment_Processor.core.php.

If stuck you could also create an issue here and of the developers may be able to direct you further.

Viewing 1 reply thread

The support post ‘Updating Payment Status from script’ 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