Sha256: 26f28584d7e8577b7b19c6c7c578a92d99d669884f009a9b4bf1ebe879234784
Contents?: true
Size: 1.27 KB
Versions: 7
Compression:
Stored size: 1.27 KB
Contents
require File.expand_path( File.join(File.dirname(__FILE__),%w[.. lib veritrans])) wpath= File.dirname(__FILE__).gsub(/bin$/,'') def howto_veritrans puts <<END How to Veritrans: ~~~~~~~~~~~~~~~~~~~~~~~ syntax: veritrans -irb example: veritrans -irb #=> 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 <<EOF example: require 'veritrans' client = Veritrans::Client.new client.order_id = "#{(0...4).map{65.+(rand(25))}.join}" client.session_id = "#{(0...4).map{65.+(rand(25))}.join}" client.gross_amount = "10" client.commodity = [ {"COMMODITY_ID" => "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
Version data entries
7 entries across 7 versions & 1 rubygems