Sha256: 587f77a6d029b67304345b35ab34e32e6fed4843538b60547b8c0681618912dd
Contents?: true
Size: 692 Bytes
Versions: 30
Compression:
Stored size: 692 Bytes
Contents
require 'test_helper' class RemoteSecurePayTest < Test::Unit::TestCase def setup @gateway = SecurePayGateway.new(fixtures(:secure_pay)) @credit_card = credit_card('4111111111111111', :month => '7', :year => '2007' ) @options = { :order_id => generate_unique_id, :description => 'Store purchase', :billing_address => address } @amount = 100 end def test_successful_purchase assert response = @gateway.purchase(@amount, @credit_card, @options) assert response.success? assert response.test? assert_equal 'This transaction has been approved', response.message assert response.authorization end end
Version data entries
30 entries across 30 versions & 9 rubygems