I am working on a custom payment gateway using Eway Shared Payments API for Membership Plugin.
I have an issue with handling the response back from the payment gateway after the payment is done.
As described in many posts on wpmu, I started with taking gateway.paypalexpress.php file as a reference to create my custom payment gateway for Eway.
I wrote a simple static code that sends a request URL to eway, gets a token id using CURL & then redirects user to the payment gateway page for payment.
The payment is done successfully but when it returns back with a response, the response is not fetched.
I had added the response-handling code in handle_eway_return() [handle_paypal_return()] method on "membership_handle_payment_return_" hook.
But that didn't work.
So i even tried adding the response-handling code in the class' constructor.
But it shows just a blank white screen on returning. [WP_DEBUG is set to true]
However when I am using Eway Shared API's sample code file that handles response I was able to fetch the response after payment is done & redirection occurs from gateway's page to website.
I just had to set its path as value in ReturnUrl parameter when request is made.
I have attached the custom payment gateway file with this post.
Thanks in adv.