Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    I have exactly the same problem: Instructions to Customer on Custom Payment Gateway doesn’t work.

    It’s actually a very useful plugin, but like that is an important part missing, which makes the plugin less useful.

    If that problem could be resolved, it would be great.

    thank you

    I have the same problem, anyone find another solution?

    This is a neglected project. You can see that the developer is retired.

    Hello, has anyone solved this yet?

    Many of us appreciate your work and would like to know if you are working to solve the problem with the, thank you page and notification by eMail.

    Surely many of us we would be willing to buy a Pro Version low cost.

    Thank you very much.

    PS: After much searching a solution, I am pleased share another plugin I have discovered and solved the problem:

    https://github.com/mcguffin/woocommerce-payforpayment
    (Note: the developer warns of incompatibility with PayPal policy and, support with coupons).

    Hello! I fixed this problem. You must add the following code in the plugin files between:

    ‘options’ => $shipping_methods,
    ‘desc_tip’ => true,
    )
    );

    }

    and

    /* Process the payment and return the result. */
    function process_payment ($order_id) {

    function is_available() {
    		global $woocommerce;
    
    		if ( ! empty( $this->enable_for_methods ) ) {
    
    			if ( is_page( woocommerce_get_page_id( 'pay' ) ) ) {
    
    				$order_id = (int) $_GET['order_id'];
    				$order = new WC_Order( $order_id );
    
    				if ( ! $order->shipping_method )
    					return false;
    
    				$chosen_method = $order->shipping_method;
    
    			} elseif ( empty( $woocommerce->session->chosen_shipping_method ) ) {
    				return false;
    			} else {
    				$chosen_method = $woocommerce->session->chosen_shipping_method;
    			}
    
    			$found = false;
    
    			foreach ( $this->enable_for_methods as $method_id ) {
    				if ( strpos( $chosen_method, $method_id ) === 0 ) {
    					$found = true;
    					break;
    				}
    			}
    
    			if ( ! $found )
    				return false;
    		}
    
    		return parent::is_available();
    	}

    Didn′t work.

    Running:
    Wordpress 3.9.2
    Woocommerce 2.1.12

    Open
    class-wc-custom_payment_gateway_1

    Add action at line 39 beneath other two actions
    add_action( 'woocommerce_thankyou_wcCpg1', array( $this, 'thankyou' ) );

    Instruction now appears on thankyou page

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Instructions to Customer on Custom Payment Gateway doesn't work’ is closed to new replies.