PHP & Web-services
# December 28, 2012 at 12:11 pm
Hey I’m fairly new to PHP and I’m trying to work on a project for a friend. We are trying to set up a ticket selling site using TicketNetwork’s Web Services. And my problem is I’m not sure on how I set up functions to pull the data. They gave us some generic PHP functions but I’m confused on were to place in my code or should they just be in a separate file?
Any kind of incite would be greatly appreciated.# December 28, 2012 at 1:27 pm
Any site that money changes hands is no small feat and should be done carefully and heavily tested. Not sure the scope of your project, and I have not worked with TicketNetwork’s Web Services but most things like that have an api in which you interact and they give you sample code that is often everything you need and just plugging in the correct variables etc.
I would assume it goes something like:
Your script POSTS to their web server with the type of transaction + credientials and likely a bunch of other information
Their script response with some set of confirmation presumably documented about whether the transaction was successful or not and why/why not.
Which you then have to handle that by perhaps updating your db, notifiying the user, perhaps some email notifications.
Your code can likely be in any file so long as you have the right credientials and study their API enough to know what to send/receive# December 28, 2012 at 10:13 pm
is [this what you’re using](http://www.nuwudmultimedia.com/Documentation.pdf)?
if so, have you read through it? As @bkbillma says, handling money is a delicate matter. You need to be able to understand how APIs work in general, and how to integrate your code with them. If you’re “fairly new to PHP,” it would probably be a good idea to hire someone with some expertise to handle this for you.
You must be logged in to reply to this topic.