Skip to content

Latest commit

 

History

History
56 lines (33 loc) · 1.7 KB

README.md

File metadata and controls

56 lines (33 loc) · 1.7 KB

Solidus Liqpay (adaptation not finished)

Liqpay.com payment gateway API for Solidus E-Commerce.

Installation

Update your Gemfile:

gem 'solidus_liqpay', github: 'VitaliyAdamkov/solidus_liqpay'

Run Bundler:

bundle install

Configuration

  1. Login to Solidus Backend.

  2. Open "Configurations -> Payment Methods"

  3. Click "New Payment Method".

  4. Choose provider "Spree::PaymentMethod::Liqpay".

  5. Enter any name and description. It will be visible to client during checkout. Click "Create".

  6. Enter your public and private keys retrieved from liqpay.com.

  7. Enter order description (it will be visible to client during checkout on Liqpay site).

  8. Turn off the Test mode.

How it works

  1. A client selects Liqpay payment method on Payment tab during checkout on our site.
  2. We redirect him to payment form on Liqpay.com where he makes the payment.
  3. Liqpay.com redirects the client back to our site.
  4. 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

  1. Liqpay.com official Ruby SDK (not used by this gem)
  2. Liqpay.com FAQ
  3. Liqpay.com API reference
  4. Liqpay.com payment gateway for Spree E-Commerce and it's fork