Jump to content

How can I confirm an order to my paid module after pay?


Recommended Posts

I've created a module that use other way to pay. The problem is when the pay with the module is complete, the order is not confirmed and the cart have the same products, but the transaction is completed, but not confirmed. Any idea?

Link to comment
Share on other sites

Your payment module extends the PaymentMethod class.  When your payment returns call a front controller, provided by your module, with the result.  In that controller call the validateOrder function on the module class.  The validateOrder function will take care of the rest.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...