[Typo3-shop] When payment fails order is still finalized???

Franz Holzinger franz at fholzinger.com
Thu Nov 24 22:04:19 CET 2005


Hello Jesper,

> OK, so I now have an almost complete SOAP payment backend for my shop.
> What confuses me now is how to handle failed payments.
> 
> I am using plugin.tt_products.paymentActivity = finalize
> 
> My BASKET_PAYMENT_TEMPLATE contains the fields for the credit card data 
> in the form with the products_finalize submit action.
> 
> So when the customer hits "Pay" the products_finalize action is 
> executed, the handlescript is called, the handlescript communicates with 
> the bank, and the customer is shown the BASKET_ORDERCONFIRMATION_TEMPLATE.
> 
> Great.
> 
> Except if the payment is not approved by the bank, and the handleScript 
> never calls tx_ttproducts_finalize_div::finalizeOrder(), the order 
> confirmation is still displayed, and I can't see how I can stop this 
> from happening???
> 
when you are already in the finalize activity this means that the order 
will be processed. So you have to use your payment script at the end of 
the payment activity where the process can stop before finalizing the order.

It is not possible to get an answer from the payment script during the 
finalize activity.

Franz



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