Jump to content

How to create a module for payment gateway


danielevigi

Recommended Posts

I'm trying to create a prestashop module that implements a gateway for a virtual POS. My module class extend PaymentModule. I saw that I can use displayPayment hook to display my payment in the list of payments. With a form with hidden inputs I can send order information to the URL of my virtual POS.

 

The class PaymentModule has a method validateOrder. Should I call this method? And  before or after confirmation of payment?

 

I also saw that there is a class called PaymentCCCore. Can it be of help to me?

Link to comment
Share on other sites

Easiest is probably to have a look at modules/bankwire and see which steps they take there.

 

(to answer your direct question: validateOrder is called in bankwire/validation.php and bankwire/controllers/front/validation.php)

 

pascal

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...