Jump to content


This topic is now archived and is closed to further replies.


Post/Receive XML data in PHP?

Recommended Posts

Hi everyone! I'm trying to integrate my PHP/mySQL member billing system with an XML payment gateway (specifically, Orbital Paymentech). They've given me sample XML request & response templates, but I'm just not sure how that fits into my PHP page. I have a PHP form where a user fills in their credit card info, but when they click "Submit" the data needs to be transmitted as XML, and then an XML response will be sent back to the PHP page that needs to be parsed.

Can anyone point me in the right direction? I assume this is simple, I've just never worked with XML in a PHP environment. Thanks for any help you can provide!

Share this post

Link to post
Share on other sites
If your PHP has expat, you can use it's XML parser functions:

[a href=\"http://www.php.net/xml\" target=\"_blank\"]http://www.php.net/xml[/a]

I personally only used it to retrieve data, not to generate XML's though.

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.