From bfcabd5f6b4d048993d04cf476ee206ce7c2c31e Mon Sep 17 00:00:00 2001 From: AhamedWahid Date: Mon, 27 Mar 2017 12:46:58 +0530 Subject: [PATCH 1/3] update payu_in.rb corrected zip parameter to from zip to zipcode --- lib/offsite_payments/integrations/payu_in.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/offsite_payments/integrations/payu_in.rb b/lib/offsite_payments/integrations/payu_in.rb index 268194c40..1c4c35c06 100755 --- a/lib/offsite_payments/integrations/payu_in.rb +++ b/lib/offsite_payments/integrations/payu_in.rb @@ -42,7 +42,7 @@ class Helper < OffsitePayments::Helper :address1 => 'address1', :address2 => 'address2', :state => 'state', - :zip => 'zip', + :zip => 'zipcode', :country => 'country' # Which tab you want to be open default on PayU From 22d236cc3a25b4d528abb53c1578d05b09e2e032 Mon Sep 17 00:00:00 2001 From: AhamedWahid Date: Thu, 30 Mar 2017 12:30:36 +0530 Subject: [PATCH 2/3] fixed test cases --- test/unit/integrations/payu_in/payu_in_helper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/integrations/payu_in/payu_in_helper_test.rb b/test/unit/integrations/payu_in/payu_in_helper_test.rb index 505b1be82..84812a86e 100644 --- a/test/unit/integrations/payu_in/payu_in_helper_test.rb +++ b/test/unit/integrations/payu_in/payu_in_helper_test.rb @@ -28,7 +28,7 @@ def test_billing_address_fields assert_equal '666, Wooo', @helper.fields['address1'] assert_equal 'EEE Street', @helper.fields['address2'] assert_equal 'New Delhi', @helper.fields['state'] - assert_equal '110001', @helper.fields['zip'] + assert_equal '110001', @helper.fields['zipcode'] assert_equal 'india', @helper.fields['country'] end From 47b032b566793d0b5c16f73b0fcf6eb6ebd37bbf Mon Sep 17 00:00:00 2001 From: AhamedWahid Date: Thu, 30 Mar 2017 12:30:56 +0530 Subject: [PATCH 3/3] fixed test to support zipcode instead of zip --- .../integrations/payu_in_paisa/payu_in_paisa_helper_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/integrations/payu_in_paisa/payu_in_paisa_helper_test.rb b/test/unit/integrations/payu_in_paisa/payu_in_paisa_helper_test.rb index 905c75f9d..e6b3c4385 100644 --- a/test/unit/integrations/payu_in_paisa/payu_in_paisa_helper_test.rb +++ b/test/unit/integrations/payu_in_paisa/payu_in_paisa_helper_test.rb @@ -28,7 +28,7 @@ def test_billing_address_fields assert_equal '666, Wooo', @helper.fields['address1'] assert_equal 'EEE Street', @helper.fields['address2'] assert_equal 'New Delhi', @helper.fields['state'] - assert_equal '110001', @helper.fields['zip'] + assert_equal '110001', @helper.fields['zipcode'] assert_equal 'india', @helper.fields['country'] end