Custom gateway not work =\
-
The plugin works perfectly on some gateways I have installed.I recently added a new payment method and added the same code:
however ‘getnet-creditcard’ and ‘getne-pix’
are not working, the configuration fields do not appear on these gateways.function woa_custom_statustocancel_hook( $status ) { // More explication on WooCommerce status : https://docs.woocommerce.com/document/managing-orders/ $status[] = 'wc-pending'; $status[] = 'wc-on-hold'; $status[] = 'wc-failed'; //$status[] = 'wc-processing'; //$status[] = 'wc-completed'; //$status[] = 'wc-refunded'; return $status; } add_filter( 'woo_cao_statustocancel', 'woa_custom_statustocancel_hook', 10, 1 ); function woa_custom_gateways_hook( $gateways ) { $gateways[] = 'iugu-credit-card'; // Credito IUGU. $gateways[] = 'iugu-pix'; // Iugu $gateways[] = 'pagseguro'; // Pagseguro $gateways[] = 'getnet-creditcard'; // CC Getnet $gateways[] = 'getnet-pix'; // Getnet return $gateways; } add_filter( 'woo_cao_gateways', 'woa_custom_gateways_hook', 10, 1 );
Is there any global solution that I can include the cancellation time that works for all gateways?
I need to cancel orders waiting and pending payment within 1 hour as a global solution for any payment method, is this possible?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom gateway not work =\’ is closed to new replies.