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↑
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
Specs:
- from_xml(Record) :: AuthorizeNet.Card.t
Builds an Card from an xmlElement record.
Specs:
- new(String.t, String.t, String.t) :: AuthorizeNet.Card.t
Creates a new Card structure. The expiration date is in the form: YYYY-MM.
Specs:
- to_xml(AuthorizeNet.Card.t) :: Keyword.t
Renders the given card structure as a structure suitable to be rendered as xml.