I used correct information for payflow. But with the debug

I used correct information for payflow. But with the debug turned to true from the config page these are the errors:

Notice: Undefined index: api_pass in /home/mornin70/public_html/wp-content/plugins/coursepress/includes/marketpress/marketpress-includes/plugins-gateway/payflow.php on line 59

Notice: Undefined index: api_sig in /home/mornin70/public_html/wp-content/plugins/coursepress/includes/marketpress/marketpress-includes/plugins-gateway/payflow.php on line 60

Notice: Undefined index: locale in /home/mornin70/public_html/wp-content/plugins/coursepress/includes/marketpress/marketpress-includes/plugins-gateway/payflow.php on line 62

there is no signature line in the plugin menu but it is asking for this.

  • Vinod Dalvi
    • WP Unicorn

    Hi @iBabko,

    Thanks for posting on the forum.

    I could reproduce this notices by using Paypal Payflow payment gateway and setting wp_debug true therefore i have notified the plugin developer about it so that it can be fixed.

    I have also asked the developer about why in the code it's handling API signature and locale as there isn't any payment option for it.

    This is a simple PHP notices and most of the time it doesn't affect any functionality si it is nothing to worry about!

    Just you have to set WP_DEBUG to true in your wp-config.php file. This will hide the warning messages and you will be able to use your site normally.

    In the meanwhile you can fix it by modifying the following MarketPress plugin file on line number 58 as below.

    MarketPress plugin file :
    marketpress/marketpress-includes/plugins-gateway/payflow.php


    Before Editing:

    $this->API_Username = $settings['gateways']['payflow']['api_user'];
    $this->API_Password = $settings['gateways']['payflow']['api_pass'];
    $this->API_Signature = $settings['gateways']['payflow']['api_sig'];
    $this->currencyCode = $settings['gateways']['payflow']['currency'];
    $this->locale = $settings['gateways']['payflow']['locale'];

    After Editing:

    $this->API_Username = $settings['gateways']['payflow']['api_user'];
    $this->API_Password = $settings['gateways']['payflow']['api_pwd'];
    if( isset($settings['gateways']['payflow']['api_sig']) )
      $this->API_Signature = $settings['gateways']['payflow']['api_sig'];
    $this->currencyCode = $settings['gateways']['payflow']['currency'];
    if( isset($settings['gateways']['payflow']['locale']) )
      $this->locale = $settings['gateways']['payflow']['locale'];

    Thanks,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.