Skip to content

Instantly share code, notes, and snippets.

@rboyd
Created November 12, 2011 21:30
Show Gist options
  • Save rboyd/1361148 to your computer and use it in GitHub Desktop.
Save rboyd/1361148 to your computer and use it in GitHub Desktop.
builder example for ibtkm
require 'builder'
builder = Builder::XmlMarkup.new
xml = builder.transaction time: Time.now, merchant_code: 179001795 do |transaction|
transaction.price '$27.50'
transaction.billing do |billing|
billing.name 'John Doe'
billing.address1 '123 Any St'
billing.country 'Mongolia'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment