Confirming an order after credit card payment

Author Message

Eirik Alfstad Johansen

Wednesday 19 January 2005 1:32:23 am

Hi,

I'm working on a web shop which shouldn't save the order and send out order emails unless the credit card payment is completed. The credit card payment is triggered at shop|checkout|before.

However, when the payment terminal returns to our web site, I'm unable to confirm the order. Among other variables returned by the terminal, is the session variable "MyTemporaryOrderID". I've tried storing this in $_SESSION and then running

$module->redirectTo( '/shop/checkout/' );

...but that didn't work. I've also tried pasting the entire contents of shop/checkout.php into the script receiving the terminal variables, and it's able to fetch the order object, but still it will not save the order.

Has anyone tried to accomplish something similar to this, and thereby have an idea as to what I'm doing wrong. Perhaps I need a couple of more variables lost along the way?

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Wednesday 19 January 2005 2:03:53 am

After having examined Paul and Tonys payment gateway for WorldPay, it seems that all I should need is:

$operationResult = eZOperationHandler::execute( 'shop', 'checkout', array( 'order_id' => $orderID ) );

...but this does not work for me either.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.