NAME
AnyMerchant::Gateway
VERSION
version 0.0002
DESCRIPTION
This role defines the interface for all AnyMerchant::Gateway::* classes
.
METHODS
The param $amount
is an integer representing cents. An amount of 1000 corresponds to $10.00.
The param $source
refers to either a credit card or a bank account. It may be a proper object or a hashref.
debit
debit($amount, $source, %params)
Charge a credit card or debit a bank account.
authorize
authorize($amount, $source, %params)
Authorize a transaction.
capture
capture($amount, $id, %params)
Capture an authorized transaction.
credit
credit($amount, $target, %params)
Credit account.
void
void($id, %params)
Void a transaction.
AUTHOR
Naveed Massjouni <naveedm9@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Naveed Massjouni.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.