Spree Liqpay
Liqpay.ua payment gateway API for Spree E-Commerce.
Installation
Update your Gemfile
:
gem 'spree_liqpay', github: 'kukareka/spree_liqpay'
Run Bundler
:
bundle install
Configuration
-
Login to Spree Backend.
-
Open "Configurations -> Payment Methods"
-
Click "New Payment Method".
-
Choose provider "Spree::PaymentMethod::Liqpay".
-
Enter any name and description. It will be visible to client during checkout. Click "Create".
-
Enter your public and private keys retrieved from Liqpay.ua.
-
Enter order description (it will be visible to client during checkout on Liqpay site).
-
Turn off the Test mode.
How it works
- A client selects Liqpay payment method on Payment tab during checkout on our site.
- We redirect him to payment form on Liqpay.ua where he makes the payment.
- Liqpay.ua redirects the client back to our site.
- We wait for a callback from Liqpay.ua (takes a few seconds) and redirect the client to "Order complete" page.
Tests
Powered by RSpec, Capybara and Selenium.
Run rake app:setup
before the tests to init the dummy app.
References
- Liqpay.ua official Ruby SDK (not used by this gem)
- Liqpay.ua FAQ
- Liqpay.ua API reference