Sha256: 5589b703eae90a379216be035ce5bd5e1661cf80f414bec91bf97900eeac22a5
Contents?: true
Size: 1.67 KB
Versions: 2
Compression:
Stored size: 1.67 KB
Contents
require File.dirname(__FILE__) + '/../test/test_helper' def post_create_live_billing(options = {}) post :create, :billing => { :first_name => 'test', :last_name => 'guy', :address1 => '33 commerce way', :city => 'San Jose', :state_id => Factory(:state).id, :zip => 99999, :country_id => Factory(:country).id, :telephone => '777-777-7777', :payment_method => 'CC', :credit_card_type => 'visa', :credit_card_number => MuckCommerceTestDefinitions::PAYPAL_VISA, :verification_value => '999', :credit_card_expiration => Time.now }.merge(options) end # Switch to paypal test gateway def enable_test_paypal_gateway MuckCommerce::Configure.enable_live_test_gateway(:paypal, nil, GlobalConfig.paypal_login, GlobalConfig.paypal_password, GlobalConfig.paypal_signature) end # Switch to authorize.net test gateway def enable_test_authorize_net_gateway MuckCommerce::Configure.enable_live_test_gateway(:authorize_net, :authorize_net_cim, GlobalConfig.authorize_net_login, GlobalConfig.authorize_net_password) end # Switch to brain tree test gateway def enable_test_brain_tree_gateway MuckCommerce::Configure.enable_live_test_gateway(:brain_tree, :brain_tree, GlobalConfig.brain_tree_login, GlobalConfig.brain_tree_password) end # Switch to trust commerce test gateway def enable_test_trust_commerce_gateway MuckCommerce::Configure.enable_live_test_gateway(:trust_commerce, :trust_commerce, GlobalConfig.trust_commerce_login, GlobalConfig.trust_commerce_password) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
muck-commerce-0.1.9 | test/rails_root/remote/remote_helper.rb |
muck-commerce-0.1.8 | test/rails_root/remote/remote_helper.rb |