Title: process_payment function not working as expected
Last modified: March 10, 2022

---

# process_payment function not working as expected

 *  [arunsahadeo](https://wordpress.org/support/users/arunsahadeo/)
 * (@arunsahadeo)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/process_payment-function-not-working-as-expected/)
 * The public function **process_payment**, starting on line 1136 in file trust-
   payments-gateway-3ds2/classes/class-wc-tp-gateway.php, does not send a status
   back to WooCommerce, nor does it send a redirect URL. It also doesn’t mark the
   order status as complete or empty the cart, as the function in the class it extends,
   WC_Gateway_Cheque, does.

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

 *  Thread Starter [arunsahadeo](https://wordpress.org/support/users/arunsahadeo/)
 * (@arunsahadeo)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/process_payment-function-not-working-as-expected/#post-15460560)
 * This is even with the latest version of the plugin installed (1.2.0)
 *  Thread Starter [arunsahadeo](https://wordpress.org/support/users/arunsahadeo/)
 * (@arunsahadeo)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/process_payment-function-not-working-as-expected/#post-15473480)
 * The class that is extended by the WC_TP_Gateway class (defined in trust-payments-
   gateway-3ds2/classes/class-wc-tp-gateway.php), i.e. WC_Gateway_Cheque (found 
   in woocommerce/includes/gateways/cheque/class-wc-gateway-cheque.php), returns
   an array with two parameters within the process_payment function (which is also
   defined in WC_TP_Gateway), one of which is called result and is set to success.
 * WooCommerce does not receive anything from the process_payment function defined
   in the WC_TP_Gateway class, therefore it has no way of knowing whether or not
   the transaction was successful.
 *  [murrayelliot2](https://wordpress.org/support/users/murrayelliot2/)
 * (@murrayelliot2)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/process_payment-function-not-working-as-expected/#post-15560865)
 * “This plugin has been closed as of April 5, 2022 and is not available for download.
   This closure is temporary, pending a full review” it looks like they’re having
   issues with the developers/code.
 * I’ve left trust payments because of the issues, which is a shame, because when
   the plugin worked, the service was really good and I liked working with their
   platform.
 * Meantime I’ve gone to Sellxed and Zion payments. The Sellxed plugin is excellent
   and much more fully featured, but I’d be happy to go back to Trust if they ever
   sorted it out.
 *  Thread Starter [arunsahadeo](https://wordpress.org/support/users/arunsahadeo/)
 * (@arunsahadeo)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/process_payment-function-not-working-as-expected/#post-15631345)
 * The latest version of the plugin, 1.2.5, still does not resolve this issue.

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

The topic ‘process_payment function not working as expected’ is closed to new replies.

 * ![](https://ps.w.org/trust-payments-gateway-3ds2/assets/icon.svg?rev=2580296)
 * [Trust Payments Gateway for WooCommerce (JavaScript Library)](https://wordpress.org/plugins/trust-payments-gateway-3ds2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/trust-payments-gateway-3ds2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/trust-payments-gateway-3ds2/)
 * [Active Topics](https://wordpress.org/support/plugin/trust-payments-gateway-3ds2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/trust-payments-gateway-3ds2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/trust-payments-gateway-3ds2/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [arunsahadeo](https://wordpress.org/support/users/arunsahadeo/)
 * Last activity: [4 years, 1 month ago](https://wordpress.org/support/topic/process_payment-function-not-working-as-expected/#post-15631345)
 * Status: not resolved