sorry I'm still scratching my head on this one
please can someone outline the processing flow within zen-cart from after the 3rd party sends me back to the store
everything i'm reading points to getting to
PHP Code:
function before_process() {
// RESPONSE ACTION DEFINED
}
but nothing is seemingly being processed there, even if i only have a simple redirect to an intercept page (to check I got there!)
after returning to the store I am consistently given a 404 Page Not Found
where should I be handling the responses?
and what should my urls be if not
PHP Code:
$posturl = zen_href_link(FILENAME_CHECKOUT_PROCESS);
$returnurl= zen_href_link(FILENAME_CHECKOUT_PROCESS);
Here's the integration guidance i'm working with:
Transaction Responses are posted back to the script in the post url:
• transaction_status – either A (Approved) or D (Declined)
• transaction_value_pence – as passed and processed
• order_number – as passed
• date_time - Date and time of order (YYYY-MM-DD HH:MM:SS)
The order_number is appended to the returnurl (as ono).
the GET method allows you to identify the returning cardholder, and typically perform a database lookup on
your own server to ascertain what transaction status result was delivered to the Post URL for that particular
cardholder.
as i read it, the post url is sending the transaction responses to the store to be processed behind the scenes, so where should i place my code checking for A or D (saving to the DB etc)?
i'm figuring once i have dealt with the post responses and
the customer returns to the store, i'm coding a $db look up to check if their transaction was successful or not and redirect then accordingly,
where do i do this? i was thinking it handled with
PHP Code:
$payment_modules->after_process();
...
but, without getting the responses dealt with i haven't got to that bit yet!!
I’m just not spotting what i’m missing!
Bookmarks