Spree Liqpay
Liqpay.com 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.com.
-
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.com where he makes the payment.
- Liqpay.com redirects the client back to our site.
- We wait for a callback from Liqpay.com (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.com official Ruby SDK (not used by this gem)
- Liqpay.com FAQ
- Liqpay.com API reference