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.

eZ debug

Timing: Jan 18 2025 22:36:00
Script start
Timing: Jan 18 2025 22:36:00
Module start 'layout'
Timing: Jan 18 2025 22:36:00
Module start 'content'
Timing: Jan 18 2025 22:36:01
Module end 'content'
Timing: Jan 18 2025 22:36:01
Script end

Main resources:

Total runtime1.0081 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.0469152.6406
Module start 'layout' 0.00710.0045 740.687539.4766
Module start 'content' 0.01170.9952 780.1641489.4844
Module end 'content' 1.00690.0012 1,269.64848.1250
Script end 1.0081  1,277.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4672160.0003
Check MTime0.00190.1856160.0001
Mysql Total
Database connection0.00070.071110.0007
Mysqli_queries0.941793.4124520.0181
Looping result0.00060.0644500.0000
Template Total0.944693.720.4723
Template load0.00210.208020.0010
Template processing0.942593.485920.4712
Template load and register function0.00010.011610.0001
states
state_id_array0.00300.293610.0030
state_identifier_array0.00280.281820.0014
Override
Cache load0.00170.1668160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.086710.0009
Fetch class attribute name0.00200.201830.0007
XML
Image XML parsing0.00060.059310.0006
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00080.0768160.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs