elixir_authorizenet v0.3.1 AuthorizeNet.Transaction
Transaction.
Copyright 2015 Marcelo Gornstein marcelog@gmail.com
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Summary
Functions
Add items to the order
“AUTH AND CAPTURE” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Authorization code. This may have been obtained from a verbal authorization or through another channel
“AUTH ONLY” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Adds billing information
“CAPTURE ONLY” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Adds customer information for a business
Adds customer information for an individual
IP address of customer initiating the transaction. If this value is not passed, it will default to 255.255.255.255. Required only when the merchant is using customer IP based AFDS filters
Sets device type: 6 - AirPay. This is part of the “retail” field, that needs device type and also market type
Sets device type: 9 - Dial Terminal. This is part of the “retail” field, that needs device type and also market type
Sets device type: 4 - Electronic Cash Register. This is part of the “retail” field, that needs device type and also market type
Sets device type: 5 - Personal Computer- Based Terminal. This is part of the “retail” field, that needs device type and also market type
Sets device type: 3 - Self Service Terminal. This is part of the “retail” field, that needs device type and also market type
Sets device type: 2 - Unattended Terminal. This is part of the “retail” field, that needs device type and also market type
Sets device type: 1 - Unknown. This is part of the “retail” field, that needs device type and also market type
Sets device type: 10 - Virtual Terminal. This is part of the “retail” field, that needs device type and also market type
Sets device type: 8 - Website. This is part of the “retail” field, that needs device type and also market type
Sets device type: 7 - Wireless POS. This is part of the “retail” field, that needs device type and also market type
Disable transaction setting “duplicateWindow”
Disable transaction setting “emailCustomer”
Disable transaction setting “allowPartialAuth”
Disable transaction setting “recurringBilling”
Disable transaction setting “testRequest”
Set duty information
Set employeeId. Merchant-assigned employee ID. Required only if your payment processor is EVO
Enable transaction setting “duplicateWindow”
Enable transaction setting “emailCustomer”
Enable transaction setting “allowPartialAuth”
Enable transaction setting “recurringBilling”
Enable transaction setting “testRequest”
Sets market type: 0 - ecommerce. This is part of the “retail” field, that needs device type and also market type
Sets market type: 1 - motto. This is part of the “retail” field, that needs device type and also market type
Sets market type: 2 - retail. This is part of the “retail” field, that needs device type and also market type
Creates a new transaction
Indicates NOT exempted from tax
128 characters. Meta data used to specify how the request should be processed. The value of dataDescriptor is based on the source of the opaqueData dataValue
8192 characters Base-64 encoded data that contains encrypted payment data. The payment gateway expects the encrypted payment data and meta data for the encryption keys
Set order information
Pays this transaction with Apple Pay
Pays this transaction with a bank account
Pays this transaction with credit card
Pay with a customer profile ID
The merchant-assigned purchase order number. Purchase order number must be created dynamically on the merchant’s server or provided on a per-transaction basis. The payment gateway does not perform this function
“PRIOR AUTH CAPTURE” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Transaction ID of the original partial authorization transaction. Required only for refundTransaction, priorAuthCaptureTransaction, and voidTransaction. Do not include this field if you are providing splitTenderId
“REFUND” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Runs the transaction
Adds shipping information
Set shipping cost information
Set tax information
Indicates exempted from tax
Renders the given transaction structure as a structure suitable to be rendered as xml
Set arbitrary user fields
“VOID” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Types
t :: Map
Functions
Specs
add_item(AuthorizeNet.Transaction.t, String.t, String.t, String.t, Integer, Float) :: AuthorizeNet.Transaction.t
Add items to the order.
Specs
auth_capture(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
“AUTH AND CAPTURE” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Specs
auth_code(AuthorizeNet.Transaction.t, String.t) :: AuthorizeNet.Transaction.t
Authorization code. This may have been obtained from a verbal authorization or through another channel.
Specs
auth_only(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
“AUTH ONLY” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Specs
Adds billing information.
Specs
capture_only(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
“CAPTURE ONLY” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Specs
customer_business(AuthorizeNet.Transaction.t, String.t, String.t) :: AuthorizeNet.Transaction.t
Adds customer information for a business.
Specs
customer_individual(AuthorizeNet.Transaction.t, String.t, String.t) :: AuthorizeNet.Transaction.t
Adds customer information for an individual.
Specs
customer_ip(AuthorizeNet.Transaction.t, String.t) :: AuthorizeNet.Transaction.t
IP address of customer initiating the transaction. If this value is not passed, it will default to 255.255.255.255. Required only when the merchant is using customer IP based AFDS filters.
Specs
device_air_pay(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 6 - AirPay. This is part of the “retail” field, that needs device type and also market type.
Specs
device_dial_terminal(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 9 - Dial Terminal. This is part of the “retail” field, that needs device type and also market type.
Specs
device_electronic_cash_register(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 4 - Electronic Cash Register. This is part of the “retail” field, that needs device type and also market type.
Specs
device_personal_computer(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 5 - Personal Computer- Based Terminal. This is part of the “retail” field, that needs device type and also market type.
Specs
device_self_service_terminal(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 3 - Self Service Terminal. This is part of the “retail” field, that needs device type and also market type.
Specs
device_unattended_terminal(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 2 - Unattended Terminal. This is part of the “retail” field, that needs device type and also market type.
Specs
device_unknown(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 1 - Unknown. This is part of the “retail” field, that needs device type and also market type.
Specs
device_virtual_terminal(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 10 - Virtual Terminal. This is part of the “retail” field, that needs device type and also market type.
Specs
device_website(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 8 - Website. This is part of the “retail” field, that needs device type and also market type.
Specs
device_wireless_pos(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets device type: 7 - Wireless POS. This is part of the “retail” field, that needs device type and also market type.
Specs
disable_duplicate_window(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Disable transaction setting “duplicateWindow”.
Specs
disable_email_customer(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Disable transaction setting “emailCustomer”.
Specs
disable_partial_auth(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Disable transaction setting “allowPartialAuth”.
Specs
disable_recurring_billing(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Disable transaction setting “recurringBilling”.
Specs
disable_test_request(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Disable transaction setting “testRequest”.
Specs
duty(AuthorizeNet.Transaction.t, String.t, String.t, Float) :: AuthorizeNet.Transaction.t
Set duty information.
Specs
employee_id(AuthorizeNet.Transaction.t, Integer) :: AuthorizeNet.Transaction.t
Set employeeId. Merchant-assigned employee ID. Required only if your payment processor is EVO.
Specs
enable_duplicate_window(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Enable transaction setting “duplicateWindow”.
Specs
enable_email_customer(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Enable transaction setting “emailCustomer”.
Specs
enable_partial_auth(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Enable transaction setting “allowPartialAuth”.
Specs
enable_recurring_billing(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Enable transaction setting “recurringBilling”.
Specs
enable_test_request(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Enable transaction setting “testRequest”.
Specs
market_ecommerce(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets market type: 0 - ecommerce. This is part of the “retail” field, that needs device type and also market type.
Specs
market_moto(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets market type: 1 - motto. This is part of the “retail” field, that needs device type and also market type.
Specs
market_retail(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Sets market type: 2 - retail. This is part of the “retail” field, that needs device type and also market type.
Specs
not_tax_exempt(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Indicates NOT exempted from tax.
Specs
opaque_data_descriptor(AuthorizeNet.Transaction.t, String.t) :: AuthorizeNet.Transaction.t
opaque_data_descriptor(AuthorizeNet.Transaction.t, String.t) :: AuthorizeNet.Transaction.t
128 characters. Meta data used to specify how the request should be processed. The value of dataDescriptor is based on the source of the opaqueData dataValue.
8192 characters Base-64 encoded data that contains encrypted payment data. The payment gateway expects the encrypted payment data and meta data for the encryption keys.
Specs
Set order information.
Specs
pay_with_apple_pay(AuthorizeNet.Transaction.t, String.t) :: AuthorizeNet.Transaction.t
Pays this transaction with Apple Pay.
Specs
pay_with_bank_account(AuthorizeNet.Transaction.t, AuthorizeNet.BankAccount) :: AuthorizeNet.Transaction.t
Pays this transaction with a bank account.
Specs
pay_with_card(AuthorizeNet.Transaction.t, AuthorizeNet.Card.t) :: AuthorizeNet.Transaction.t
Pays this transaction with credit card.
Specs
pay_with_customer_profile(AuthorizeNet.Card.t, Integer, Integer, Integer | nil, String.t | nil) :: AuthorizeNet.Card.t
Pay with a customer profile ID.
Specs
po_number(AuthorizeNet.Transaction.t, String.t) :: AuthorizeNet.Transaction.t
The merchant-assigned purchase order number. Purchase order number must be created dynamically on the merchant’s server or provided on a per-transaction basis. The payment gateway does not perform this function.
Specs
prior_auth_capture(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
“PRIOR AUTH CAPTURE” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Specs
ref_transaction_id(AuthorizeNet.Transaction.t, String.t) :: AuthorizeNet.Transaction.t
Transaction ID of the original partial authorization transaction. Required only for refundTransaction, priorAuthCaptureTransaction, and voidTransaction. Do not include this field if you are providing splitTenderId
Specs
“REFUND” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510
Specs
Adds shipping information.
Specs
shipping_cost(AuthorizeNet.Transaction.t, String.t, String.t, Float) :: AuthorizeNet.Transaction.t
Set shipping cost information.
Specs
tax(AuthorizeNet.Transaction.t, String.t, String.t, Float) :: AuthorizeNet.Transaction.t
Set tax information.
Specs
tax_exempt(AuthorizeNet.Transaction.t) :: AuthorizeNet.Transaction.t
Indicates exempted from tax.
Specs
to_xml(AuthorizeNet.Transaction.t) :: Keyword.t
Renders the given transaction structure as a structure suitable to be rendered as xml.
Specs
user_fields(AuthorizeNet.Transaction.t, Map) :: AuthorizeNet.Transaction.t
Set arbitrary user fields.
Specs
“VOID” transaction. See: https://support.authorize.net/authkb/index?page=content&id=A510