Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 35 lines (23 sloc) 0.683 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
To work needs a configuration file 'eport.yml'
Сonfiguration file must be located in the directory 'config'.

Example: config/eport.yml

:eport:
  :point: "your point number"
  :private_key_path: "path relative RAILS_ROOT"
  :host: "e-port host"


Operations.

You can do the following operations:
1) CHECK
2) OPERATION
3) CONFIRM
4) CANCEL

The first four operations are performed as follows:

eport = Eport.new
eport.refill_operation(operation_name, operation_id, product_id, value, account)

where operations_name can take the following values: :confirm, :check, :operation and :cancel

Catalog.

eport = Eport.new
eport.get_catalog

Balance.

eport = Eport.new
eport.get_balance
Something went wrong with that request. Please try again.