Skip to content

Commit

Permalink
Merge pull request #7 from yandex-money/release/v1.1.0
Browse files Browse the repository at this point in the history
Обновлен SDK до версии 1.6.4
  • Loading branch information
tonchik-tm authored Jul 10, 2020
2 parents 019e057 + 22a00e1 commit 6172e28
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### v1.1.0 от 10.07.2020
* Обновлен SDK до версии 1.6.4

### v1.0.2 от 11.04.2019
* Изменен лейбл для ставки НДС с 18% на 20%

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
"homepage": "",
"require": {
"drupal/commerce": "~2.0",
"yandex-money/yandex-checkout-sdk-php": "*"
"yandex-money/yandex-checkout-sdk-php": "^1.6"
}
}
5 changes: 4 additions & 1 deletion src/Plugin/Commerce/PaymentGateway/YandexCheckout.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
*/
class YandexCheckout extends OffsitePaymentGatewayBase
{
const YAMONEY_MODULE_VERSION = '1.0.2';
const YAMONEY_MODULE_VERSION = '1.1.0';

/**
* @property Client apiClient
Expand All @@ -71,6 +71,9 @@ public function __construct(
$secretKey = $this->configuration['secret_key'];
$yandexCheckoutClient = new Client();
$yandexCheckoutClient->setAuth($shopId, $secretKey);
$userAgent = $yandexCheckoutClient->getApiClient()->getUserAgent();
$userAgent->setCms('Drupal', \Drupal::VERSION);
$userAgent->setModule('yandex-money-cms-v2', self::YAMONEY_MODULE_VERSION);
$this->apiClient = $yandexCheckoutClient;
}

Expand Down
Binary file removed yandex-money-cms-v2-drupal.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion yandex_checkout.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Yandex Checkout Module
description: Yandex Checkout Module description
package: YandexCheckout
type: module
version: 1.0.2
version: 1.1.0
project: Commerce (contrib)
core: 8.x
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion yandex_checkout.libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ billing_validation:

yandex-checkout-sdk-php:
remote: https://github.com/yandex-money/yandex-checkout-sdk-php
version: "1.1.6"
version: "1.6.4"
license:
name: MIT
url: https://github.com/yandex-money/yandex-checkout-sdk-php/LICENSE.md
Expand Down

0 comments on commit 6172e28

Please sign in to comment.