Support

Home Forums Event Espresso Premium Creating a payment gateway with no IPNs

Creating a payment gateway with no IPNs

Posted: February 3, 2016 at 7:52 pm

Viewing 5 reply threads


ontoa

February 3, 2016 at 7:52 pm

Hi,

So I’m working on an offsite payment gateway addon for EWay, but they do not send IPNs.

The way they work is you request an “access code”, which can be queried once the user has returned to EE.

But in that case handle_payment_update() is not called on my gateway class, which seems to be because the return request was not an IPN.

I imagine this has happened before, so is there a common solution for it?

Create a PHP page to fake an IPN somehow?

Thanks


Tony

  • Support Staff

February 4, 2016 at 3:58 am

Hi Ontoa,

That sounds similar to how the Mijireh gateway works.

I’ll ask one of the developers if they can help provide a little more info but in the meantime I would recommend taking a look within the Mijireh payment method as they don’t send IPN’s either so it should help point you in the right direction.


ontoa

February 4, 2016 at 1:31 pm

Cool, thanks very much Tony.


ontoa

February 4, 2016 at 3:47 pm

In case someone else has the same trouble, I needed to add this function to my payment method class.

public function finalize_payment_for($transaction) {
return $this->handle_ipn($_REQUEST, $transaction);
}

(from EE_PMT_Mijireh.pm.php)

Thanks for the help.


Tony

  • Support Staff

February 5, 2016 at 4:22 am

Thanks for sharing, I’m glad you got it working 🙂

Do you have any plans regarding releasing the payment method at all?


ontoa

February 8, 2016 at 6:45 pm

Hi Tony,

Sure, I’ll probably put it on Github as GPL3 once it’s been tested live for a little while. Feel free to fork it or whatever when that happens.

Viewing 5 reply threads

The support post ‘Creating a payment gateway with no IPNs’ 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