Payment_Process and Linkpoint

From: Date: Wed, 10 Aug 2005 23:54:17 +0000
Subject: Payment_Process and Linkpoint
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20362@lists.php.net to get a copy of this message
I am using the Linkpoint Process (beta) with the Payment_Process class and am hoping one of the project team members or list members can assist. Documentation is lean but I really want to use this class for a project as it looks very good now I just need to get it all figured out :) I've been tracing the execution thru the script and have resolved a number of local issues but am now a bit stumped. Using the example script "creditcard.php" and modifying to use the Linkpoint Processor. I am now getting a error => Validation of field "action" failed. It is coming from the Payment_Process_Common class - the function _validateAction. In linkpoint.php - we have this code in the process function: // Sanity check $result = $this->validate(); if (PEAR::isError($result)) { return $result; } // Prepare the data $result = $this->_prepare(); if (PEAR::isError($result)) { return $result; } --- Debug trace output from the _validateAction --- Function:_validateLogin Function:_validatePassword Function:_validateAction Driver:Linkpoint Action:201 --- Function code showing my added debug lines ---- function _validateAction() { echo "<br>Driver:" . $this->_driver; echo "<br>Action:" . $this->action; echo "<br>"; return (isset($GLOBALS['_Payment_Process_'.$this->_driver][$this->action])); } Note: a few more lines of setup code in creditcard.php if (!PEAR::isError($process)) { $process->_debug = true; $process->login = 1499999151; // Not my real login/password $process->password = '000000'; $process->action = PAYMENT_PROCESS_ACTION_AUTHONLY; $process->amount = 1.00; $card = & Payment_Process_Type::factory('CreditCard'); if (!PEAR::isError($card)) { $card->type = PAYMENT_PROCESS_CC_VISA; $card->invoiceNumber = 112345145; $card->customerId = 1499999151; $card->cardNumber = '4111111111111111'; $card->expDate = '01/2006'; $card->zip = '48197'; $card->cvv = '768'; Any ideas ? Thanks in advance.

« previous php.pear.general (#20362) next »