elixir_authorizenet v0.4.1 AuthorizeNet.Card

Credit card information for payment profiles and other transactions.

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

Builds an Card from an xmlElement record

Creates a new Card structure. The expiration date is in the form: YYYY-MM

Renders the given card structure as a structure suitable to be rendered as xml

Types

t()
t() :: %AuthorizeNet.Card{code: term, expiration_date: term, number: term}

Functions

from_xml(doc)
from_xml(Record) :: AuthorizeNet.Card.t

Builds an Card from an xmlElement record.

new(number, expiration_date, code)

Creates a new Card structure. The expiration date is in the form: YYYY-MM.

to_xml(card)

Renders the given card structure as a structure suitable to be rendered as xml.