You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source code of method AmazonPay::Response#get_element is:
def get_element(xpath, xml_element)
xml = self.to_xml
xml.elements.each(xpath) do |element|
@value = element.elements[xml_element].text
end
return @value
end
Problem
Source code of method
AmazonPay::Response#get_element
is:Above source code will run wrong in below case:
GetOrderReferenceDetails response:
Above response does not contain constrains element.
But when call:
In above case, we expect
constraint_id
isnil
, but its value still isOpen
.Fixed
I was fixed it and sent pull request.
#12
Please check it!
The text was updated successfully, but these errors were encountered: