3eternus Posted September 17, 2014 Share Posted September 17, 2014 Hi,SO I've been looking at the creating a payment module as I need to send the data in XML from end point of the shopping cart to the our bank payment gateway in xml format.I've looked a the other payment modules so far such as cash on delivery and bank transfer but it doesn't really help where I can start with sending the data over XML from the end point.Does anyone have any start points? Or perhaps some free modules that have already been created? Link to comment Share on other sites More sharing options...
3eternus Posted September 19, 2014 Author Share Posted September 19, 2014 does anyone have any ideas where to start here? Ive been looking at other modules, cod etc but not sure where to start from in order to get the xml sent to the our merchants payment page. Link to comment Share on other sites More sharing options...
hpar Posted September 22, 2014 Share Posted September 22, 2014 Hi, Create a module, attach to a hook. In your code, use normal functions like cURL. Link to comment Share on other sites More sharing options...
bellini13 Posted September 22, 2014 Share Posted September 22, 2014 Is it a webservice that they are exposing? Did they provide or define a WSDL for you to use? If yes, then you can use the PHP SOAP extension which will handle creating the XML in the correct format for you. http://php.net/manual/en/class.soapclient.php If no, then you can look into the PHP SimpleXML objects which will deal with creating and parsing XML http://php.net/manual/en/simplexml.examples-basic.php Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now