473,404 Members | 2,178 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Paypal & Credit Card payments in php

Jezternz
145 100+
Hey,
I would like to use credit card payments or/and paypal payments, to activate something on my website.
ie. A user is sent to a page and pays (via cc or pp) and once the money is accepted the website will activate a feature or change something in a db, (or do whatever I want via php).

I was wondering what kind of scripts I should be looking for? any links would be great. Idealy I would like to code it all myself (so links to tutorials would be even better) but I can use third-party scripts if thats my only choice. I have looked on google, didn't see that much.

I also want to be very careful about security, nothing dodgy, and only top security if possible (I have notice that some sites have some kind of security protocal - makes a padlock in the urlbar, is this a good idea? and where would I go about paying for this?). On a side note, I would like to know, when a user submits data via the post or get method, is it very secure? and is it possible / likely to be intercepted.

Thanks heaps in advance, Josh
Nov 29 '08 #1
3 1917
dlite922
1,584 Expert 1GB
Hi Josh,

It looks like your a new coder. I would advice you not to attempt to create a site handling sensitive information like credit card numbers. You can save yourself the law suit by:

1. Hiring somebody to do it for you.
2. Learning how to code by hand (not from scripts) first.

That being said, There's no global script that will work for you. You need to code for your specific application. Each of the merchants (like PayPal and Authorize.net) have an API (Application Program Interface), usually through an XML medium. (Hint: Learn PHP and XML parsing)

They usually give you sample code to start you off. Check the merchant's website for manuals of their respective API's.

As far as security, You need to have an SSL certificate installed on your server and registered to your domain. All pages that require transmission of retrieve senstive data should use "https" in front of the url, instead of "http".

Do not use GET, use POST. You do not want a credit card number in the URL. That would be very bad to say the least.

We're here to helping with coding. So if you get stuck at a problem:

1. Google it. if issue not solved, see step 2.
2. Post your code and tell us what you're trying to do, what the code should do, what it is actually doing, and provide any info or error messages that you get.

Good luck!



Dan
Nov 29 '08 #2
Jezternz
145 100+
cool, thanks heaps, um yeh I have done alot of php for different sites, I just have never gone near paypal/credit card/financial type problems before. Yeh I figured get wasnt secure enough, and i wasnt sure about post either. But how else does someone buy things online if not through post?

Anyway I will look into paypal, ect, come back here if need be.

Cheers, Josh
Nov 29 '08 #3
dlite922
1,584 Expert 1GB
@Jezternz
Your welcome. Come back anytime,




Dan
Nov 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Lunchbox G4 | last post by:
I am working on a site, and the people its for are asking about a way of collecting money online. Doing an onsite shopping cart is not a possibility right now, so I'm looking towards PayPal (or...
1
by: Sanju Joseph | last post by:
Dear friends, We are working on a website which will enable the users to place orders from restaurants. The payments are to be directed through Paypal.com. Can anyone provide us necessary...
3
by: solomon_13000 | last post by:
> Wonthaggi Civic Theatre 'WCT' Case Study > > The town of Wonthaggi has a theatre which is owned and > operated by the local council, it is called the > Wonthaggi Civic Theatre (WCT) and a wide...
3
by: John Buchmann | last post by:
I know this is kind of off topic, but i am thinking of integrating it in my asp.net site... My question is: If someone buys something from my site (using Paypal), and they are NOT a registered...
9
by: nm | last post by:
Hi, I am a developer quite familiar with the C# language and .NET framework. I develop mainly data driven websites. All of our past clients have shopping cart systems developed by me in ASP.NET...
7
by: Alan Silver | last post by:
Hello, I've just been looking at the free PayPal component from ComponentOne and am somewhat amazed how insecure it is. They include all the transaction details in plain text in the querystring,...
7
by: Blasting Cap | last post by:
I have an application that needs to use Paypal to verify the legitimacy of a credit card, not the actual charge. The only thing I can find thru Paypal's SDK is stuff that's a COM add-in. Is...
2
by: adamjblakey | last post by:
Hi, I have just signed up to paypal pro payments and want to get this set-up on my site. What i want to do is have a form where the customer can fill in their credit card details and when the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.