Title: integration problem
Last modified: February 25, 2019

---

# integration problem

 *  [swatipriya](https://wordpress.org/support/users/swatipriya/)
 * (@swatipriya)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/integration-problem-5/)
 * Hello,
 * I have Installed GTPay to my WordPress website and activated it using merchant
   id and hash key.
    But, when I am trying to test GTpay payment option by placing
   order, It is not redirecting me to GTpay ,it simply redirects me to my website
   home page and order is not getting placed. I don’t know where i am going wrong.
   if anyone have idea about this please help

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [swatipriya](https://wordpress.org/support/users/swatipriya/)
 * (@swatipriya)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/integration-problem-5/#post-11245893)
 * Thanks in advance
 *  [Nitish Thakrar](https://wordpress.org/support/users/blissnitish/)
 * (@blissnitish)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/integration-problem-5/#post-11351827)
 * You need to change in gtpay-payment.php
 * replace function by below code.
 *     ```
       function process_payment($order_id) {
                   global $woocommerce;
                   $order = new WC_Order($order_id);
                   return array(
       	        	'result' => 'success',
       				'redirect'	=> $order->get_checkout_payment_url( true )
                   );
               }
       ```
   
 *  [jamesonkeju](https://wordpress.org/support/users/jamesonkeju/)
 * (@jamesonkeju)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/integration-problem-5/#post-11632287)
 * Thank for the update, I have updated this and now I got to the point of redirecting
   me to gtpay and I got another error
 * Server Error in ‘/OrangeLocker’ Application.
    The resource cannot be found. Description:
   HTTP 404. The resource you are looking for (or one of its dependencies) could
   have been removed, had its name changed, or is temporarily unavailable. Please
   review the following URL and make sure that it is spelled correctly.
 * Requested URL: /orangelocker/gtpaym/tranx.aspx
 * Any other suggestion?
 *  [heywhydot16](https://wordpress.org/support/users/heywhydot16/)
 * (@heywhydot16)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/integration-problem-5/#post-11668378)
 * I’m currently facing this problem. Any advice?
 *  [jekayode](https://wordpress.org/support/users/jekayode/)
 * (@jekayode)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/integration-problem-5/#post-12172797)
 * Hello [@jamesonkeju](https://wordpress.org/support/users/jamesonkeju/) and [@heywhydot16](https://wordpress.org/support/users/heywhydot16/)
 * Open icludes/settings.php and update line 12 as below:
 * `"s_payment_endpoint" => "http://gtweb.gtbank.com//GTPay/Tranx.aspx",`
 * Let me know if this helps

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘integration problem’ is closed to new replies.

 * ![](https://ps.w.org/gtpay-woo-payment-gateway/assets/icon-128x128.png?rev=1294116)
 * [GTPay Woocommerce Payment Gateway](https://wordpress.org/plugins/gtpay-woo-payment-gateway/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/gtpay-woo-payment-gateway/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/gtpay-woo-payment-gateway/)
 * [Active Topics](https://wordpress.org/support/plugin/gtpay-woo-payment-gateway/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gtpay-woo-payment-gateway/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gtpay-woo-payment-gateway/reviews/)

 * 5 replies
 * 1 participant
 * Last reply from: [jekayode](https://wordpress.org/support/users/jekayode/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/integration-problem-5/#post-12172797)
 * Status: not resolved