Show Posts


Topics - sandeep

Pages: [1]
1
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]

Powered by SMFPacks Social Login Mod