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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a993d7b06fd8bbcb32db85a1729763a29aebafe8
|
4
|
+
data.tar.gz: 69e1f591c5d827668f9617ead8de3b95d259562c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/alfabank/api/status.rb
CHANGED
@@ -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
|
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
|
data/lib/alfabank/version.rb
CHANGED
@@ -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.
|
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-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|