Support » Plugin: Jigoshop » receipt action for new payment gateway not getting fired

  • Resolved neamtua

    (@neamtua)


    I’m trying to develop a new payment gateway and I’m stuck at something which should work.
    I’m also flying blind here since there is no documentation on how to make a payment gateway.

    I have add_action( 'receipt_mobilpay', array( &$this, 'receipt_page' )); in my class constructor and the function

    function receipt_page( $order ) {
    			echo 'test';
    		}

    The process payment function is this

    function process_payment( $order_id ) {
    
    			$order = new jigoshop_order( $order_id );
    
    			return array(
    				'result' 	=> 'success',
    				'redirect'	=> add_query_arg( 'order', $order->id, add_query_arg( 'key', $order->order_key, get_permalink( jigoshop_get_page_id( 'pay' ))))
    			);
    
    		}

    Everything is the same as other extensions yet on the payment page all I get is the order details and the payment method name. No output from the receipt_page function. I don’t know what else to do.
    There are no errors displayed, I’m in debug mode.

    https://wordpress.org/plugins/jigoshop/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘receipt action for new payment gateway not getting fired’ is closed to new replies.