Skip to content

Commit

Permalink
Merge pull request #315 from activemerchant/anna-paytm-url-change
Browse files Browse the repository at this point in the history
Update URL for Paytm
  • Loading branch information
AnnaGyergyai authored Jun 18, 2019
2 parents 2c94880 + 5d6a140 commit 392b6d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/offsite_payments/integrations/paytm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/unit/integrations/paytm/paytm_helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/unit/integrations/paytm/paytm_module_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 392b6d2

Please sign in to comment.