Zencart Version: 1.3.9h
First time user of Zen Cart
No add ons installed on the system yet

Challenge:
I am trying to build a payment gateway module using the Authorize.net structure. I am not sure how to do it as the module uses arrays to submit data to the payment gateway. The requirement for the new payment gateway requires we send payment information using XML. Is there an example of using XML?

Is there a way to debug to see what the contents of the delivery would be prior to sending to the payment gateway so that I can check that what is sent is actually XML and not an array of info?

I am new to PHP and a neophyte to Zen Cart. I appreciate all the help you can give.