Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the cl-creditcard Reference Manual, version 0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Mon Apr 19 14:39:11 2021 GMT+0.
• Introduction | What cl-creditcard is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
= CL-Creditcard = CL-CreditCard is a common lisp library providing a common interface to charge creditcards. == CL-Authorize-NET == CL-Authorize-net is a common lisp library for payment processing via Authorize.net. It implements the CL-Creditcard interface. ''CL-Authorize-net is production ready and is in use.'' === Example ===(require :cl-authorize-net) (defvar *auth-net* (make-instance 'cl-authorize-net:authorize-processor :login "YOUR LOGIN" :trankey "YOUR TRANKEY" :test-mode :full)) (cl-authorize-net:sale *auth-data* (make-instance 'cl-authorize-net:authorize-data :account "4222222222222" :expdate "06/11" :first-name "Test") 5)=== Objects === * authorize-processor * authorize-data - holds information relevant to making credit-card charges * echeck-data - holds information relevant to making ACH / echeck charges === Methods === All operations are based around aauthorize-processor
instance. * (authorize processor data amount) Do a pre-authorization without capture returning a transaction identifier that can later be used with preauth-capture. Not valid with echeck-data. * (preauth-capture processor transaction-id &key amount) Capture a charge that was previously authorized with authorize. Some processors allow capturing a different amount than was originally authorized. Not valid with echeck-data. * (sale processor data amount) Do a one time charge on a credit card for an amount using the given processor. Other provided keys are up to the processor to interpret or ignore. Returns the transaction's unique identifier if successful. * (void processor transaction-id) Void a previous transaction. == CL-Monetra == CL-Monetra is a common lisp library for payment processing via CL-Monetra. It implements the CL-Creditcard interface ''CAUTION: This processor was in development and then abandoned. See code in the monetra-dev branch if you want to use monetra''
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The cl-creditcard system |
MIT
Generic interace library for talking with credit card processors.
0.1
iterate
cl-creditcard.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The cl-creditcard/src module |
cl-creditcard (system)
src/
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
• The cl-creditcard.asd file | ||
• The cl-creditcard/src/packages.lisp file | ||
• The cl-creditcard/src/credit-card-api.lisp file | ||
• The cl-creditcard/src/util.lisp file |
Next: The cl-creditcard/src/packages․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
cl-creditcard.asd
cl-creditcard (system)
Next: The cl-creditcard/src/credit-card-api․lisp file, Previous: The cl-creditcard․asd file, Up: Lisp files [Contents][Index]
src (module)
src/packages.lisp
Next: The cl-creditcard/src/util․lisp file, Previous: The cl-creditcard/src/packages․lisp file, Up: Lisp files [Contents][Index]
packages.lisp (file)
src (module)
src/credit-card-api.lisp
Previous: The cl-creditcard/src/credit-card-api․lisp file, Up: Lisp files [Contents][Index]
credit-card-api.lisp (file)
src (module)
src/util.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The cl-creditcard.system package | ||
• The cl-creditcard package |
Next: The cl-creditcard package, Previous: Packages, Up: Packages [Contents][Index]
cl-creditcard.asd
Previous: The cl-creditcard․system package, Up: Packages [Contents][Index]
Library for charging credit cards.
packages.lisp (file)
clcc
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions | ||
• Internal definitions |
Next: Internal definitions, Previous: Definitions, Up: Definitions [Contents][Index]
• Exported generic functions | ||
• Exported conditions | ||
• Exported classes |
Next: Exported conditions, Previous: Exported definitions, Up: Exported definitions [Contents][Index]
The card number.
credit-card-api.lisp (file)
Street address for AVS. Typically only numbers need to
be passed in this fields. Letters and other characters are ignored.
credit-card-api.lisp (file)
Do a pre-authorization without capture returning a
transaction identifier that can later be used with preauth-capture.
credit-card-api.lisp (file)
Card [Code] Verification value. Usually 3-4 digits on back of card.
credit-card-api.lisp (file)
Check that a cc-data like structure has enough data to
complete a transaction.
Can optionally require that AVS verification, Card Verfication data be present.
Can optionally signal an error if data isn’t present.
Some merchant accounts will incur extra fees if AVS isn’t used.
credit-card-api.lisp (file)
The card expiration date
credit-card-api.lisp (file)
Check the credit-card number is valid looking based on
the luhn algorithm: http://en.wikipedia.org/wiki/Luhn_algorithm
credit-card-api.lisp (file)
Capture a charge that was previously authorized with authorize.
Some processors allow capturing a different amount than was originally authorized.
credit-card-api.lisp (file)
Do a one time charge on a credit card for an amount using
the given processor. Other provided keys are up to the processor to interpret
or ignore.
Returns the transaction’s unique identifier if successful.
credit-card-api.lisp (file)
Void a previous transaction.
credit-card-api.lisp (file)
Zipcode for AVS verfication.
credit-card-api.lisp (file)
Next: Exported classes, Previous: Exported generic functions, Up: Exported definitions [Contents][Index]
Error signalled when the CC is denied and error signalling is requested.
credit-card-api.lisp (file)
cc-error (condition)
Previous: Exported conditions, Up: Exported definitions [Contents][Index]
Class to hold data that normally goes with a credit card charge.
We interact with this class only through the accessors and never actually check
the type, so you can feed it any data structure that responds to these set of accessors.
credit-card-api.lisp (file)
standard-object (class)
The card number.
:account
account (generic function)
(setf account) (generic function)
The card expiration date
:expdate
expdate (generic function)
(setf expdate) (generic function)
Card [Code] Verification value. Usually 3-4 digits on back of card.
:ccv
ccv (generic function)
(setf ccv) (generic function)
Street address for AVS. Typically only numbers need to
be passed in this fields. Letters and other characters are ignored.
:address
address (generic function)
(setf address) (generic function)
Zipcode for AVS verfication.
:zip
zip (generic function)
(setf zip) (generic function)
Previous: Exported definitions, Up: Definitions [Contents][Index]
• Internal functions | ||
• Internal generic functions | ||
• Internal conditions |
Next: Internal generic functions, Previous: Internal definitions, Up: Internal definitions [Contents][Index]
Safely read a string into the keyword package.
util.lisp (file)
Returns a new string in which all the occurences of the part
is replaced with replacement. [FROM http://cl-cookbook.sourceforge.net/strings.html#manip]
util.lisp (file)
Next: Internal conditions, Previous: Internal functions, Up: Internal definitions [Contents][Index]
Credit a charge, if transaction-id is present this is a credit against a precviouly charged authorization
credit-card-api.lisp (file)
credit-card-api.lisp (file)
credit-card-api.lisp (file)
Previous: Internal generic functions, Up: Internal definitions [Contents][Index]
Requested errors when processing the credit will inherit
from here. user-message, when supplied, should be a safe string to display to
clients informing them of the error.
credit-card-api.lisp (file)
simple-error (condition)
deny-exception (condition)
:user-message
(quote nil)
user-message (generic function)
(setf user-message) (generic function)
human-interpretable response code
(meant for system display to clerk)
:verbiage
verbiage (generic function)
(setf verbiage) (generic function)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | C F L M |
---|
Jump to: | C F L M |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | (
A C E F G L M P R S U V Z |
---|
Jump to: | (
A C E F G L M P R S U V Z |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Jump to: | A C E S U V Z |
---|
Jump to: | A C E S U V Z |
---|
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | C D P S |
---|
Jump to: | C D P S |
---|