Skip to content

Commit

Permalink
Merge pull request #35 from chargify/fusebox_dollar_auth_store
Browse files Browse the repository at this point in the history
[fusebox] Switch store from $0 auth to $1 auth
  • Loading branch information
andys committed Apr 15, 2016
2 parents 495864c + 0be2c13 commit 09b528d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/active_merchant/billing/gateways/fusebox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def inquiry(fields)

# Storing a card is done via an authorize for $0.00 with the string "ID:" in the token request field
def store(creditcard, options = {})
authorize(0, creditcard, options.merge(:token_request => 'ID:'))
authorize(100, creditcard, options.merge(:token_request => 'ID:'))
end

# For a successful void, options must include same :reference of a
Expand Down
2 changes: 1 addition & 1 deletion test/unit/gateways/fusebox_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_unsuccessful_request
end

def test_successful_store
@gateway.expects(:build_request).with(:token_request => 'ID:', :transaction_qualifier => '010', :transaction_amount => '0.00', :unique_reference => 8888888, :billing_zip_code => '', :billing_address => '', :cashier_id => '0', :customer_code => 8888888, :account_number => '4242424242424242', :expiration => '0917', :cvc => '123', :transaction_type => '01')
@gateway.expects(:build_request).with(:token_request => 'ID:', :transaction_qualifier => '010', :transaction_amount => '1.00', :unique_reference => 8888888, :billing_zip_code => '', :billing_address => '', :cashier_id => '0', :customer_code => 8888888, :account_number => '4242424242424242', :expiration => '0917', :cvc => '123', :transaction_type => '01')
@gateway.expects(:ssl_post).returns(successful_store_response)

assert response = @gateway.store(@credit_card, @options)
Expand Down

0 comments on commit 09b528d

Please sign in to comment.