lib/jd_pay/service.rb
# the difference between pc and h5 is just request url
the difference between pc and h5 is just request url
the difference between pc and h5 is just request url
def invoke_remote(url, payload, options = {})
        options = JdPay.extra_rest_client_options.merge(options)
        RestClient::Request.execute(
          {
            method: :post,
            url: url,
            payload: payload,
            headers: { content_type: 'application/xml' }
          }.merge(options)
        )
      end
def invoke_remote ( url , payload , options = { } ) options = JdPay . extra_rest_client_options . merge ( options ) RestClient :: Request . execute ( { method : :post , url : url , payload : payload , headers : { content_type : 'application/xml' } } . merge ( options ) ) end
the difference between pc and h5 is just request url
the difference between pc and h5 is just request url
url
payload
options