I want to code a website that will allow people to register and advertise and they should pay to advertise so I don't have any idea how to make people pay using their credit card. Please help...
Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.
Only get such code from reputable card transaction service companies - the scope for fraud otherwise is far to large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!
Talk to them - they are generally pretty helpful
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)