lib/pxpay/request.rb in pxpay-0.2.2 vs lib/pxpay/request.rb in pxpay-0.2.3

- old
+ new

@@ -30,10 +30,10 @@ @post = build_xml( id, price, options ) end # Get the redirect URL from Payment Express def url - response = ::RestClient.post("https://sec2.paymentexpress.com/pxpay/pxaccess.aspx", post ) + response = ::RestClient.post(Pxpay::Base.pxpay_request_url, post ) response_text = ::Nokogiri::XML(response) if response_text.at_css("Request").attributes["valid"].value == "1" url = response_text.at_css("URI").inner_html else if Pxpay::Base.pxpay_user_id && Pxpay::Base.pxpay_key \ No newline at end of file