Paypal Digital Goods - How to retrieve payer info? - paypal

I just integrated the express checkout script from https://www.x.com/developers/community/blogs/ppmacole/another-digital-goods-demo into my site.
I have a question. I'd like to keep track of all the sales with Freshbooks and I was wondering if it's possible to get the payer's information after the payment has been sent.
I think I read somewhere that since it's a "digital goods" type checkout, it doesn't involve any address stuff.
Any help would be greatly appreciated.
Thanks!
- Alain

What information are you looking for? If it's any address-related information that would be correct; this is not collected with a Digital Goods checkout which, as the name implies, if intended to sell digital goods.
If all you need is the fancy popup, I'd suggest looking at Embedded Payments which is part of the Adaptive suite of API's. See https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_APIntro "Using Embedded Payments".

Related

Integrate Paypal in multi merchant website

I have a multi merchant website and in that what i need to do is when customer purchase a product 5% of the money is gone to website paypal account for service and rest of the money will be gone to seller paypal account. I need to integrate paypal in that. As paypal adaptive payments is deprecated and paypal is not providing any other solution to do that.
Can anyone please tell me any paypal service which can make it possible.
Thanks in advance.
Sounds like you need marketplace APIs. If you need PayPal APIs in specific, you can look into PayPal for Marketplaces. Braintree (A PayPal service) has better APIs here.
Stripe Connect is also a competitor with good reputation.
With all these APIs, you can control funds disbursement by specifying percentages as you mentioned in your post. I don't know what your complete use case is. So I'd suggest researching all 3 of these and choosing the one that best fits your budget and business model.
Create a mathematical equation to give you the difference between
the total and your 5% (or the seller's 95%).
Process the entire amount into your account.
Pay the seller their (95%) share by transferring that amount to their account.

Recurring payment on PayPal Express Checkout

Im trying set up recurring payment on my site by using Paypal Express Checkout. I did read through the official docs and I couldnt find anything useful related to recurring payment.
https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/add-paypal-button/
Im just wondering does Express Checkout support recurring payment? If so, how can I achieve that or Where can I get some good example to start with?
Thank you for your help in advance. Much appreciated
Cheers
We have a similar issue before. You might wanted to take a look at this thread.
I'm trying to understand the use case here. When you say recurring payment for express checkout,it has to be something a customer is buying regularly like restocking an item, in that case it's not an express checkout, it's a recurring purchase by a returning customer. They must have opted to restock at a regular interval like every 30 days, 2 months etc. They also must be registered users on your website.
So your logic must include — Checking all the customers who have set up an automatic purchase for an item.
—Check their frequency of purchase and charge them for the amount of the item at that frequency.
—For this purpose PayPal has a REST API :
This is the accurate place to look for to implement PayPal recurring payments:
https://developer.paypal.com/docs/api/payments/#payment_create
In case they also allow you to authorize payments through the following API
https://developer.paypal.com/docs/api/payments/#authorization
you could use it as well.
But at least this narrows down your choices in terms of regular payment authorization.
This API will allow you to request PayPal services to authorize payment on a regular basis for that customer. You will still have to have your own logic to check the 'subscription' for your products and the intervals.
—The CreateRecurringPaymentsProfile API Operation (NVP) at the link below looks to be for personal payments. For example something an Inventory Management System will do.
https://developer.paypal.com/docs/classic/api/merchant/CreateRecurringPaymentsProfile_API_Operation_NVP/
It's an API specific to adding recurring payments functionality.
Since you're a developer, PayPal Developers' Resources will answer any queries you have regarding the API functionality and usage. You will have to just know what to ask for. You are their B2B customer trying to understand their API system. You can also file a bug on their Developer portal if you're not getting proper answers.

PayPal Checkout - can we send funds to another person?

We have been using the PayPal Checkout (v4) for a little while now, and really like the way it integrates. This is the system I'm talking about:
https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/checkout-flow/
We are using this plugin to do the magic:
https://github.com/paypal/paypal-checkout
Anyway, as I said we have this all working fine when someone is sending US the money. However, we also have a tool on our site where "customers" can send money to sellers. For this, we currently have the Adaptive Payments system.
My question: How can we use the PayPal Checkout tool to let people send to a given email address, while still getting the callback for the order? (so we can enter it into our system, to track it)
At first I thought this wouldn't be possible - but I've seen this exact same logic on eBay:
Is this something that is publicly available? Or is it just a "PayPal-Ebay" thing? (as they are effectively the same company, so maybe have access to different tools than the general public do)
Thanks!
Here's another option -- the payee option in PayPal's REST api:
https://devblog.paypal.com/setting-payee/
Using this, you can set the money to be moved to whichever paypal account you like with just the email address.
The PayPal Express Checkout v4 is based on PayPal Rest API which does not support spliting or sending payment to a given PayPal account that is not the API caller. Adaptive payment is the right to do so in PayPal. The PayPal checkout on eBay is only for eBay, the checkout experience may look similar but it's using different product than the Express Checkout v4.
The basic integration lets you set up a button for a merchant using only their client id:
https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/basic-integration/
So if you can collect the merchant's client id, you can set up a button to make payments to that merchant.
Hope that helps!

paypal one time login during paypal payment

I need a help regarding paypal.
That is. Once I have logged in with paypal and made payment, Then for another payment no login will be asked, Direct payment will be done using paypal. Please comment your suggestions. Thanks in Advance.
You have a couple of options for this.
First, you could take a look at Preapproval, which is part of the Adaptive Payments platform. It allows users to create a Preapproval profile that your application can then use to trigger payments at any time without further approval as long as the payment fits within the guidelines of the preapproval profile.
Another option would be to look into Express Checkout with Reference Transactions. This would give you a little bit more flexibility and would be more in line what you're asking for, I think. Users would agree during their first payment with you to allow you to auto-charge this same account in the future. Then you would use DoReferenceTransaction to trigger future payments based on that "billing agreement" which is what it would be called that way.
I would recommend going with Express Checkout, and you might want to look at Digital Goods, too, which just adds some more functionality with quicker PayPal checkout in various ways.
It's all handled through a few simple API calls, so don't let all the info scare you.
My PHP class library for PayPal will make all of the API calls very simple for you regardless of which method you choose. Again, though, I'd recommend Express Checkout.

ActiveMerchant PaypalExpressGateway reference transaction

Is there a way to use ActiveMerchant's PaypalEpressGateway to bill for arbitrary amounts without sending the user back to Paypal every time? It looks like the reference_transaction method might support that using a billing agreement, but the documentation doesn't really specify what it requires.
You can contact PayPal support team and they will guide you
Email to contact is ppmts#paypal.com