Support » Plugin: WooCommerce » SagePay form error

  • Can anyone help please?

    I know it’s a longshot as i am still waiting for an answer from woothemes people, i am encountering this error when i try to integrate sagepay form (bought at woothemes):

    Fatal error: Call to undefined function WC() in /homepages/wp-content/plugins/woocommerce-gateway-sagepay-form/classes/class-sagepay-form.php on line 27

    turns out its to do with the success message page when the customer has paid successfully, which is all hard coded in.

    How can i fix this error please?

    Sage pay cant help as they do not deal with 3rd party plugins!

    https://wordpress.org/plugins/woocommerce/

Viewing 1 replies (of 1 total)
  • here is what i have on line 27:

    $this->id = ‘sagepayform’;
    $this->method_title = __( ‘SagePay Form’, ‘woocommerce_sagepayform’ );
    $this->method_description = __( ‘SagePay Form works by sending the user to SagePay to enter their payment information.’, ‘woocommerce_sagepayform’ );
    $this->icon = apply_filters( ‘wc_sagepayform_icon’, ” );
    $this->has_fields = false;
    $this->liveurl = ‘https://live.sagepay.com/gateway/service/vspform-register.vsp’;
    $this->testurl = ‘https://test.sagepay.com/gateway/service/vspform-register.vsp’;
    $this->simurl = ‘https://test.sagepay.com/Simulator/VSPFormGateway.asp’;

    $this->successurl = WC()->api_request_url( get_class( $this ) );

Viewing 1 replies (of 1 total)
  • The topic ‘SagePay form error’ is closed to new replies.