Well I've alerady checked all the process and did not discover what going wrong.
The reponse code is base on the code of checkout_process.php
Pascal
Printable View
Well I've alerady checked all the process and did not discover what going wrong.
The reponse code is base on the code of checkout_process.php
Pascal
The problem with relying on an IPN approach is that you need to reconstruct the entire session independent of the customer. So that means you need to store the entire session before the customer leaves your site so you know what to reconstruct before running the logic akin to checkout_process. Also, you need to trick the customer's live session into *thinking* that the order is complete, even though it doesn't exist in the store yet. It's complicated and FULL of problems and numerous risks of never completing at all. A much better approach is to use an API approach, and ignore the IPN approach altogether.
Plus, checkout_process.php is NOT the entire logic that happens during the checkout-process stage. There's code in the header_php.php for that page too.
You can try to mimic the PayPal IPN logic, but keep in mind that the code there is VERY complicated because of the thousand things that could go wrong, and often do, and workarounds for each. There are better ways to do it, but not in the v1.x architecture. ZC v2 will be easier to write for, but REGARDLESS, using an IPN approach is outdated and archaic, and not an efficient or contemporary way of interacting with online stores.
Well I'm able to recreate the session.
The response also got some code of header
I think that things that miss to my code, is to get price of items into the order.
Is there some function that list the content of the order ?
So I may checks what's going wrong.
On process completion the tabler order is updated, and the table order-product, but not the order_total.
Pascal