Paypal API - Any paypment method which let the user call the amount? - php

I have this question about Paypal's api(not the rEST one - it doesn't support my country, yet).
Users on my site can create campains, and invite friends.
These friends which were invited, will be able to send money, but they need to call the amount.
It is load and clear, I can put an input(text input), and capture the number and send it with my SERVER's API call. This solution is bad for me!!!
My main goal is to send mails with the invitation, so on a simple click i will redirect the user from he's mailbox to the paypal checkout page(credit card form by default).
Then, He would be able to set the amount he wants to pay, and that's it.
Is there any way to do this with some kind of paypal payment method ?

Related

Get Paypal's transaction using the REST API with only a receipt number

Okay so I've setup a website with a basic paid subscription using Paypal. Here's the general flow of things:
1) A person fills up a basic subscription form and click subscribe
2) They get forwarded to Paypal who handles the payment
3) User clicks on "back to website" button
4) Account gets activated and user is forwarded to splash page
The thing is that if the user decides to close the window instead of clicking "Back to website", then his account will remain locked even though he paid (and yes, I'm aware you can skip the "back to website" button, but my client wants to keep it).
So, what I'd like to do is basically implement a form that will query Paypal's REST api to check if the user's receipt number actually exists and if so, complete his subscription. The problem is that most of the users pay through credit card, not Paypal... so all they have is a receipt number.
I've searched through the documentation and I can't seem to find how to query Paypal's REST API using the receipt number. Can anyone point me in the right direction?
I use the IPN service provided by PayPal. With this, I pass a custom field along with the transaction containing the user's account number (you could use receipt number as long as you have it stored). I have an IPN Handler script that receives the verification from PayPal that the transaction completed successfully. This script receives the custom field, which can then be used to locate the user's account and update their subscription status.

PayPal API Pay Email Address Directly?

One of the features on my site allows users to pay via PayPal for items from other users. I'm using the standard REST API since I had already made the code for another project a while ago, which works fine.
https://developer.paypal.com/docs/api/#create-a-payment
Currently, the page sends a 'v1/payments/payment' request which I execute to receive the money in to my PayPal account which created the access token. Is there a way I can directly get the user to pay another PayPal email address?
If not, I guess the only way is to do another request to pay the owner of the content from my PayPal once I receive the money - although it means PayPal get to charge a fee twice.
Thanks.

Send donations to external PayPal account php

My ideal process for this would be...
1) User selects a charity from a list
2) User selects amount to donate
3) pop-up, iframe or new window opens and takes them through paypal preocess
4) user is returned to my site with a callback.
My problem is I don't have access to the paypal acounts as they're charitys, Is this possible?
Yes, you can do this no problem. I actually just tested this in the sandbox yesterday.
You can use the Express Checkout API to process the payments, and set the SELLERPAYPALACCOUNTID to the email address of the charity account you want the money to go to.
Take a look at my PHP class library for PayPal, which will make the EC calls very simple for you. Specifically, you'll be working with SetExpressCheckout, GetExpressCheckoutDetails, and DoExpressCheckoutPayment.
The documentation says SELLERPAYPALACCOUNTID is used with Parallel payments, but it seems to work just fine with a single payment/receiver from the tests I can.

Confirmation of a donation made to an external PayPal account

I have a website that allows my users to donate to charities via PayPal. I want to track the donations that a user makes, but I don't have direct access to the charities' PayPal accounts.
This is kind of a follow-up to this question, which provides a good explanation of IPN tracking, but I think it relates to tracking payments made to an account which I own.
Is it possible to send confirmation of a donation to a third party back to my website so that I can track it?
P.S. I really hope this isn't the wrong way to post a follow-up question, and that it doesn't count as a duplicate...
If you use notify_url / NotifyURL in your Payments Standard code or API requests you can override the PayPal account profile and have it send the IPN to whatever URL you specify in that parameter.

How to intergrate paypal into an application?

Im planning to allow people to create premium accounts on a site. There is a simple registration form, at the end of which I want to direct people to paypal where they will make a payment, and then be sent back to my site with their newly created account now activated (if transaction went thru).
I dont want a fully hosted solution ("Website Payments Pro"), but something where you leave the site, and then come back to it after payment.
Everything you need to get started
View sample code
View all tech docs
Download SDKs
API Reference
Using the PayPal API, you'll be able to send users to PayPal to handle payments. Once the transaction has been completed it will then send a response to a script on your site, which you can then act on accordingly. For example, update a particular user's status as 'Paid' or 'Unpaid' in your members database table.
You want to look at PayPal IPN. With that, you can send these pages URLs as hidden fields and PayPal will then return the user to the page you submitted for success, failed, IPN handler etc.
Yes that's possible, look into the "Buy now"-method on PayPal, they have an off-site payment possibility and they have on-site payment. It's up to you how much you want to spend on both time and percentage on each sale.

Categories