I have created a successful PayPal IPN script which imports the result into my database but I would like to know if there is any way I can set a custom $receiver_email for the transaction. The problem I run into when doing this is that the IPN is not set up on some accounts.
To put it into context I am creating an auction site where buyers can pay for items and the seller (receiver_email) needs to change to send the payment to them.
If there any way I can get round this problem? If someone can point me in the right direction I would be very grateful.
Thanks in advance!
No, this isn't possible. The IPN settings are set at the account level, so it is up to the receiving paypal account to notify their IPN system.
You would be better off (from a technical point of view, IANAL and this isn't advice on legal issues) having buyers all paying into a central clearing account which you then use to separately pay the sellers.
It sounds like you are looking for PayPal Adaptive Payments. A note about this though: one account - probably you as the main application owner - must have a PayPal business account. The other accounts that receive a payment only need a personal account.
PayPal provides an SDK with samples for the Adaptive Payments on Github. Select Adaptive Payments from the menu on the left. There are samples for multiple languages that should be able to get you started.
Related
I'm using a custom php Paypal nvp API for express checkout.
When people pay with their paypal account I have no problem in my php script, I insert the order, order details and I send the email to the customer. When people pay with their credit card without paypal account I don't receive the transactionid.
The strange fact is that when I use the sandbox, I generate a fake visa I do the payment, in my database I have the transaction id and I receive the email.
Someone had or is having my same problem?
There are different ways to manage payment with and without account?
For both I'm checking the payment status = Complete.
Happy to help your query,
Firstly, PayPal NVP is deprecated implementation. There wouldn't any support for new merchants who willing to add PayPal as a payment option.
Please go through the below recent products which run on REST APIs. I suggested two options of accepting payments so, hence choose the best one suits you.
Standard Integration Link.
Advanced Credit & Debit Card Link.
Thanks.
I'm just starting out with Paypal, so this is a newbie question.
I've been going through the instructions for setting up Paypal subscription service, but I think I'm looking at the wrong thing.
What I want to acheive is to get back some kind of response from Paypal so that I can update the database on my web site to mark a registered user as having paid. Basically I have a flag in the database that says if the user is subscribed or not. I want to ensure that the user is marked as paid so long as their Paypal subscription is maintained.
While the instructions linked above do say how to set up a button to receive a payment, there's nothing there about getting any data back from Paypal.
I know there are terms like IPN and sandbox that are related to what I'm trying to do, but I can't find clear instructions for how to get started on this process. I'm just circling around and not getting anywhere.
Where do I start on setting this up? Where is there a clear beginner's tutorial?
Also, I'm using PHP/Javascript/MySQL on my website.
PayPal's IPN service is what you want to use. I've used it myself to do just what you're looking to do.
Instant Payment Notification (IPN) is PayPal's message service that
sends a notification when a transaction is affected. Once IPN is
integrated, sellers can automate their back office so they don’t have
to wait for payments to come in to trigger order fulfillment. IPN can
send notifications for these transactions:
Instant payments, including Express Checkout and direct credit card payments
eCheck payments and pending, completed, or denied status payments
Pending payments
Recurring payments and subscriptions
Authorizations
Disputes, chargebacks, reversals, and refunds
You can also view notifications on PayPal’s IPN History page and
resend them if you need to. As PayPal’s interface for handling
purchase confirmation and server-to-server communications, IPN can
also be used to manage and customize a variety of APIs and
communications, including:
Customize your website's response to customer purchases in seconds
Track customers via IPN "pass-through" variables
Notify sellers who deal mostly in software downloads and other digital, online goods
Track affiliate sales and commissions
Store transaction information in your own database
For more about IPN:
Technical Overview (link to new html version of docs on developer central)
Instant Payment Notification Guide (PDF)
Code Samples
I'm not sure if its the same thing, but I just setup my friends website with Express Checkout, and I wanted to add all paid orders to an orders table in my database.
After I call SetExpressCheckout, and the user is returned to my site after going through the purchase flow on Paypal's side,
I used the information from GetExpressCheckoutDetails.
Then, if DoExpressCheckoutPayment
is successful (also called from the "callback" page) I then do the appropriate work in my database as far as logging the order details. For you in this case, it could be updating a record for the user in the database.
Hope that helps a little.
I have a website where I need to reward users for their involvement by paying money into their paypal account. I have a paypal business account, and would like to know if it is possible to put money into their account automatically from just having their paypal account email address.
I am developing my website using php. Ideally, I would like to have a script on my server that when executed transfers money from my business account into their paypal account.
I am new to paypal, and having looked around I am getting confused as to all of the different APIs that are in use! MassPay keeps coming up but if possible I would rather I didnt have to pay the 2% charge on each payment - is there any other options?
The payments are not for goods or services and so could be classed as a personal transfer, would this eliminate any fees?
So my questions are:
1) Is this possible?
2) Which API is most suitable?
Thanks
Yes, it's possible but you're going to end up paying a transaction fee. I would recommend you do a batch process (that is, do one large payment request scheduled at a certain time of day) through PayPal's Mass Payment API.
You can read more about this API and how to use it here.
The way PayPal stays in business is by collecting these transaction fees. If it didn't collect them, it wouldn't be nearly as successful.
If you're looking at having more options on the transaction, including some ways to try and shift around who pays the fee, you may want to look at Adaptive Payments.
The best way is to generate a paypal button in the following URL:
https://www.paypal.com/us/cgi-bin/?cmd=_donate-intro-outside
and place it at your page... You'll still have to pay some fee (although it's a low one)
I have a script which enables the users to pay into my paypal account.
Now I need a script which would pay from my account to theirs... I tried to find it but I'm didn't manage... everywhere there are only pay now/cart buttons etc which allows users to pay me, not opposite.
thanks in advance
A script that automatically pays from your account to someone else's doesn't, will not ever, exist.
What you can use however, is PayPal Adaptive Chained Payments to automatically transfer part of your funds to a secondary receiver.
Is that what you're looking for?
Have a look at the Adaptive Payments SDK's at https://www.x.com/community/ppx/sdks#ADAPI as well
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.