Business::CPI::Role::Cart - Shopping cart or an order
version 0.911
Cart class for holding products to be purchased. Don't instantiate this directly, use "new_cart" in Business::CPI::Gateway::Base to build it.
The id of the cart, if your application has one set for it.
The id your gateway has set for this cart, if there is one.
The person paying for the shopping cart. See Business::CPI::Role::Buyer or Business::CPI::Role::Account.
Discount to be applied to the total amount. Positive number.
Tax to be applied to the total amount. Positive number.
Handling to be applied to the total amount. Positive number.
Create a new Item object with the given hashref, and add it to cart.
Create a new Receiver object with the given hashref, and add it to cart.
Get item with the given id.
Takes a payment_id as the only argument, and returns an HTML::Element form, to submit to the gateway.
Very similar to get_form_to_pay, $cart->get_checkout_code will send to the gateway this cart, and return a token for it, so that the payment will be made referring to this token. It receives the same arguments as get_form_to_pay.
$cart->get_checkout_code
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 Business::CPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Business::CPI
CPAN shell
perl -MCPAN -e shell install Business::CPI
For more information on module installation, please visit the detailed CPAN module installation guide.