Sha256: 8cf3908b504e04c2325dcd659df037bf73fa669deeaab3d8d3b9963e3d655040
Contents?: true
Size: 927 Bytes
Versions: 2
Compression:
Stored size: 927 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class RemoteSecurePayTest < Test::Unit::TestCase include ActiveMerchant::Billing AMOUNT = 100 def setup @gateway = SecurePayGateway.new(fixtures(:secure_pay)) @creditcard = credit_card('4111111111111111', :month => 7, :year => 2007 ) @options = { :order_id => generate_order_id, :description => 'Store purchase', :billing_address => { :address1 => '1234 My Street', :address2 => 'Apartment 204', :city => 'Beverly Hills', :state => 'CA', :country => 'US', :zip => '90210' } } end def test_successful_purchase assert response = @gateway.purchase(AMOUNT, @creditcard, @options) assert response.success? assert response.test? assert_equal 'This transaction has been approved', response.message assert response.authorization end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activemerchant-1.2.0 | test/remote_tests/remote_secure_pay_test.rb |
activemerchant-1.2.1 | test/remote_tests/remote_secure_pay_test.rb |