[TYPO3-shop] finalizing an order in handleScript

John Nicholas J_nicholas at excite.com
Sat Nov 22 22:42:10 CET 2008


Finally tracked it down to a mismatch in arguments

inside class.tt_products_control.php there is this line:

$content.= $this->paymentshipping->includeHandleScript($handleScript, 
$this->basket->basketExtra['payment.']['handleScript.'], $order, 
$this->conf['paymentActivity'], $bFinalize);

but in class.tt_products_paymentshipping.php the function is

function includeHandleScript($handleScript, &$confScript, $activity, 
&$bFinalize)	

without the $order. so $bFinalize is empty here and setting it true 
within the handleScript has no effect. Now I just need to figure out how 
to set $markerArray values back up to be used in the finalization 
message so I can show the  ###TRANSACT_CODE###

John Nicholas wrote:
> I'll start a new thread on this to try to maintain clarity on my problem.
> 
> I have a tt_products store that lets a user enter their address etc in 
> the ###BASKET_INFO_TEMPLATE### page. Currently the submit button is like 
> this:
> 
> <input type="Submit" name="products_customized_payment" value="Pay / 
> Order" onClick="document.forms[0].action='###FORM_URL_FINALIZE###';">
> 
> I have a handleScript that successfully connects to authorize.net and 
> gets a accept or decline response. Note that nothing is rendered at 
> authroize, this is not like DIBS or other samples where the user goes to 
> the approver and comes back.
> 
> If it is an accepted credit card then the next page should be the Order 
> confirmation page and trigger the finalization actions like clearing the 
> cart and sending the emails to the store admin and the user.
> 
> Currently it just renders a blank output. If I change 
> name="products_customized_payment" to name="products_payment" it then 
> skips the handleScript and goes to a finalize page. I'd rather skip the 
> finalize page if possible since that leaves a gray area where they may 
> not click finalize even though I've submitted the CC info to authorize.net.


More information about the TYPO3-project-tt-products mailing list