Payment_Process2
[ class tree: Payment_Process2 ] [ index: Payment_Process2 ] [ all elements ]

Source for file Driver.php

Documentation is available at Driver.php

  1. <?php
  2. /**
  3.  * A driver interface
  4.  */
  5. interface Payment_Process2_Result_Driver {
  6.  
  7.     /**
  8.      * Constructor
  9.      *
  10.      * @param string $rawResponse     The raw response data returned by the http client typically during Payment_Process2_Driver::process()
  11.      * @param Payment_Process2_Driver A payment process driver of some description, typically of the same class.
  12.      */
  13.     public function __construct($rawResponse,  Payment_Process2_Common $request);
  14.  
  15.     /**
  16.      * Validate a result
  17.      */
  18.     public function validate();
  19.  
  20.     /**
  21.      * Parse the result and populate the appropriate fields in this object
  22.      *
  23.      * @return mixed 
  24.      * @abstract
  25.      * @author Joe Stump <joe@joestump.net>
  26.      * @access public
  27.      */
  28.     public function parse();
  29.  
  30.     /**
  31.      * Return a code constant.
  32.      *
  33.      * Must be called after parse()
  34.      *
  35.      * @return Payment_Process2::RESULT_* 
  36.      */
  37.     public function getCode();
  38.  
  39.     /**
  40.      * Return a human readable message.
  41.      *
  42.      * Must be called after parse()
  43.      *
  44.      * @return string 
  45.      */
  46.     public function getMessage();
  47.  
  48.  
  49.     public function getAVSCode();
  50.  
  51.     public function getAVSMessage();
  52.  
  53.     public function getCvvCode();
  54.  
  55.     public function getCvvMessage();
  56.  
  57.     /**
  58.      * Maps an array of data parsed from the response
  59.      * and populates internal fields.
  60.      *
  61.      * @todo Destroy this method in favor of a per-child, simpler way
  62.      */
  63.     function _mapFields($responseArray);
  64. }

Documentation generated on Mon, 11 Mar 2019 15:40:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.