csob_payment_gateway 0.0.4 → 0.0.5

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: 289d0a25c97b81c57975647f642d69cb54a3f852
4
- data.tar.gz: 28179e78c3a3f1c62da4a2c6355a897ebc6ed837
3
+ metadata.gz: 2b768b55e21f57279ea657e7b6c7e868785b4c31
4
+ data.tar.gz: e89b679c45940fc5f171f50d28541d3e4ca0abc1
5
5
  SHA512:
6
- metadata.gz: f238657d4fbd4e6a9c85dff2eee6110ad06fa9787bae9737cbcd570d208994a71a00f8295e791bef058dd3ede7d971f744034b431ecc39a7a10e434ee93ee316
7
- data.tar.gz: 80a8018d2a52460f9db392680f2b343d0b8a2f3c6aa4192b5044d12c4eadb0ec4a54fb34f203f731f529f0f2b8e04f20229c6f54fb6450d42552af19b8993446
6
+ metadata.gz: 3993383ed7676c2742522765f4bf085f2f00394a3e6c6728cd60d4614033dfe3b28e6ebd97f25bc13cad339ce4e75c137340b68a43829bfe6518f9061126adde
7
+ data.tar.gz: d08e2df66a2adf7f53b59197fd556537d93a5236f821db40d4e28cde69c87a0ea23aa1721bde77d565b86958a6fe402d4128bf5fce8eba0f0d6df933ddf51771
@@ -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
25
+ attr_accessor :response, :pay_id
26
26
 
27
27
  def payment_init
28
28
  api_init_url = CsobPaymentGateway.configuration.urls["init"]
@@ -67,7 +67,7 @@ module CsobPaymentGateway
67
67
  def get_data
68
68
  text = [
69
69
  merchant_id,
70
- response["payId"],
70
+ pay_id,
71
71
  timestamp
72
72
  ].map { |param| param.is_a?(Hash) ? "" : param.to_s }.join("|")
73
73
 
@@ -78,13 +78,13 @@ module CsobPaymentGateway
78
78
  def put_data
79
79
  data = {
80
80
  "merchantId": merchant_id,
81
- "payId": response["payId"],
81
+ "payId": pay_id,
82
82
  "dttm": timestamp
83
83
  }
84
84
 
85
85
  text = [
86
86
  merchant_id,
87
- response["payId"],
87
+ pay_id,
88
88
  timestamp
89
89
  ].map { |param| param.is_a?(Hash) ? "" : param.to_s }.join("|")
90
90
 
@@ -1,3 +1,3 @@
1
1
  module CsobPaymentGateway
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jiří Kratochvíl
@@ -66,3 +66,4 @@ signing_key:
66
66
  specification_version: 4
67
67
  summary: Ruby implementation of CSOB PaymentGateway
68
68
  test_files: []
69
+ has_rdoc: