Jump to content

Developing a Payment Module - Sending Data Via xml


3eternus

Recommended Posts

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

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

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