Business::CPI::Role::Buyer - Information about the client
This role 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.
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.
If any extra information is required to find the address set this field.
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 role will soon be ported to use Business::CPI::Role::Account,
So beware of backcompatibility issues.
all attributes prefixed with
address_* will lose the prefix and be set using Business::CPI::Role::Account::Address.
André Walker <firstname.lastname@example.org>
This software is copyright (c) 2014 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.