Hey there,
I am working on a checkouthandler and am having a bit of an issue.
The flow I am working with is as follows:
1. start checkout: render a template with and input field in a form that then gets posted.
2. redirect: Identify redirect via request parameter. post a create order to payment gateway. This response with a status OK if all goes well. We then render a waiting template for the user.
The waiting template has a js timout function that posts another form to the redirect method if it expires.
3. redirect: if the user accepts the payment on the mobile device a callback is made by the payment gateway to the checkouthandler. We identify this callback with a request parameter and proceed to validate the request. If all goes well the order is completed via CheckoutDone, we post a receipt to the gateway, we call RedirectToCart.
4. At this point I would like the user to be redirected to the cart but it appears the callback is not running in the same context or session as the user. At least the redirect to cart method does not appear to have any effect when run during the gateway callback.
I feel like I am missing something here and am having a bad time figguring it out.
Any advice would be greatly appreciated.
Reynir