Module: Dolla::EndPoints
- Included in:
- Gateway
- Defined in:
- lib/dolla/end_points.rb
Constant Summary collapse
- XML_NAMESPACE =
{ default: 'http://webservice.interred.adquira.com.mx', amex: 'http://adquira.com.mx/amex/schemas', }
- PRODUCTION_URL =
{ default: 'https://www.multipagos.com.mx/ProcesaPagosOLW/services/ProcesadorPagos', amex: 'https://www.multipagos.com.mx/AmexWS/services/insPagoAmex.wsdl', }
- TESTING_URL =
{ default: 'https://www.egbs5.com.mx/ProcesaPagosOLW/services/ProcesadorPagos?WSDL', amex: 'https://www.egbs5.com.mx/AmexWS/services/insPagoAmex.wsdl', }
- WSDL_ADDRESS =
Rails.env.production? ? PRODUCTION_URL : TESTING_URL
Instance Method Summary collapse
Instance Method Details
#get_wsdl_address(key = nil) ⇒ Object
21 22 23 |
# File 'lib/dolla/end_points.rb', line 21 def get_wsdl_address key = nil key ? WSDL_ADDRESS[key] : WSDL_ADDRESS[:default] end |
#get_xml_namespace(key = nil) ⇒ Object
25 26 27 |
# File 'lib/dolla/end_points.rb', line 25 def get_xml_namespace key = nil key ? XML_NAMESPACE[key] : XML_NAMESPACE[:default] end |