Studyon Minte9.com
Magento




Save order after payment



This is quite a common issue during Payment Module development.
Magento offers two hooks for payment method classes to provide redirect URL's, one before the order is 
created, one after.

If a payment method model implements getOrderPlaceRedirectUrl() the customer will be redirected after the 
confirmation step of the one page checkout, the order entity will be created.

If a payment method model implements the getCheckoutRedirectUrl() method, the customer will be redirected 
after the payment step of the one page checkout, and no order entity is created.

This is not ideal, but thats what Magento offers out of the box.


http://stackoverflow.com/questions/9185129/magento-payment-redirect-order