We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1d8f31 commit f6d85dfCopy full SHA for f6d85df
1 file changed
src/Services/sdk/MoneiSdkClientFactory.php
@@ -21,10 +21,14 @@ public function __construct( ApiKeyService $apiKeyService ) {
21
public function get_client() {
22
if ( $this->client === null ) {
23
include_once WC_Monei()->plugin_path() . '/vendor/autoload.php';
24
- $config = Configuration::getDefaultConfiguration();
+ $config = Configuration::getDefaultConfiguration();
25
$this->client = new MoneiClient( $this->apiKeyService->get_api_key(), $config );
26
- $this->client->setUserAgent( 'MONEI/WooCommerce/'. WC_Monei()->version );
27
- }
+ $this->client->setUserAgent(
+ 'MONEI/WooCommerce/' . WC_Monei()->version .
28
+ ' (WordPress v' . get_bloginfo( 'version' ) .
29
+ '; Woo v' . WC()->version .
30
+ '; PHP v' . phpversion() . ')'
31
+ ); }
32
return $this->client;
33
}
34
0 commit comments