<?php
/**
 * A driver interface
 */
interface Payment_Process2_Driver {

    /**
     * Class constructor
     *
     * Initializes the driver's default state
     */
    public function __construct($options = array(), HTTP_Request2 $request = null);


    /**
     * Translates an action into a localised string
     *
     * @param string $action One of the PAYMENT_PROCESS2_ACTION_* constants
     *
     * @return string|false Returns false when it cannot translate
     */
    public function translateAction($action);

    public function process();
    public function processCallback();
    public function getStatus();
}
<?php
/**
 * A driver interface
 */
interface Payment_Process2_Driver {

    /**
     * Class constructor
     *
     * Initializes the driver's default state
     */
    public function __construct($options = array(), HTTP_Request2 $request = null);


    /**
     * Translates an action into a localised string
     *
     * @param string $action One of the PAYMENT_PROCESS2_ACTION_* constants
     *
     * @return string|false Returns false when it cannot translate
     */
    public function translateAction($action);

    public function process();
    public function processCallback();
    public function getStatus();

    /**
     * Create a hash suitable for use with HTTP_Request2::addPostParameter();
     *
     * array('key' => 'value')
     *
     * @return mixed[]
     */
    public function prepareRequestData();
}
Add new common method for all drivers
Add new common method for all drivers


git-svn-id: 36b7be5e7fa0b144356cf0adbb4d8bae05b5299b@276407 c90b9560-bf6c-de11-be94-00142212c4b1
