Sha256: 0b4efdbfed710660f823f6cb638b49507485dc5d392c45cf5d40ab91e348a3bb
Contents?: true
Size: 889 Bytes
Versions: 1
Compression:
Stored size: 889 Bytes
Contents
require File.expand_path('../test_assistant', __FILE__) require "digest/md5" module Pingpp class CustomsTest < Test::Unit::TestCase should "execute should return a new customs when passed correct parameters" do order_no = Digest::MD5.hexdigest(Time.now.to_i.to_s)[0,12] channel = 'upacp' params = { :app => get_app_id, :charge => get_charge_id, :channel => channel, :trade_no => order_no, :customs_code => 'GUANGZHOU', :amount => 10, :transport_amount => 1, :is_split => true, :sub_order_no => 'subord11010002', :extra => { :pay_account => '1234567890', :certif_type => '02', :customer_name => 'name', :certif_id => '1234', :tax_amount => 1 } } cu = Pingpp::Customs.create(params) puts cu end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pingpp-2.1.1 | test/customs_test_bak.rb |