Skip to content

Instantly share code, notes, and snippets.

@addamh
Created December 12, 2010 23:00
Show Gist options
  • Save addamh/738439 to your computer and use it in GitHub Desktop.
Save addamh/738439 to your computer and use it in GitHub Desktop.
def GetSubscriptionStatus(auth,refId,subscriptionId)
x = Builder::XmlMarkup.new(:target=>@xmlout)
x.instruct! :xml, :version => "1.0", :encoding => "US-ASCII"
x.ARBGetSubscriptionStatusRequest("xmlns" =>"AnetApi/xml/v1/schema/AnetApiSchema.xsd") {
x.merchantAuthentication {
x.name auth.name
x.transactionKey auth.transactionKey
}
x.refId refId
x.subscriptionId subscriptionId
}
#puts x.target!
return x.target!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment