I’m currently in the process of configuring a module for Magento and Securetrading, who are a UK based payment service provider.
The system I wish to implement initially is for ST Payment Pages, where the customer is transferred from the merchant’s webserver onto the Securetrading servers in order to input their card details.
I have been working on modifying the existing Authorize.net’s model (core/Mage/Paygate/Model/Authorizenet.php), specifically the _buildRequest function, as I am initially trying to build the string to be used for the http post onto Securetrading’s servers, which will then be used in the _postRequest function to send the information.
I’ve modified the code to include the information I require, however when pressing the “Place Order” button, I am receiving a “undefined” error message. Using Firefox’s firebug, the error I am receiving is:
Fatal error: Call to a member function beginTransaction() on a non-object in /var/www/magento/app/code/core/Mage/Core/Model/Abstract.php on line 224
I’ve attached my module to this e-mail, if anyone knows why I’m receiving this message I’ll be very grateful!!! I’ve been looking at it all day today, and can’t seem to find where I’m going wrong.
There’s a long way to go before I’ll have finished this module, although I’d like to be able to get the post setup quite quickly as I’d like to setup a module for the STXPay system as well. At present I’m ignoring the fact that the module is still accepting the card details on the merchant’s server, as I’m focusing on setting up the post to the servers first.
If there’s any additional information you need, please let me know.
Additionally, are there any technical specifications going to be made available for setting up payment modules once Magento goes into production?