payson_api 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/payson_api/config.rb +1 -1
- data/lib/payson_api/request/payment.rb +4 -2
- data/lib/payson_api/version.rb +1 -1
- data/payson_api.gemspec +2 -2
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
NWQ4YThlZGZjYjYwODViMGQxNWQyODFjOGY5NzliNGFjYmQ4NDFjNw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 143beb63adf518b274d6582fdb13ca526235cde9
|
4
|
+
data.tar.gz: 8af594ba8e2630d01bf449800c294c0fa4a80b20
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NTIxNTcxNGM3YjRkNjYxNmJjYzIwNDcyNWNjNDU2MGJmYTc3ZWU2ODdkNWY0
|
11
|
-
MGQ1NDJhZmM5Zjc4ZjQ1MWFhYmM0ZWFhMWQ2ZGVkMzQ3OTYwNTU=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZTEyZTllYWNhYzc5M2Y2MDE5MWNkNDJlM2YzYTg1YzM4ZTE1OWJkZDUzZTcw
|
14
|
-
YTUyYWFlZTg2ODdmOWU4Y2I3OWU1ZDBlM2Q5OGI0ZDQ5ODAxMGM3ODA2NjE4
|
15
|
-
Mjc4ZjJlZTIyNWNlM2JiNTk4N2I1ZWRkZjkyY2FjMTI2Yjk1Nzc=
|
6
|
+
metadata.gz: 7a5e87b436843a40ce1d2e69ad1e85778fa9cbf5de8584e808f58a7fc7cd24b1a9c0602f9177e5df3c3527f766468231f5376a6b4f43d738dea46e28b791b9ca
|
7
|
+
data.tar.gz: 2ca0066ef35d73b886fbd9d056c637eb930bc6e3f2b22d39506734b6098b38c0545e1bf4797e93cfc01a837bdcd0ad003a1c387ce509e682fcf3dda0c8467aa6
|
data/lib/payson_api/config.rb
CHANGED
@@ -14,7 +14,7 @@ module PaysonAPI
|
|
14
14
|
LOCALES = %w[SV EN FI]
|
15
15
|
CURRENCIES = %w[SEK EUR]
|
16
16
|
FEES_PAYERS = %w[EACHRECEIVER SENDER PRIMARYRECEIVER SECONDARYONLY]
|
17
|
-
FUNDING_CONSTRAINTS = %w[CREDITCARD BANK INVOICE]
|
17
|
+
FUNDING_CONSTRAINTS = %w[CREDITCARD BANK INVOICE SMS]
|
18
18
|
GUARANTEE_OFFERINGS = %w[OPTIONAL REQUIRED NO]
|
19
19
|
PAYMENT_STATUSES = %w[CREATED PENDING PROCESSING COMPLETED CREDITED
|
20
20
|
INCOMPLETE ERROR EXPIRED REVERSALERROR ABORTED]
|
@@ -3,15 +3,16 @@ module Request
|
|
3
3
|
class Payment
|
4
4
|
attr_accessor :return_url, :cancel_url, :ipn_url, :memo, :sender, :receivers,
|
5
5
|
:locale, :currency, :tracking_id, :invoice_fee, :order_items, :fundings,
|
6
|
-
:fees_payer, :guarantee_offered
|
6
|
+
:fees_payer, :guarantee_offered, :custom
|
7
7
|
|
8
|
-
def initialize(return_url, cancel_url, ipn_url, memo, sender, receivers)
|
8
|
+
def initialize(return_url, cancel_url, ipn_url, memo, sender, receivers, custom)
|
9
9
|
@return_url = return_url
|
10
10
|
@cancel_url = cancel_url
|
11
11
|
@ipn_url = ipn_url
|
12
12
|
@memo = memo
|
13
13
|
@sender = sender
|
14
14
|
@receivers = receivers
|
15
|
+
@custom = custom
|
15
16
|
end
|
16
17
|
|
17
18
|
def to_hash
|
@@ -33,6 +34,7 @@ class Payment
|
|
33
34
|
hash['ipnNotificationUrl'] = @ipn_url if @ipn_url
|
34
35
|
hash['invoiceFee'] = @invoice_fee if @invoice_fee
|
35
36
|
hash['trackingId'] = @tracking_id if @tracking_id
|
37
|
+
hash['custom'] = @custom if @custom
|
36
38
|
end
|
37
39
|
end
|
38
40
|
|
data/lib/payson_api/version.rb
CHANGED
data/payson_api.gemspec
CHANGED
@@ -18,6 +18,6 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_development_dependency 'rake'
|
22
|
-
s.add_development_dependency 'guard-test'
|
21
|
+
s.add_development_dependency 'rake', '~> 0'
|
22
|
+
s.add_development_dependency 'guard-test', '~> 0'
|
23
23
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payson_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Svensson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: guard-test
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: Client that enables access to the Payson payment gateway API.
|
@@ -45,8 +45,8 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .travis.yml
|
48
|
+
- ".gitignore"
|
49
|
+
- ".travis.yml"
|
50
50
|
- Gemfile
|
51
51
|
- Guardfile
|
52
52
|
- MIT-LICENSE
|
@@ -89,12 +89,12 @@ require_paths:
|
|
89
89
|
- lib
|
90
90
|
required_ruby_version: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
|
-
- -
|
92
|
+
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
|
-
- -
|
97
|
+
- - ">="
|
98
98
|
- !ruby/object:Gem::Version
|
99
99
|
version: '0'
|
100
100
|
requirements: []
|