require File.expand_path( File.join(File.dirname(__FILE__),%w[.. lib veritrans])) wpath= File.dirname(__FILE__).gsub(/bin$/,'') def howto_veritrans puts < Start IRB Enjoy... END end arg = ARGV if arg.size==0 howto_veritrans exit end if arg.select{|x|x=='-irb'} != [] ARGV.reject!{|x|x=='-irb'} require 'irb' puts < "IDxx1", "COMMODITY_UNIT" => "10", "COMMODITY_NUM" => "1", "COMMODITY_NAME1" => "Waterbotle", "COMMODITY_NAME2" => "Waterbottle in Indonesian"} ] client.shipping_flag = "1" client.shipping_first_name = "Sam" client.shipping_last_name = "Anthony" client.shipping_address1 = "Buaran I" client.shipping_address2 = "Pulogadung" client.shipping_city = "Jakarta" client.shipping_country_code = "IDN" client.shipping_postal_code = "16954" client.shipping_phone = "0123456789123" client.shipping_method = "N" client.get_keys client EOF IRB.start end