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.

Source

Summary

from_xml(doc)

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

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

Types

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

Functions

from_xml(doc)

Specs:

Builds an Card from an xmlElement record.

Source
new(number, expiration_date, code)

Specs:

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

Source
to_xml(card)

Specs:

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

Source

Macros

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