We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5e20d8 + faec8c8 commit 576baadCopy full SHA for 576baad
1 file changed
src/Service/Gateway.php
@@ -30,6 +30,8 @@ class Gateway
30
{
31
const FIRST_NAME_LAST_NAME_MAX_LENGTH = 100;
32
const USER_AGENT_PRODUCT_NAME = 'PayPlug-OroCommerce';
33
+ const USER_AGENT_OROCOMMERCE_VERSION_PREFIX = 'OroCommerce/';
34
+ const PAYPLUG_MODULE_COMPOSER_NAME = 'payplug/payplug-orocommerce';
35
36
/**
37
* @var DoctrineHelper
@@ -230,7 +232,8 @@ protected function initPayplugClientAndSetDebugModeForLogger(PayplugConfigInterf
230
232
231
233
HttpClient::addDefaultUserAgentProduct(
234
self::USER_AGENT_PRODUCT_NAME,
- $this->versionHelper->getVersion()
235
+ $this->versionHelper->getVersion(self::PAYPLUG_MODULE_COMPOSER_NAME),
236
+ self::USER_AGENT_OROCOMMERCE_VERSION_PREFIX . $this->versionHelper->getVersion()
237
);
238
239
return $client;
0 commit comments