avangate 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0146d41a2dbe9f16202054ce05b0d8e1136b4c2d
4
- data.tar.gz: 73c1210b0944999ff5f5bf4e801f6ef1dea3e530
3
+ metadata.gz: 2aae63abc32162f6a3c3e75ce921c9ee4d3fb55c
4
+ data.tar.gz: 12cb5ae037d8c1e819b3c23b316516b94acaf219
5
5
  SHA512:
6
- metadata.gz: e272725372a7d8922a5ba76c67382f2efb40f257bfd1c85bb842dd0812c29ecd155335332f943ae904292670ea357382c2673a54d985ce637211c71263afd35d
7
- data.tar.gz: df4dd399881426ec166d8cd7ca3d44721201f3b64817cb2063be0ada8a0a9bfc426f0882b032142be2ec84500c59460c9506e400f4dcedac007f57cd63f82d45
6
+ metadata.gz: a1277d59f93a63bb2c51b403fd727d57fb7c32163f4cf2d47b3d9e2731b6a082f9308b89a67f22eabf8422dab4f9fda763256bf256fc56efa72830eda90f559f
7
+ data.tar.gz: 80ecff78b4e5c5f6c12d3c53748e0278757a601c7bdd925dce4a6416ee3c272b2de4d4ab4b70102a736598792c900690025f90319d8e3471dbc3a80f856b9635
data/README.md CHANGED
@@ -12,7 +12,7 @@ Current methods implemented:
12
12
  #setBillingDetails
13
13
  #get_product_by_code
14
14
 
15
- Notifications:
15
+ Notification:
16
16
 
17
17
  #generate_receipt
18
18
 
@@ -68,7 +68,8 @@ Inside you can and set up:
68
68
 
69
69
  IPN:
70
70
 
71
- render text: Avangate::Notification.generate_receipt
71
+ notification = Avangate::Notification.new params
72
+ render text: notification.generate_receipt
72
73
 
73
74
 
74
75
  ## Contributing
@@ -2,7 +2,7 @@ require "savon"
2
2
  require "avangate/version"
3
3
  require "avangate/base"
4
4
  require "avangate/errors"
5
- require "avangate/notifications"
5
+ require "avangate/notification"
6
6
 
7
7
  module Avangate
8
8
 
@@ -1,11 +1,11 @@
1
1
  module Avangate
2
2
 
3
- class Notifications
3
+ class Notification
4
4
 
5
5
  def initialize(params)
6
6
  @ipn_pid0 = params[:IPN_PID].first
7
7
  @ipn_pname0 = params[:IPN_PNAME].first
8
- @date = params[:DATE]
8
+ @date = params[:IPN_DATE]
9
9
  end
10
10
 
11
11
  def generate_receipt
@@ -1,3 +1,3 @@
1
1
  module Avangate
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: avangate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo
@@ -96,7 +96,7 @@ files:
96
96
  - lib/avangate.rb
97
97
  - lib/avangate/base.rb
98
98
  - lib/avangate/errors.rb
99
- - lib/avangate/notifications.rb
99
+ - lib/avangate/notification.rb
100
100
  - lib/avangate/version.rb
101
101
  homepage: https://github.com/lmajowka/avangate
102
102
  licenses: