File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,14 @@ public function __construct( ApiKeyService $apiKeyService ) {
2121 public function get_client () {
2222 if ( $ this ->client === null ) {
2323 include_once WC_Monei ()->plugin_path () . '/vendor/autoload.php ' ;
24- $ config = Configuration::getDefaultConfiguration ();
24+ $ config = Configuration::getDefaultConfiguration ();
2525 $ this ->client = new MoneiClient ( $ this ->apiKeyService ->get_api_key (), $ config );
26- $ this ->client ->setUserAgent ( 'MONEI/WooCommerce/ ' . WC_Monei ()->version );
27- }
26+ $ this ->client ->setUserAgent (
27+ 'MONEI/WooCommerce/ ' . WC_Monei ()->version .
28+ ' (WordPress v ' . get_bloginfo ( 'version ' ) .
29+ '; Woo v ' . WC ()->version .
30+ '; PHP v ' . phpversion () . ') '
31+ ); }
2832 return $ this ->client ;
2933 }
3034}
You can’t perform that action at this time.
0 commit comments