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: 9a41188bea6b7545e9d1b355a41314c0d69a0b3a
4
- data.tar.gz: 5a58f9b0d741394573ae9be5eb8895ba68a48bb7
3
+ metadata.gz: 7c9b3b9ebf37c8a87c39c4e266ef9c6741c282d1
4
+ data.tar.gz: 04aaa57ed2efdd95bada8007f42d0c956391f5f0
5
5
  SHA512:
6
- metadata.gz: 3ce57858bfc0b2dce54297038b5e2f4dd4a056442cc305d898bebcb4605efc4da4e2a9821d4977855f9c0d1b3a6ea580912ad18ac7f79b5cb25e18230cb81a9a
7
- data.tar.gz: 86a6401dd1aed33c497c271efd091a5c672d0758b2d2a8a79a1b539a81b489a207b43e51c43d0707017e7c1765b1849e81b9cf2504187de31ead97e066c8cfe6
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
@@ -1,3 +1,3 @@
1
1
  module PerfectMoneyMerchant
2
- VERSION = '0.1.1.alpha.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -19,5 +19,5 @@ module RailsTestApp
19
19
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
20
20
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
21
21
  # config.i18n.default_locale = :de
22
- end
22
+ ends
23
23
  end
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.1.alpha.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-07 00:00:00.000000000 Z
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: 1.3.1
254
+ version: '0'
255
255
  requirements: []
256
256
  rubyforge_project:
257
257
  rubygems_version: 2.4.5