NAME
Catalyst::Model::CPI - Business::CPI models for Catalyst
VERSION
version 0.01
SYNOPSIS
DESCRIPTION
METHODS
available_gateways
List all the class names for the installed CPI gateways.
my @gateways = $ctx->model('Payments')->available_gateways;
get
Returns a new instance of the gateway, with all the configuration passed as arguments to the constructor.
my $cart = $ctx->model('Payments')->get('PayPal')->new_cart(...);
exists
Check whether the provided gateway is really installed.
if ($model->exists($gateway)) {
...
}
ACCEPT_CONTEXT
Saves the request, so that $gateway->notify
can receive it automatically. See the Catalyst docs for details.
CONFIGURATION
<model Payments>
<gateway PayPal>
api_username ...
api_password ...
signature ...
receiver_email seller@test.com
sandbox 1
</gateway>
<gateway PagSeguro>
receiver_email seller@test.com
...
</gateway>
<gateway Custom>
foo bar
</gateway>
</model>
AUTHOR
André Walker <andre@andrewalker.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by André Walker.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.