diff --git a/lib/offsite_payments/integrations/paytm.rb b/lib/offsite_payments/integrations/paytm.rb index cead0c45d..dafa21f89 100644 --- a/lib/offsite_payments/integrations/paytm.rb +++ b/lib/offsite_payments/integrations/paytm.rb @@ -13,7 +13,7 @@ module Paytm # self.production_url = 'https://secure.paytm.in/oltp-web/processTransaction' self.test_url = 'https://securegw-stage.paytm.in/theia/processTransaction' - self.production_url = 'https://securegw.paytm.in/theia/processTransaction' + self.production_url = 'https://securegw.paytm.in/order/process' def self.service_url OffsitePayments.mode == :production ? production_url : test_url diff --git a/test/unit/integrations/paytm/paytm_helper_test.rb b/test/unit/integrations/paytm/paytm_helper_test.rb index 74be78fc5..eeef41a12 100644 --- a/test/unit/integrations/paytm/paytm_helper_test.rb +++ b/test/unit/integrations/paytm/paytm_helper_test.rb @@ -9,7 +9,7 @@ def setup def test_raw OffsitePayments.mode = :production - assert_equal 'https://securegw.paytm.in/theia/processTransaction', Paytm.service_url + assert_equal 'https://securegw.paytm.in/order/process', Paytm.service_url OffsitePayments.mode = :test assert_equal 'https://securegw-stage.paytm.in/theia/processTransaction', Paytm.service_url diff --git a/test/unit/integrations/paytm/paytm_module_test.rb b/test/unit/integrations/paytm/paytm_module_test.rb index 7e8b82b62..aad72da8e 100644 --- a/test/unit/integrations/paytm/paytm_module_test.rb +++ b/test/unit/integrations/paytm/paytm_module_test.rb @@ -16,7 +16,7 @@ def test_service_url_method assert_equal 'https://securegw-stage.paytm.in/theia/processTransaction', Paytm.service_url OffsitePayments.mode = :production - assert_equal 'https://securegw.paytm.in/theia/processTransaction', Paytm.service_url + assert_equal 'https://securegw.paytm.in/order/process', Paytm.service_url ensure OffsitePayments.mode = :test end