Joined May 2014
·
Posted to
Adding attributes to an input tag with Savon
over 1 year
ago
How can apply this to Savon 2.5.1... this this mi code...
request = { :ApiKey=> safetypayapikey,
:RequestDateTime=> requestdate,
:Language => language,
}
response = client.call( :createservice,
:message => request).body[:customtransactionresponse]
I need add to "Language" node the namespace: xmlns="urn:safetypay:messages:mws:api"
Regards,
To SAVON 2.51. I need this:
<Language xmlns="urn:safetypay:schema:mws:api">ES</Language>
In Ruby:
:Language => {
:@xmlns => "urn:safetypay:schema:mws:api",
:content! => language
},
Some suggestion?