Title: api-login error
Last modified: August 22, 2016

---

# api-login error

 *  Resolved [fundiakita@yahoo.com](https://wordpress.org/support/users/fundiakitayahoocom/)
 * (@fundiakitayahoocom)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/api-login-error/)
 * 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://wordpress.org/plugins/wp-donate/](https://wordpress.org/plugins/wp-donate/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ketanajani](https://wordpress.org/support/users/ketanajani/)
 * (@ketanajani)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/api-login-error/#post-5285396)
 * 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 [http://www.webconfines.com/contact-us/](http://www.webconfines.com/contact-us/)
 * Thanks,
    Ketan

Viewing 1 replies (of 1 total)

The topic ‘api-login error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-donate.svg)
 * [WP Donate](https://wordpress.org/plugins/wp-donate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-donate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-donate/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-donate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-donate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-donate/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)
 * [syntax error](https://wordpress.org/support/topic-tag/syntax-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [ketanajani](https://wordpress.org/support/users/ketanajani/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/api-login-error/#post-5285396)
 * Status: resolved