SpreeCheckoutRu
Checkout.ru integration for Spree Commerce
Installation
Add this line to your application's Gemfile:
gem 'spree_checkout_ru'
And then execute:
$ bundle install
$ rails g spree_checkout_ru:install
Or install it yourself as:
$ gem install spree_checkout_ru
$ rails g spree_checkout_ru:install
Usage
- Dependencies jQuery autocomplete!
- Добавить в spree.rb Идентификационный ключ клиента в Checkout.ru
Spree::Config[:checkout_store_key] = "KEY"
- Подключите checkoutru.js в нужной вам вьюхе
- Добавьте <%= render :partial => 'spree/checkout/checkout_ru'%> на страницу, где хотите выбирать способ доставки
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request