Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/Notification/RiskInformation.pm

/var/sites/help-site.com/auto/tmp/CPAN/9677/Google-Checkout-1.1.1/lib/Google/Checkout/Notification/RiskInformation.pm


NAME

Google::Checkout::Notification::RiskInformation


SYNOPSIS


  use Google::Checkout::General::GCO;

  use Google::Checkout::Notification::RiskInformation;

  use Google::Checkout::General::Util qw/is_gco_error/;

  my $xml = "/xml/risk_information_notification.xml";

  #--

  #-- $xml can either be a file or a complete XML doc string

  #--

  my $risk = Google::Checkout::Notification::RiskInformation->new(xml => $xml);

  die $risk if is_gco_error $risk;

  print $refund->get_avs_response, "\n",

        $refund->get_cvn_response, "\n",

        $refund->get_partial_cc_number, "\n";


DESCRIPTION

Sub-class of Google::Checkout::Notification::GCONotification. This module can be used to extract various risk information when the rish information notification is received.

new XML => ...
Constructor. Takes either a XML file or XML doc as data string. If the XML is invalid (syntax error for example), Google::Checkout::General::Error is returned.

type
Always return Google::Checkout::XML::Constants::RISK_INFORMATION_NOTIFICATION.

eligible_for_protection
Returns 1 if user is eligible for protection. Returns 0 otherwise.

get_buyer_info WHICH_DATA
Returns buyer information. WHICH_DATA can be Google::Checkout::XML::Constants::BUYER_CONTACT_NAME, Google::Checkout::XML::Constants::BUYER_COMPANY_NAME, Google::Checkout::XML::Constants::BUYER_EMAIL, Google::Checkout::XML::Constants::BUYER_PHONE, Google::Checkout::XML::Constants::BUYER_FAX, Google::Checkout::XML::Constants::BUYER_ADDRESS1, Google::Checkout::XML::Constants::BUYER_ADDRESS2, Google::Checkout::XML::Constants::BUYER_CITY, Google::Checkout::XML::Constants::BUYER_REGION, Google::Checkout::XML::Constants::BUYER_POSTAL_CODE, Google::Checkout::XML::Constants::BUYER_COUNTRY_CODE.

get_avs_response
Returns the AVS code.

get_cvn_response
Returns the CVN code.

get_partial_cc_number
Returns the partial credit card number.

get_buyer_account_age
Returns the buyer's Google Checkout account age in days.

get_buyer_ip_address
Returns the buyer's IP address.


COPYRIGHT

Copyright 2006 Google. All rights reserved.


SEE ALSO

Google::Checkout::Notification::GCONotification

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy