csob_payment_gateway 0.0.9 → 0.0.10

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: 09d831eb559e2db05e7d5c5e7cad275a5621370b
4
- data.tar.gz: 2040d520664a9dec110aa54238cfc1eda61cf843
3
+ metadata.gz: 2e3b11275bb38f2bf048fcc7f1e3b9403c572eff
4
+ data.tar.gz: 271e9d0a5c9c2c7cc6666104cbf99085a8ed0713
5
5
  SHA512:
6
- metadata.gz: f707afbc8e9e2f14af6639ef83681af1c39b5c018e9ffbd37de66ff494215a0d49978cc21977ae1b4dd0cf23e55a21a9b424947eed41ac94144b191dd70bfa12
7
- data.tar.gz: 2c5e0779ee9f4e54faf3ba5a918f6690fbbff9894f809cd84af513eb5f9b565aea17f2dfd5807410ae8e7358ee7ac0640e92b1785145542ea1422c5ca0a5a8fe
6
+ metadata.gz: 4c7d4a27cf6253572ea24c5a5ac030b131a81a1cf754070c6271250f146e1350a0f80ab6c3eba9bcc1805b75e2cc99c7c6af653fe6c624920b662ace80177673
7
+ data.tar.gz: 49167f32d496ec323068162919123309427e34513d08f8949c7874c4b5bceba174c6205fe085b4ea60ee1ae3392bd98197d2c589206bed74df8df0cda4380fe6
@@ -22,7 +22,7 @@ module CsobPaymentGateway
22
22
 
23
23
  attr_reader :merchant_id, :public_key, :gateway_url, :cart_items, :currency, :order_id, :total_price, :customer_id, :timestamp, :default_currency, :close_payment, :return_url, :description, :keys_directory, :logger
24
24
 
25
- attr_accessor :response, :pay_id
25
+ attr_accessor :response
26
26
 
27
27
  def payment_init
28
28
  api_init_url = CsobPaymentGateway.configuration.urls["init"]
@@ -84,24 +84,24 @@ module CsobPaymentGateway
84
84
  def get_data
85
85
  text = [
86
86
  merchant_id,
87
- pay_id,
87
+ response["payId"],
88
88
  timestamp
89
89
  ].map { |param| param.is_a?(Hash) ? "" : param.to_s }.join("|")
90
90
 
91
91
  signature = CsobPaymentGateway::Crypt.sign(text, "GET")
92
- "#{merchant_id}/#{pay_id}/#{timestamp}/#{CGI.escape(signature)}"
92
+ "#{merchant_id}/#{response["payId"]}/#{timestamp}/#{CGI.escape(signature)}"
93
93
  end
94
94
 
95
95
  def put_data
96
96
  data = {
97
97
  "merchantId": merchant_id,
98
- "payId": pay_id,
98
+ "payId": response["payId"],
99
99
  "dttm": timestamp
100
100
  }
101
101
 
102
102
  text = [
103
103
  merchant_id,
104
- pay_id,
104
+ response["payId"],
105
105
  timestamp
106
106
  ].map { |param| param.is_a?(Hash) ? "" : param.to_s }.join("|")
107
107
 
@@ -1,3 +1,3 @@
1
1
  module CsobPaymentGateway
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csob_payment_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Kratochvíl