https://github.com/mage2pro/yandex-checkout
Yandex.Checkout module for Magento 1
https://github.com/mage2pro/yandex-checkout
mage2pro mage2pro-module mage2pro-module-ready mage2pro-module-reusable mage2pro-payment-m1 magento magento1 magento1-extension payment-integration payment-module payment-processing russia yandex yandex-api yandex-kassa
Last synced: about 1 month ago
JSON representation
Yandex.Checkout module for Magento 1
- Host: GitHub
- URL: https://github.com/mage2pro/yandex-checkout
- Owner: mage2pro
- Created: 2019-10-29T08:38:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T08:05:47.000Z (over 6 years ago)
- Last Synced: 2025-03-04T16:24:07.987Z (over 1 year ago)
- Topics: mage2pro, mage2pro-module, mage2pro-module-ready, mage2pro-module-reusable, mage2pro-payment-m1, magento, magento1, magento1-extension, payment-integration, payment-module, payment-processing, russia, yandex, yandex-api, yandex-kassa
- Language: PHP
- Homepage: https://upwork.com/fl/mage2pro
- Size: 570 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
The module integrates Magento 1 with the **[Yandex.Checkout](https://checkout.yandex.com)** payment service.
## How to install
### Step 1
Remove the current `composer.json` file as it is just a garbage:
```
rm -f composer.json
```
### Step 2
```
composer require monolog/monolog:*
composer require yandex-money/yandex-checkout-sdk-php:*
composer require zendframework/zend-filter:*
```
### Step 3
```
sed -i 's/^"Your order # is: %s.","номер вашего заказа: "$/"Your order # is: %s.","Номер Вашего заказа: %s."/' app/design/frontend/iframe/iframe_responsive/locale/ru_RU/translate.csv
```
### Step 4
It adds the [PHP namespaces](https://www.php.net/manual/en/language.namespaces.php) support to Magento 1:
```
sed -i $'s|$classFile = str_replace(\' \', DIRECTORY_SEPARATOR, ucwords(str_replace(\'_\', \' \', $class)));|$classFile = str_replace(\'\\\\\\\\\', \'\/\', str_replace(\' \', DIRECTORY_SEPARATOR, ucwords(str_replace(\'_\', \' \', $class))));|g' app/code/local/Varien/Autoload.php
sed -i $'s|$classFile = uc_words($class, DIRECTORY_SEPARATOR).\'.php\';|$classFile = str_replace(\'\\\\\\\\\', \'\/\', uc_words($class, DIRECTORY_SEPARATOR).\'.php\');|g' app/code/core/Mage/Core/functions.php
```
### Step 5
```
rm -f app/etc/modules/LesMills_YandexCheckout.xml ;
rm -rf app/code/community/Df ;
rm -rf app/code/local/LesMills/YandexCheckout ;
rm -rf app/design/frontend/base/default/template/df ;
rm -rf app/design/frontend/base/default/template/yandex_checkout ;
rm -rf skin/frontend/base/default/df ;
rm -rf skin/frontend/base/default/yandex_checkout ;
ORG=lesmills-com ;
REPO=yandex-checkout ;
FILE=$REPO.tar.gz ;
VERSION=$(curl -s https://api.github.com/repos/$ORG/$REPO/releases | grep tag_name | head -n 1 | cut -d '"' -f 4) ;
curl -L -o $FILE https://github.com/$ORG/$REPO/archive/$VERSION.tar.gz ;
tar xzvf $FILE ;
rm -f $FILE ;
cp -r $REPO-$VERSION/* . ;
rm -rf $REPO-$VERSION
rm -rf var/cache var/full_page_cache
```
## How to upgrade
Execute the Step 5 from the installation part.