truonggiang347 Posted April 27, 2010 Share Posted April 27, 2010 Hi guys! I start to learn PHP and MySQL in the recent month because I intent to launch an e-commerce website. There are two things I want to achieve when I start to learn PHP and MySQL: 1. I want to be able to set up a database to manage my sale (receive order, track order...). 2. I want to be able to place order AUTOMATICALLY with my suppliers website. Until now, I have already figured out most of the stuff in my first goal. But I have no idea how to start with the second one. You know, after my customers order from my website, I will need to figure out: What item did my customers order? and The quantity of each item. When I have all these information, I place order with my suppliers (also through a website). I do it at the end of the day. This is where I get stuck. I don't know how can I automatically place an order. This involve automatically logging to my suppliers website, adding the item I want to order into the shopping cart, automatically fill in the quality. Then select a payment method. (I usually pay by paypal) Then automatically logging to paypal and pay. Some people said that I need to know how to use a web service. In my case, I can use web service with Paypal but there is no way for me to place order on my suppliers' website because they don't have web service. So this is my question: Is it possible with PHP and MySQL to: logging to a site, place order, logging paypal and pay? If it's not, what I need to know to be able to do so? Thank you very much for your time! Quote Link to comment https://forums.phpfreaks.com/topic/199882-is-it-possible-with-php-and-mysql/ Share on other sites More sharing options...
trq Posted April 27, 2010 Share Posted April 27, 2010 Is it possible with PHP and MySQL to: logging to a site, place order, logging paypal and pay? Yes it is possible. Though without a proper web service it could be a little complicated and/or unreliable. take a look at the curl extension. Quote Link to comment https://forums.phpfreaks.com/topic/199882-is-it-possible-with-php-and-mysql/#findComment-1049133 Share on other sites More sharing options...
developerdave Posted April 27, 2010 Share Posted April 27, 2010 I'm pretty sure Paypal have some form of 'human validation' making this pretty difficult. And do you really want a robot handling payments automatically? I don't even trust the banks! haha Quote Link to comment https://forums.phpfreaks.com/topic/199882-is-it-possible-with-php-and-mysql/#findComment-1049145 Share on other sites More sharing options...
truonggiang347 Posted April 27, 2010 Author Share Posted April 27, 2010 Thank you very much for your replies! I have 1 more question. Is there any better solution for my problem? or Do you guys have any suggestions for me? Quote Link to comment https://forums.phpfreaks.com/topic/199882-is-it-possible-with-php-and-mysql/#findComment-1049505 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.