alfabank 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4e6c6e5f5d9550953566f067027ee4ceeb8e9412
4
- data.tar.gz: 468485f2510be403cc3652367a75b5af8b313012
3
+ metadata.gz: a993d7b06fd8bbcb32db85a1729763a29aebafe8
4
+ data.tar.gz: 69e1f591c5d827668f9617ead8de3b95d259562c
5
5
  SHA512:
6
- metadata.gz: bf28b7a9f4cbb0139a7905c2b824a4a9473ca858119bf6d62c15ec3def5665ba18df18682edebda61a0c8d317e9ef3cd6661997bff94c474e8e5804ccd070082
7
- data.tar.gz: 544252c89201ac7d09b662a398f0c1359c11a483a64fac1134f18c69452ed35ffb159615fe887034060c91cf3f1f3965eb0092d095b01d372a586e99166281a9
6
+ metadata.gz: c020e0f5ff98a2d95419e358af2913e04c51c548032a3eb3f9f0bfd5c8d90d23540002e62e3cfdab1a28ae4774bf4d586c88e5227c424d8afe170a09abdfaa3c
7
+ data.tar.gz: 91f45d638d679bd6f73a04544c554ff612c324e52727b5033591d45099fcd3b0fc2150972058eae7406281d2e02e5be831528d35c0cf7083e8aed6f59f7628a5
data/README.md CHANGED
@@ -35,12 +35,15 @@ Set credentials and other options in `config/initializers/alfabank.rb`
35
35
 
36
36
  * Use `#check_status` to get information about an order.
37
37
 
38
+ Create a method to handle status request in your controller and insert a url for this method as a `return_url` param in `config/initializers/alfabank.rb`. Use `#check_status[:order_status]` to determine the status of an order and display it.
39
+
38
40
  ## Development
39
41
 
40
42
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
41
43
 
42
44
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
43
45
 
46
+
44
47
  ## Contributing
45
48
 
46
49
  Bug reports and pull requests are welcome on GitHub at https://github.com/mendab1e/alfabank.
@@ -1,7 +1,7 @@
1
1
  module Alfabank::Api
2
2
  class Registration < Base
3
3
  TEST_URL = "https://test.paymentgate.ru/testpayment/rest/register.do"
4
- URL = "https://paymentgate.ru/payment/rest/register.do"
4
+ URL = "https://engine.paymentgate.ru/payment/rest/register.do"
5
5
 
6
6
  def process(binding_id = nil)
7
7
  return {url: payment.alfa_form_url} if payment.alfa_order_id
@@ -1,7 +1,7 @@
1
1
  module Alfabank::Api
2
2
  class Status < Base
3
3
  TEST_URL = "https://test.paymentgate.ru/testpayment/rest/getOrderStatus.do"
4
- URL = "https://paymentgate.ru/payment/rest/getOrderStatus.do"
4
+ URL = "https://engine.paymentgate.ru/payment/rest/getOrderStatus.do"
5
5
  PAID = 2
6
6
 
7
7
  def process
@@ -1,7 +1,7 @@
1
1
  module Alfabank
2
2
  class Configuration
3
3
  class << self
4
- attr_accessor :username, :password, :language, :return_url, :error_url
4
+ attr_accessor :username, :password, :language, :return_url
5
5
  attr_accessor :currency, :order_number_prefix, :binding_username, :mode
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Alfabank
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -3,7 +3,6 @@ Alfabank.setup do |config|
3
3
  config.password = 'password'
4
4
  config.language = 'ru'
5
5
  config.return_url = 'finish.html'
6
- config.error_url = 'error.html'
7
6
  config.currency = Alfabank::Currency::RUB
8
7
  config.order_number_prefix = 'payment-'
9
8
  config.binding_username = 'binding_username'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alfabank
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timur Yanberdin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-21 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler