AuthorizeNet.PaymentProfile

Handles customer payment profiles (http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile).

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.

Source

Summary

create_business(customer_id, address, payment_type)

Creates a payment profile for a “business”. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile

create_individual(customer_id, address, payment_type)

Creates a payment profile for an “invidual”. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile

delete(customer_id, profile_id)

Deletes a Payment Profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-delete-customer-payment-profile

from_xml(doc, customer_id \\ nil)

Builds an PaymentProfile from an xmlElement record

get(customer_id, profile_id)

Returns a Payment Profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-payment-profile

valid?(customer_id, profile_id, card_code \\ nil)

Validates a payment profile by generating a test transaction. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-validate-customer-payment-profile

xmlElement(args \\ [])
xmlElement(record, args)
xmlText(args \\ [])
xmlText(record, args)

Types

t :: %AuthorizeNet.PaymentProfile{address: term, customer_id: term, payment_type: term, profile_id: term, type: term}

profile_type :: :individual | :business

Functions

create_business(customer_id, address, payment_type)

Specs:

Creates a payment profile for a “business”. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile

Source
create_individual(customer_id, address, payment_type)

Specs:

Creates a payment profile for an “invidual”. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-create-customer-payment-profile

Source
delete(customer_id, profile_id)

Specs:

  • delete(Integer, Integer) :: :ok | no_return

Deletes a Payment Profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-delete-customer-payment-profile

Source
from_xml(doc, customer_id \\ nil)

Specs:

Builds an PaymentProfile from an xmlElement record.

Source
get(customer_id, profile_id)

Specs:

Returns a Payment Profile. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-get-customer-payment-profile

Source
valid?(customer_id, profile_id, card_code \\ nil)

Specs:

  • valid?(Integer, Integer, String.t | nil) :: true | {false, term}

Validates a payment profile by generating a test transaction. See: http://developer.authorize.net/api/reference/index.html#manage-customer-profiles-validate-customer-payment-profile

Source

Macros

xmlElement(args \\ [])
Source
xmlElement(record, args)
Source
xmlText(args \\ [])
Source
xmlText(record, args)
Source