I have integrated pay4later api in my wordpress. I need to show the payment response details after payment success.
My Plugin file:
class WC_Pay4later extends WC_Payment_Gateway{
add_action('woocommerce_api_' . strtolower( get_class( $this ) ), array($this, 'check_response' ) );
function check_response()
{
/* Update Process*/
}
}
I set My return response url is:
www.mysite/pay4later/?wc-api=WC_Payment_GatewayPay4later_check_response.
When I call this it just displays 1.
How can I Fix this?
Here is the skeleton structure of the
Pay4later
payment gateway for woocommerce.