Show Posts


Messages - sandeep

Pages: [1]
1
Extensions and Add-Ons / Re: Payment failed flow
« on: March 12, 2013, 08:30:57 PM »
Thx I tried your suggestions

I noticed that if order status_id=0, the order is not visible in the admin panel for the administrator to view.
I get errors from a gateway callback and need to keep track of them for admin + display them to customers. Saving them in the error log is not very aesthetic and very difficult to manage for administrators.

And if I change the order status_id to a failed status, it wont allow the customer to process the order again which is a bad workflow.
Cannot let customers to re-add their products in cart and retry payment.(unfortunately this is my only current solution :( )

Its a bad design for not displaying all orders in the admin panel.


2
Extensions and Add-Ons / Payment failed flow
« on: March 10, 2013, 11:28:56 PM »
Hi

Im writing an extension to support a new payment method but got some issues below:

1. If a payment transaction failed, I need to record the error message in the order backend for administrator reference.
$this->model_checkout_order->update($cart_id, $this->config->get('default_checkout_frame_order_status_id'), $Message, FALSE);

For this Im assuming I need to confirm that order using $this->model_checkout_order->confirm()
This will clear the shopping cart and wont let the customer try the payment again
What I want is to save error message returned from gateway to the admin backend + allow the customer to retry payment again for that failed order

Anyone knows how to do this?
Or is there any specific page designed only to display error messages like checkout/failed ??



Pages: [1]

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.