payson_api 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
4
 
@@ -28,6 +28,8 @@ You need to configure the gem with your own Payson credentials through the <tt>P
28
28
  config.api_password = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
29
29
  end
30
30
 
31
+ Please note that if <tt>config.api_user_id</tt> is set to 1, the client will go into test mode.
32
+
31
33
  === Initiating a payment
32
34
 
33
35
  return_url = 'http://localhost/payson/success'
@@ -150,4 +152,4 @@ Feel free to message me on Github (stoffus).
150
152
 
151
153
  == Copyright
152
154
 
153
- Copyright (c) 2012 Christopher Svensson.
155
+ Copyright (c) 2013 Christopher Svensson.
@@ -1,3 +1,5 @@
1
+ require 'cgi'
2
+
1
3
  module PaysonAPI
2
4
  module Response
3
5
  class PaymentDetails
@@ -24,7 +26,7 @@ class PaymentDetails
24
26
  case @payment_type
25
27
  when 'GUARANTEE'
26
28
  @guarantee_status = data['guaranteeStatus']
27
- @guarantee_deadline_at = Time.at(data['guaranteeDeadlineTimestamp'])
29
+ @guarantee_deadline_at = Time.parse(CGI.unescape(data['guaranteeDeadlineTimestamp']))
28
30
  when 'INVOICE'
29
31
  @invoice_status = data['invoiceStatus']
30
32
  if %w[ORDERCREATED SHIPPED DONE CREDITED].include?(@invoice_status)
@@ -1,3 +1,3 @@
1
1
  module PaysonAPI
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: payson_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-03 00:00:00.000000000 Z
12
+ date: 2013-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  requirements: []
107
107
  rubyforge_project:
108
- rubygems_version: 1.8.24
108
+ rubygems_version: 1.8.25
109
109
  signing_key:
110
110
  specification_version: 3
111
111
  summary: Client for Payson API