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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0362af934f22ebddd694b9bb2ebb5b40a7fc43c9
4
- data.tar.gz: 2d11fd12aad011df705fe35e8f053085e78338fd
3
+ metadata.gz: b317e4aee361c148e6bc0d11174cadf18929c856
4
+ data.tar.gz: 3cce7cbf39e6ddce3fccb9c1e4445e5262d0428c
5
5
  SHA512:
6
- metadata.gz: a73f09dd6ae19d03827de41b7746e0470ba3c363ed32c6d9aaaa09336b3f3d06c3536c54ea0ae56214667242ea9497983d8fff0d62667dc8d764e8e4fc2c44a5
7
- data.tar.gz: 01cdc9b75c583224974a4e3b3ed269c963e970d8288a78621ba9da0b3b84bca85526446a6f54c5fe317d14a10ffc3314487f5cc9b6de4963b35ae71c1da7c201
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
- freedata: string - (optional) Custom data
85
- <freeData>
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:
@@ -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, freedata: 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 !freedata.nil?
67
- parameters[:freedata] = freedata
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]
@@ -1,3 +1,3 @@
1
1
  module Hipay
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-03 00:00:00.000000000 Z
11
+ date: 2015-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler