Sha256: 374940f64d3bcfda332574a8cb1e562ba5688f85d7fe7ddb870a02d004d2cfaf
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
require 'test_helper' module RubyPsigate class RemoteAccountTest < Test::Unit::TestCase def setup @gateway = RubyPsigate::Gateway.new(:cid => 1000001, :user_id => "teststore", :password => "testpass") end should "create a new billing account" do @account = RubyPsigate::Account.new @account.action = { :account => :register } @credit_card = RubyPsigate::CreditCard.new( :number => "4111111111111111", :month => "12", :year => "2011", :verification_value => "123", :name => "Bob John" ) @account.email = "bob@gmail.com" @account.cc = @credit_card @account.address = valid_address @gateway.account = @account response = @gateway.commit! assert response.success? end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_psigate-0.7.3 | test/remote/remote_account_test.rb |