$ lein deps && lein compile && lein install
(production-mode)Requires a Authorize.net merchant account.
(test-mode)[DEFAULT] Requires an Authorize.net test developer account. Note: some features cannot be tested in "test-mode".
{:reason_text (TESTMODE) This transaction has been approved., :transaction_id 0, :reason_code 1, :code 1}
You can take a look at the Authorize.net documentation for code, reason_code, and reason_text meanings.
(process-payment {:x_login "4y5BfuW7jm" :x_tran_key "4cAmW927n8uLf5J8"
:x_first_name "Homer" :x_last_name "Simpson"
:x_address "742 Evergreen Terrace" :x_city "Springfield"
:x_state "TN" :x_zip "37172" :x_country "US"
:x_phone "555-555-5555" :x_card_num "6011000000000012"
:x_exp_date "10/10" :x_card_code "123" :x_amount "12.50"})
(void-transaction {:x_trans_id "123456"
:x_login "4y5BfuW7jm"
:x_tran_key "4cAmW927n8uLf5J8"})
(echeck-payment {:x_login "4y5BfuW7jm"
:x_tran_key "4cAmW927n8uLf5J8"
:x_amount "12.40"
:x_bank_aba_code "064000017"
:x_bank_acct_num "0918392029"
:x_bank_acct_type "CHECKING"
:x_bank_name "Regions Bank"
:x_bank_acct_name "Personal"
:x_echeck_type "WEB"})
Seth Buntin (sethtrain@gmail.com)
You can download this project in either zip or tar formats.
You can also clone the project with Git by running:
$ git clone git://github.com/sethtrain/clojure-authorize