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

Jesper Weissglas jesper at seventhwave.se
Fri Nov 25 13:44:04 CET 2005


Franz Holzinger wrote:
> 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.

OK, so I should use paymentActivity=payment instead. This creates the 
following structure:

As ususal in the BASKET_INFO_TEMPLATE, I fill in billing and shipping 
address. I then press the products_payment button, which takes me to the 
BASKET_PAYMENT_TEMPLATE *and* calls the handleScript. At this point the 
handlescript does not have any credit card info, so it displays a credit 
card input form which the system places at the bottom of the page.

Since I am using paymentActivity=payment, my submit button in this form 
still has to be products_payment (not products_finalize), otherwise the 
handleScript doesn't get called again. Now when I press submit the 
handlescript gets the credit card info and processes the transaction.

But now I have the same problem as before, only reversed! If the payment 
was not accepted, I can display a message and ask for corrected 
information. That's fine. But if the payment was approved, I should 
display the order confirmation and the order should be finalized, and 
there is no way I can make that happend. I can have the user press a 
button to get the order finalized, but that's totally crazy, since if he 
doesen't do that, there is no order but his card still gets the charge.

/jesper



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