I'm trying to make a new payment gateway module.
I've based the module from the PaypalGateway one (by Ted and Calguy) but the behaviour is not exactly the same :
Paypal : create a form and post to paypal website
Citelis : create a form and post to a local php file
The local php have to get some parameters from the module (initially an include of a file).
I've set up these params in the admin section of the module and therefore i can access to them from CitelisGateway.module.php by a $this->GetPreference(...)
-> I can't pass the parameters as POST data (bank_id and password)
How can I do this the 'correct' cmsms way ?
Do i have to register a route to the post.php (action.post.php) to make this possible ?
Code: Select all
$this->RegisterRoute('/[Cc]itelis\/post\/(?P<returnid>[0-9]+)$/', array('action'=>'post'))