• Resolved [email protected]

    (@fundiakitayahoocom)


    When I added my api_login on line 41 I got this error:

    Parse error: syntax error, unexpected ‘UFxt8Zc2f’ (T_STRING), expecting ‘]’ in /home2/naacpco1/public_html/wp-content/plugins/wp-donate/includes/donate-display.php on line 41

    Here is my code:
    $METHOD_TO_USE = “AIM”;
    $mysetting = $wpdb->get_results( “SELECT * FROM “.$wpdb->prefix.”donate_setting” );
    define(“AUTHORIZENET_API_LOGIN_ID”,$mysetting[252UFxt8Zc2f]->api_login); // Add your API LOGIN ID
    define(“AUTHORIZENET_TRANSACTION_KEY”,$mysetting[2Jh828472XqdC4360]->key); // Add your API transaction key

    https://www.ads-software.com/plugins/wp-donate/

Viewing 1 replies (of 1 total)
  • Plugin Author ketanajani

    (@ketanajani)

    Hello,

    The parse error occurring because you’ve used invalid code there. Let me explain this in more details.

    $mysetting[0] ($mysetting[252UFxt8Zc2f]) is the variable with values need to be set at admin area from Wp-donate plugin and settings option. Here you can set API LOGIN ID, API transaction key and mode to set environment either live or test.

    Values filled from admin area will be automatically used in plugin so there is no need to change API credentials directly in code instead please use interface at admin area.

    If you need further details or any help then please contact me with more details here https://www.webconfines.com/contact-us/

    Thanks,
    Ketan

Viewing 1 replies (of 1 total)
  • The topic ‘api-login error’ is closed to new replies.