Shopify/active_merchant — pull request #1124 by bslobodin (2014-04-16 16:54:35+00:00)
Title: Fix PxPay invalid credential response handling

@odorcicd some context for you: previously, using invalid credentials would return a response in the form of ``IPInvalid Access Info``, which has no ``URI`` element. This fixes that and also forces ``valid`` to be ``0`` in that case, so that checkout could show proper error message instead of some vague exception (``undefined method `text' for nil:NilClass``): ``error - failed to get token - message was Invalid Access Info``.

One thing that's a bit curious to me, is that ``pxpay_module_test.rb`` was failing due to undefined nokogiri ref, but CI is green, do those not normally run in CI?