Business::CPI::Buyer - Information about the client
version 0.908
This class holds information about the buyer in a shopping cart. The address attributes are available so that if shipping is required, the buyer's address will be passed to the gateway (if the attributes were set).
Buyer's e-mail, which usually is their unique identifier in the gateway.
Buyer's name.
Some gateways (such as PayPal) do not define the street address as specific separate fields (such as Street, Number, District, etc). Instead, they only accept two address lines. For our purposes, we define a lazy builder for these attributes in case they are not directly set, using the specific fields mentioned above.
Street name for shipping.
Address number for shipping.
District name.
If any extra information is required to find the address set this field.
Postal code.
City.
State.
Locale::Country code for the country. You can set using the ISO 3166-1 two-letter code, or the full name in English. It will coerce it and store the ISO 3166-1 two-letter code.
This class will soon be ported to use Business::CPI::Account, either becoming a role, or extending it via inheritance. So beware of backcompatibility issues. In particular, all attributes prefixed with address_* will lose the prefix and be set using the Business::CPI::Account::Address class.
address_*
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.