From 24528947faa44517ced095ef35e54b1a9bd84a1d Mon Sep 17 00:00:00 2001 From: Andreas Wagner Date: Thu, 15 Dec 2016 22:17:08 +0200 Subject: [PATCH 1/2] fix merging hash in place related to https://github.com/Voog/ipizza/issues/11 --- lib/ipizza/provider/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ipizza/provider/base.rb b/lib/ipizza/provider/base.rb index 9b97cce..4cf36c7 100644 --- a/lib/ipizza/provider/base.rb +++ b/lib/ipizza/provider/base.rb @@ -60,7 +60,7 @@ def authentication_request(service_no = 4011, param = {}) when '4011' req.sign_params['VK_REPLY'] = '3012' when '4012' - req.sign_params.merge( + req.sign_params.merge!( 'VK_REC_ID' => self.class.rec_id, 'VK_NONCE' => param[:vk_nonce] ) From 9b2afa77647ed40022d491210926976b4540ffdb Mon Sep 17 00:00:00 2001 From: Andreas Wagner Date: Fri, 16 Dec 2016 00:13:43 +0200 Subject: [PATCH 2/2] sample config clarification & extension - domain language predominantly uses term `merchant` - `rec_id` was previously missing in sample --- README.markdown | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index b4c4f11..623c8cd 100644 --- a/README.markdown +++ b/README.markdown @@ -49,7 +49,8 @@ At any time, configuration can be modified with `Ipizza::Config.configure` block # Path to bank's public key file. Can be specified # relatively to YAML file file_cert: ./certificates/bank_public.crt - snd_id: dealer + snd_id: merchant + rec_id: bank encoding: UTF-8 ## Payment requests