Destramic Posted July 9, 2014 Share Posted July 9, 2014 hey guys im really just after a bit of help/information on 2 things (hope its in the right forum). 1. basically I'm wanting to make payments from one account to another online...like paypal does...im wondering what I would need to do to be able to do this if anyone can shine some light please? 2.as seen on google you type in a query in the search bar and it generates sentences/keywords from a database example: so if product "chair" was in the database whilst typing "ch" it would show "chair" for a possible match I know it would in tale sql & json but im after a good tutorial/script of some sort. if anyone can help with some information/sites it would be much appreciated. Thank you Link to comment https://forums.phpfreaks.com/topic/289635-payments-script-seach-script-info/ Share on other sites More sharing options...
davidannis Posted July 9, 2014 Share Posted July 9, 2014 1. basically I'm wanting to make payments from one account to another online...like paypal does...im wondering what I would need to do to be able to do this if anyone can shine some light please? That is a broad question. Do you want to link bank accounts? Do you want to maintain a balance for each user? There are legal issues. Paypal got banking licenses in Europe. How do you intend to get money in and out of your system? 2.as seen on google you type in a query in the search bar and it generates sentences/keywords from a database You need to use Ajax. If you Google "search completion ajax" you'll find examples. Link to comment https://forums.phpfreaks.com/topic/289635-payments-script-seach-script-info/#findComment-1484401 Share on other sites More sharing options...
Destramic Posted July 9, 2014 Author Share Posted July 9, 2014 thank you...basically I want to transfer money just between one user and another and that's it...obviously I'd have to get a banking licence for that country eg. user 1 transfers £20.00 to user 2 Link to comment https://forums.phpfreaks.com/topic/289635-payments-script-seach-script-info/#findComment-1484406 Share on other sites More sharing options...
davidannis Posted July 9, 2014 Share Posted July 9, 2014 $query="UPDATE balances SET balance = balance - $amount WHERE user-id='$from_id'"; $result= mysqli_query($link,$query); if (!$result){ //error handling here } $query="UPDATE balances SET balance = balance + $amount WHERE user-id='$to_id'";$result= mysqli_query($link,$query); $result= mysqli_query($link,$query); if (!$result){ //error handling here } $query="INSERT INTO transactions ('from_id', 'to_id', 'amount) VALUES ('$from_id', '$to_id', $amount)"; $result= mysqli_query($link,$query); if (!$result){ //error handling here } You'll need to add timestamps, etc. I'm assuming you're using MySQL. You need a lot more specifications to make this meaningful. Might want to check that they have the money in their account first unless you offer unlimited overdrafts. Link to comment https://forums.phpfreaks.com/topic/289635-payments-script-seach-script-info/#findComment-1484426 Share on other sites More sharing options...
Destramic Posted July 9, 2014 Author Share Posted July 9, 2014 I'm not sure if im explaining myself very well here but basically user 1 and user 2 will have bank details saved to a secure database. what I want to do is transfer a amount of money from one user to another users bank account (HSBC, Halifax etc...) is there a good tutorial on how I could do this? Link to comment https://forums.phpfreaks.com/topic/289635-payments-script-seach-script-info/#findComment-1484429 Share on other sites More sharing options...
KevinM1 Posted July 9, 2014 Share Posted July 9, 2014 I'm not sure if im explaining myself very well here but basically user 1 and user 2 will have bank details saved to a secure database. what I want to do is transfer a amount of money from one user to another users bank account (HSBC, Halifax etc...) is there a good tutorial on how I could do this? No, because there are laws involved. It's not the kind of thing you want to get into without having a good financial lawyer and a copy of your country's banking software requirements (there's usually various forms of compliance you'll need your system to adhere to). It's not something you should think you can just code up on a whim. Bank accounts, in particular, are tightly regulated. More so than credit cards. This has Bad Idea written all over it. Link to comment https://forums.phpfreaks.com/topic/289635-payments-script-seach-script-info/#findComment-1484437 Share on other sites More sharing options...
Destramic Posted July 9, 2014 Author Share Posted July 9, 2014 yeah well maybe it would be better to use paypal or something to do the transactions...thank you Link to comment https://forums.phpfreaks.com/topic/289635-payments-script-seach-script-info/#findComment-1484450 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.