hipay 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -11
- data/lib/hipay.rb +3 -3
- data/lib/hipay/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b317e4aee361c148e6bc0d11174cadf18929c856
|
4
|
+
data.tar.gz: 3cce7cbf39e6ddce3fccb9c1e4445e5262d0428c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47b4c941f9a94448b70f7d5b0aef0fe3b0effb859ce3e5c5fb8fc406961140341f22db4fba85b1a8d6648d325ef505a2594850de467135d6646fe1d03b60ec17
|
7
|
+
data.tar.gz: fc6a4a4679cdfc4fa309fef35e1e4ae3c6f787ad57f5507be88f709b4bc8b72ff077c71beb8ffd1840609a0e49c2f921c113c1bf8a3bc9402730eaf7c60621c5
|
data/README.md
CHANGED
@@ -81,17 +81,8 @@ urlLogo: string - (optional) This URL of your logo for the payment page (HTTPS)
|
|
81
81
|
merchantReference: string - (optional) Merchants’ order reference
|
82
82
|
merchantComment: string - (optional) Merchants’ comment concerning the order
|
83
83
|
emailCallback: string - (optional) Email used by HiPay Wallet to post operation notifications
|
84
|
-
|
85
|
-
|
86
|
-
<item>
|
87
|
-
<key>keyOne</key>
|
88
|
-
<value>ValueOne</value>
|
89
|
-
</item>
|
90
|
-
<item>
|
91
|
-
<key>keyTwo</key>
|
92
|
-
<value>ValueTwo</value>
|
93
|
-
</item>
|
94
|
-
</freeData>
|
84
|
+
freeData: array - (optional) Custom data {item: [{:key => "keyOne", :value => "valueOne"}, {:key => "keyTwo", :value => "valueTwo"}]}
|
85
|
+
|
95
86
|
```
|
96
87
|
|
97
88
|
Usage:
|
data/lib/hipay.rb
CHANGED
@@ -25,7 +25,7 @@ module Hipay
|
|
25
25
|
def generate(amount, customerIpAddress, urlCallback, executionDate, description, currency: "EUR",
|
26
26
|
rating: "ALL", locale: "en_GB", manualCapture: 0, customerEmail: nil,
|
27
27
|
urlAccept: nil, urlDecline: nil, urlCancel: nil, urlLogo: nil,
|
28
|
-
merchantReference: nil, merchantComment: nil, emailCallback: nil,
|
28
|
+
merchantReference: nil, merchantComment: nil, emailCallback: nil, freeData: nil)
|
29
29
|
|
30
30
|
operation = :generate
|
31
31
|
parameters = build_basic_request
|
@@ -63,8 +63,8 @@ module Hipay
|
|
63
63
|
if !emailCallback.nil?
|
64
64
|
parameters[:emailCallback] = emailCallback
|
65
65
|
end
|
66
|
-
if !
|
67
|
-
parameters[:
|
66
|
+
if !freeData.nil?
|
67
|
+
parameters[:freeData] = freeData
|
68
68
|
end
|
69
69
|
|
70
70
|
Hipay::call_api("payment-v2", operation, @test, {parameters: parameters})[:generate_response][:generate_result]
|
data/lib/hipay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hipay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UgoMare
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|