lib/active_merchant/billing/integrations/world_pay.rb in activemerchant-1.15.0 vs lib/active_merchant/billing/integrations/world_pay.rb in activemerchant-1.16.0
- old
+ new
@@ -4,26 +4,15 @@
module ActiveMerchant #:nodoc:
module Billing #:nodoc:
module Integrations #:nodoc:
module WorldPay
+ # production and test have the same endpoint
mattr_accessor :production_url
- self.production_url = 'https://select.worldpay.com/wcc/purchase'
-
- mattr_accessor :test_url
- self.test_url = 'https://select-test.worldpay.com/wcc/purchase'
-
-
+ self.production_url = 'https://secure.wp3.rbsworldpay.com/wcc/purchase'
+
def self.service_url
- mode = ActiveMerchant::Billing::Base.integration_mode
- case mode
- when :production
- production_url
- when :test
- test_url
- else
- raise StandardError, "Integration mode set to an invalid value: #{mode}"
- end
+ production_url
end
def self.notification(post, options = {})
Notification.new(post, options)
end