Paypal API List Withdraws - php

I'm implementing a PHP Web application that uses PayPal for payments. I'm using for all the things the REST API.
My problem is how can I get the list of withdraws from PayPal API?
I'm going to use the functionality to withdraw to a bank every day, but I will need to see, with the API, those withdraws...
Any idea? I'm a little bit lost after spending two days searching and trying page on google.
Thank you in advance,
Rui

I don't think the REST API supports it yet. The Classic API does, though, with the TransactionSearch API.
Our PayPal PHP SDK will make this very quick and easy for you to setup.

Related

How to create flexible billing agreements using PHP Rest SDK?

We need to create flexible billing plans for our customers, in which the timing and amount of the billing is flexible and should be determined by us. Just like a "utility bill" but with flexible charge date. Also, there's no purchasing involved upon agreeing of the customer, just his approval for us to charge his PayPal account.
After researching it we decided to go with "referenced transactions". I've read its documentation and the flow seems to be clear.
However, when I attempt to implement using PayPal's PHP REST SDK, I can't seem to find the methods that implement that flow, or some other description on how to achieve our needs using this SDK. For example, I can't find SetExpressCheckout in the PHP REST SDK.
Can anyone point out how we should implement our business needs as described above (1st paragraph) using the PHP REST SDK? I'm very aware of the rather good PayPal REST API documentation.
Thanks!
Unfortunately Reference Transaction is only available with the Classic APIs.
The only similar REST API is called "Future Payments". Unfortunately this API has only been implemented for the PayPal Mobile SDK. You cannot use it outside a native mobile app...
I'm afraid your only solution is to implement the PayPal Classic API with Reference Transaction.

How can i add purchase order in XERO using an API?

I need to add purchase order in XERO using an API. But, i can't get the endpoint for this service.
Please Let me know if you have any idea about this.
Thanks ahead the time.
This is a reply from official XERO
not at the moment, I’m afraid. We’ll be assessing demand for an import
function and the API team could come to the rescue with support there
– again this will depend on demand.
source :https://www.xero.com/blog/2013/11/purchase-orders/
You can now create purchase orders through the Xero API using the /purchaseorders endpoint.
Documentation is here: https://developer.xero.com/documentation/api/purchase-orders

PayPal API Website integration with or without CURL

PayPals documentation is quite confusing:
I need to integrate PayPal API into my website so the customer can pay for a final sum. And im using the sandbox for testing.
Now, technically, i found two different methods of integrating the API:
Without curl - using header('location', $urlwithvars)
With curl https://developer.paypal.com/docs/classic/express-checkout/gs_expresscheckout/
Now what confuses me - is curl only used because you can do a POST call to the paypal server? Because using the first option i also get directed to the paypal procedure and get the JSON response successfully on my notification url.
Im using following library: https://github.com/jersonandyworks/Paypal-Library-by-RomyBlack
Is that enough or should i use the complete curl process like here http://www.sanwebe.com/2012/07/paypal-expresscheckout-with-php
So basically the main question: DO i have to use curl process or is the header-location-url idea enough?
Thanks in advance
That library you're using is actually just using Payments Standard, not Express Checkout. That may be where part of your confusion comes from. This isn't even hitting the actual API's. Not sure if you care about that or not, but I personally prefer the full Express Checkout API as it provides a lot more options and freedom to integrate however you want.
I'd recommend you take a look at my PHP Class library for PayPal, which has all of the actual API's built in. I have a CodeIgniter specific version of it, too. It will do all the API work for you and you can integrate pretty much all of their calls within minutes.

PayPal DoAuthorization, DoCapture and DoVoid

I am creating a website for auctions using Paypal. Clients pay a small fee to participate,
and when the offer falls on someone, the others recover their money.
How do I implement DoAuthorization, DoCapture and DoVoid (NVP) methods in php? I didn't find any tutorial for this case.
Did you take a look at the code samples here? There are PHP samples for all 3 of these on this page, for both DoDirectPayment and the Express Checkout API's. The SDK's are also very useful as they have all of the code samples as well for PHP. Between the samples and the SDK's, these will give you a working example, something to build off of.

Using Paypal Adaptive Payments API like Kickstarter uses Amazon Payments?

I'm wondering if it's possible to use Paypal Adaptive Payments in the way that Kickstarter.com are using Amazon Payments to collect/fundraise.
For example: A user sets up a project. People pledge $5 to that project, and if it meets a goal, the system then automatically extracts the money from everyone, and puts it into user who created the projects paypal account. Is this possible using Paypal?
Are there any good PHP libraries supporting Adaptive Payments, if this is possible?
I was also looking for the same answer since I am working on a similar crowdfunding platform as Kickstarter is, but I need to use PayPal.
After a lot of Googling and reading about PayPal's Adaptive Payments API I found out that it's possible by using the Preapproval API and then if the project is funded I can use Chained Payments to send the money to the project creator and to also retain a small fee (a percentage) for using the crowdfunding platform.
If you are looking for some PHP libraries you can found 2 versions at the links below.
One is a library for the CodeIgniter framework and the other one is a PHP API class that can be used anywhere. So, here are the links:
CodeIgniter Library - http://www.binpress.com/app/paypal-adaptive-payments-pro-codeigniter-library/140
PHP API Class - http://www.binpress.com/app/php-paypal-pro-adaptive-api-class/612
I see now that your question is 2 years old, I just hope this answer helps others looking for answers regarding PayPal's Adaptive Payments API.
Yes, it is possible using the Adaptive Payments Preapproval API. When someone 'pledges' would be when you set up the preapproval, and then you can run that preapproved transaction at some future time without any additional interaction required.
PayPal has developed a PHP SDK with libraries and examples to get you started.
If you're going to use PayPal, there's a good Ruby gem: adaptivepayments-sdk-ruby
This answer is a couple of years late but better late than never! The one downside to using the Adaptive Payments Preapproval API for a Kickstarter type of system is that you can't guarantee the "pledge" will be valid when you go to make the withdrawal, since it is possible for the user to cancel their pledge at any time.
I've been working on a crowdfunding project similar to kickstarter. I started out using paypal's adaptive payments for this kind of thing but I eventually switched to wepay's preapproval api. I'm glad I did. For one thing, their documentation is clearer and better organized with good examples in PHP, Ruby and Python.

Categories