Support

Home Forums Community Forum Payment Gateway Development – Too many redirects

Payment Gateway Development – Too many redirects

Posted: May 15, 2016 at 4:27 pm

Viewing 2 reply threads


hojati

May 15, 2016 at 4:27 pm

Hello Folks,

i am currently wirting a paypal plus gateway for event espresso. Everthing seems fine so fare. The only thing is if i am navigating off the gateway to the last page i got an error that says that there are too many redirects generated (see stack trace):

https://www.dropbox.com/s/w02djcxh4amp5x8/stack.pdf?dl=0

The important code part is taken from the gateway skeleton and is like that:

if (!isset($update_info['paymentId'])) {
return null;
}

// [PayPal Api Calls]

if ($payment instanceof EEI_Payment && $pppPayment->getState() == "approved") {
$payment->set_status($this->_pay_model->approved_status());
$payment->set_gateway_response(__('Payment Approved', 'event_espresso'));
}

return $payment;

Anyone an idea who to prevent this redirection loop?


hojati

May 17, 2016 at 2:37 pm

Hello Folks,

i managed to remove this error. It seemes that my zend debug extension is making this error. And this error occurs one the “new payment method” sekleton from github too. So maybe one of the developers should take a eye on that. Its important to set “use seperate ipn” to no.

cheers


Lorenzo Orlando Caum

  • Support Staff

May 19, 2016 at 12:31 pm

Hello,

If you get stuck in the future on the new payment gateway, the you might try reaching out to our developers directly via our Github project:

https://github.com/eventespresso/event-espresso-core/issues


Lorenzo

Viewing 2 reply threads

The support post ‘Payment Gateway Development – Too many redirects’ 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