log = $log; } public function register() { add_action( 'wp_dashboard_setup', array( $this, 'register_widget' ) ); } public function register_widget() { wp_add_dashboard_widget( 'msmswc_dashboard_widget', 'NotifySMS', array( $this, 'display_widget' ) ); } public function display_widget() { $api_key = notifysms_get_options( 'notifysms_woocommerce_api_key', 'notifysms_setting', '' ); $api_secret = notifysms_get_options( 'notifysms_woocommerce_api_secret', 'notifysms_setting', '' ); $notifysms_rest = new NotifySMS( $api_key, $api_secret ); try { //$balance = json_decode( $notifysms_rest->accountBalance() ); if ( $api_key && $api_secret ) { ?>

Please setup API Key and API Secret in 360Notify settings

log->add( '360MessengerWhatsApp', 'Failed get balance: ' . $exception->getMessage() ); ?>

There's some problem while showing balance, please refresh this page and try again.