Support » Plugin: WooCommerce PayU India (PayUmoney - PayUbiz) » Get order details on payment success page

  • To get the order ID on the payment success page.
    Find These lines

    
    if('success' == $this->msg['class']) {
    	if ( '' == $this->redirect_page || 0 == $this->redirect_page ) {
    		$redirect_url = $this->get_return_url( $order );
    	} else {
    		$redirect_url = get_permalink( $this->redirect_page );
    	}
    } else {
    	$redirect_url = wc_get_checkout_url();
    }

    and replace them with following lines

    if('success' == $this->msg['class']) {
    	if ( '' == $this->redirect_page || 0 == $this->redirect_page ) {
    		$redirect_url = $this->get_return_url( $order );
    	} else {
    		$redirect_url = add_query_arg( 'order_id', $order_id, $this->redirect_page );
    	}
    } else {
    	$redirect_url = wc_get_checkout_url();
    }
  • You must be logged in to reply to this topic.