Catalyst::Model::CPI - Business::CPI models for Catalyst
version 0.01
List all the class names for the installed CPI gateways.
my @gateways = $ctx->model('Payments')->available_gateways;
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(...);
Check whether the provided gateway is really installed.
if ($model->exists($gateway)) { ... }
Saves the request, so that $gateway->notify can receive it automatically. See the Catalyst docs for details.
$gateway->notify
<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>
André Walker <andre@andrewalker.net>
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.
To install Catalyst::Model::CPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::CPI
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::CPI
For more information on module installation, please visit the detailed CPAN module installation guide.