[TYPO3-shop] handleScript: cancel order, order id
Franz Holzinger
franz at fholzinger.com
Mon Nov 26 07:21:06 CET 2007
Hello Richard,
> I made a handleScript for PayPal Express Checkout, but there are some
> errors. Maybe you can help me. You can find the script at
>
> http://richard.hirner.at/typo3/payment_paypal_express.phps
This is not puglished under GPL.
> 1) I didn't manage to cancel the current order. I could call the
> basket with products_cmd=cancel and the appropriate case block was
> executed, but I don't know how to cancel the order, i.e. prevent
> the order from being finalized. No matter what I put into the
> cancel block, tt_products always completed the order in the DB and sent a
> confirmation. How can I cancel this? I only want an error message like
> "The payment couldn't be processed." I tried
>
> $bFinalize = false;
> $content = "<strong>lol</strong>";
> return;
>
> too but it didn't work.
$ec_details->setCancelURL($return_url
/*."&products_finalize=1&products_cmd=cancel"*/);
You must not use the parameter products_finalize if it is cancelled.
> 2) The invoice id which is set for PayPal is always one number too low.
> I think this is because getBlankUid() creates a new order but this order
> is not used for finalizing. In the database, I have one empty order
> after my script being called, and then another order is created and
> filled with data. How can I tell tt_products to use my blank order?
alwaysAdvanceOrderNumber = 0
- Franz
More information about the TYPO3-project-tt-products
mailing list