perfect_money_merchant 0.1.1.alpha.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: 7c9b3b9ebf37c8a87c39c4e266ef9c6741c282d1
|
4
|
+
data.tar.gz: 04aaa57ed2efdd95bada8007f42d0c956391f5f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06df487da07a88cb42c1da00659fb4cc782353bcfec4c8a799223887bbd0a5fcdcf44c4fedb425ca96248693519f5a5159a505a56740fa5ff8087e258f688574
|
7
|
+
data.tar.gz: 802adb6dba0e398f271ba9413b9290d22fa4eda102c93b7c379cdc96f5d86681222232869c63cb01716ba86046d879da84253d6e47431974a85fa145c32daa5b
|
@@ -7,7 +7,7 @@ module PerfectMoneyMerchant
|
|
7
7
|
|
8
8
|
SCIResponse.new(sci_params).tap { |obj| obj.set_secret_key(Account::Query.new.get_secret_key(sci_params.payee_account)) }.verify!
|
9
9
|
|
10
|
-
Payment.create
|
10
|
+
payment = Payment.create(
|
11
11
|
payment_batch_num: sci_params.payment_batch_num,
|
12
12
|
payment_id: sci_params.payment_id,
|
13
13
|
payment_amount: sci_params.payment_amount,
|
@@ -15,7 +15,7 @@ module PerfectMoneyMerchant
|
|
15
15
|
payee_account: sci_params.payee_account,
|
16
16
|
)
|
17
17
|
|
18
|
-
Configuration.config.tasks[sci_params.payment_purpose].tap { |task| task.call(sci_params) unless task.nil? }
|
18
|
+
Configuration.config.tasks[sci_params.payment_purpose].tap { |task| task.call(sci_params, payment.id) unless task.nil? }
|
19
19
|
|
20
20
|
render status: 200, nothing: true
|
21
21
|
rescue StandardError => exception
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perfect_money_merchant
|
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
|
- Vladislav Pauk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -249,9 +249,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
249
249
|
version: '0'
|
250
250
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
251
251
|
requirements:
|
252
|
-
- - "
|
252
|
+
- - ">="
|
253
253
|
- !ruby/object:Gem::Version
|
254
|
-
version:
|
254
|
+
version: '0'
|
255
255
|
requirements: []
|
256
256
|
rubyforge_project:
|
257
257
|
rubygems_version: 2.4.5
|