Pay online service - php

I have a database where you can select articles etc, users have an account, it's all in mysql and php (i guess you don't need that code).
What i was wondering was how to write a script that allows users to pay online for the articles they selected?
It doesn't need to be any code, just ideas / hints / tips / ... (that are doable in PHP or something similar)
Thanks in advance!!
-Samuel

You have to do that through a service that collects money, such as paypal or a bank.
You make an account there, and they will provide the necessary files and documentation to do that.
Usually it will mean
when the user wants to pay, you redirect them to a specific page in the payment site
you host an IPN (Instant Payment Notification) file where that site will contact you when he receives a payment

I've done some paypal coding before and it is easy to set up, suggest that you should search for payment gateway that, i've work with ipay88.com before its one of payment gateway at my place.
Usually if you setup the paypal for the business transaction you will need to register as merchant account and they will charge you per transaction, same goes with payment gateway.

It is a very broad question. But basically you need to integrate some payment module, such as paypal. Look at their website, where there are tutorials on how to get it working with php.

Related

Using paypal on custom website and accept credit / debit Card

I have an issue right now that is killing me, I have implemented several payment options but never used paypal, I don't know why is it so complicated.
The website already exists and wasn't developed by myself.
I don't know the ammount of the order it is dynamic, so the "create payment buttons" on the paypal website doesn't work for me, at this point i developed a solution using
PayPal developers
But it turns out that i only have the option to pay with a PayPal account or register a PayPal account, I do not want to force customers to do this, it has no sense. is there any relatively easy solution out there using the same PayPal API?
EDIT
The whole site code is in PHP so i need the solution in this language
As you have mentioned that you are aware of one payment method i.e. Express Checkout ( in which user needs to have a valid Paypal account) so the other method which I think you need is the Direct Payment (i.e. a user can pay with credit cards directly without any Paypal account) API.
For this direct payment api you need to enable Website Payment Pro WPP , here you can get info about WPP.

Paypal paying back users

We've integrated Paypal on website of client for accepting payments.
All is fine.
But client wants to be able to pay users of his website back if they have earned some bounces/scores etc.
By now we have implemented such system:
If user of website should get paid - admin of website gets notification about it in admin panel
Admin looks manually at data of client and decides whether he pays or not (pressing approve or deny button)
It looks so:
Client is not satisfied with such system, saying it will get tedious and boring business when he gets many users (unlikely, but this is not the point).
I wonder. Is it possible somehow to automatise this process? He would like only to press "Approve" button and user should be paid immediately.
At first I've thought about using the same code that I use for accepting payments:
But when I accept payments, I use address of created shop. Usual users of paypal don't have shops. Well, this is all pretty confusing.
Any links or advice are appreciated. Because I'm not sure whether such thing is possible or good at all or perhaps I should say client that it can't be done.
Thanks in advance.
You can send a payment programatically using MassPay or Adaptive Payments (Implicit Payments). Either of these methods is a little more advanced, and you have to make an API call to the PayPal server.
MassPay has some restrictions US or CANADA business accounts only.
AdaptivePayments requires the account to go through an application process on http://developer.paypal.com and http://apps.paypal.com

Paypal. Payment information page

I use payment via paypal and I need the customer to enter secure payment information on my webpage.
After reading tutorials, I need to set action to paypal => "https://www.paypal.com/cgi-bin/webscr" and the customer to complete their data on paypal website.
Is it possible to have customers enter card data on my own website? Can you offer any advice or manuals on how to implement this?
Thanks. Sorry for my English
Is it possible to have customers enter card data on my own website?
Yes it's possible. Is it advisable? Not if you don't have to.
If you are passing the user to PayPal to complete payment, there is absolutely no reason for you to collect the CC data on your own website. All you do is add to the customer's risk as well as your own (since there are certain legal ramifications if you screw something up).
If what you are asking is how can you do the entire process on your own site, then that's a different answer and a pretty involved one. PayPal has options for this with different plans and each of those options has plenty of documentation on how to setup and configure the process.
As #butlerblog mentioned, there are different levels of integration for ecommerce. If you truly want to stay away from paypal but are considering your other options for third party integration, you can check this site to start getting an idea of how involved with ecommerce you want to get.

Callback from PayPal. How to know the user paid successfully immediately?

I am running a e-commerce website and I want to integrate PayPal. I need to know immediately whether a user paid successfully or not after they paid via their credit cards. Is there a chance i can do that with PayPal?
I've heard PayPal has a service called IPN, which can post to my server and tell me the transaction's status. But lots of people are complaining that there are huge delays with IPN's PHP API.
Just finished an IPN integration a few hours ago :).
IPN stands for INSTANT payment notifications. In most times it just works(hi Apply fans!).
You add a form with variables such as currency and return URL and with a special page that you expect Paypal to send transaction information when the payment is made. Receiving a notification does not mean funds are sent to your account but the transaction has completed. (possible reasons to not get funds to your account include problems with card provider, incomplete accounts, etc)
You will face some questions regarding specific problems. But I would suggest checking paypal site and it's API docs. They are pretty straight forward and with a little understanding in your programming language and how HTTP works, you can implement it.
I have seen some posts about PayPal IPN system is slow. I have not seen it myself but in most cases, I'm sure you will get paypal API calls just before the user come back to your site.
I've had great success with nSoftware's PayPal plugins.

integrating Paypal into a website - is this possible?

I'm a bit of a newb and have never integrated paypal into a website before so I apologise for my lack of knowledge.
I'm trying to build a website which allows users to sign up and, assuming they get themselves paypal premier accounts (so they can receive payments by credit card) they will be able to receive payments from other users of my site.
So someone will sign up using their Paypal email address, and other users will then be able to send them money through my site. If they use one of my special services then I also want to be able to take a 1% fee of the money sent.
I'm using cakephp and I've searched and found a few cakephp related paypal components but to me it seems that these are aimed at people who want to just use their own paypal account to receive money. Like having a paypal checkout button. Whereas I want to be able to direct money into many different paypal accounts. Is this possible? And if so can any kind soul direct me to where I should be reading (pref something not too difficult - I'm a learner!).
Also as a side note, are there any special security issues I need to take care of when dealing with paypal, especially considering the particular nature of what I want to achieve? How easy would it be for a bad person to alter someones paypal email to direct funds to themselves?
many thanks in advance
Dave
A few years ago I did a similar thing, although the specific code is languishing on an old computer somewhere... Anyway, the way I did it was to use a combination of IPN and Paypal Mass Payments. Any payments have to run through your own PP account first and foremost, at which point on a successful payment IPN calls a script to run Mass Payments and send the money to the intended target(s).
It's a bit fiddly, and I seem to remember (at least when I did it) there were some odd bugs in IPN, but this should do it for you.
HOpe this helps a bit!

Categories