lib/active_merchant/billing/gateways/payment_express.rb in activemerchant-1.26.0 vs lib/active_merchant/billing/gateways/payment_express.rb in activemerchant-1.27.0
- old
+ new
@@ -19,11 +19,11 @@
self.supported_countries = %w[ AU MY NZ SG ZA GB US ]
self.homepage_url = 'http://www.paymentexpress.com/'
self.display_name = 'PaymentExpress'
- URL = 'https://sec.paymentexpress.com/pxpost.aspx'
+ self.live_url = self.test_url = 'https://sec.paymentexpress.com/pxpost.aspx'
APPROVED = '1'
TRANSACTIONS = {
:purchase => 'Purchase',
@@ -234,10 +234,10 @@
def commit(action, request)
add_credentials(request)
add_transaction_type(request, action)
# Parse the XML response
- response = parse( ssl_post(URL, request.to_s) )
+ response = parse( ssl_post(self.live_url, request.to_s) )
# Return a response
PaymentExpressResponse.new(response[:success] == APPROVED, response[:card_holder_help_text], response,
:test => response[:test_mode] == '1',
:authorization => response[:dps_txn_ref]