How do I add a PayPal API request call? - api

We are using Woocommerce along with PayPal Pro on our website.
We are using the CloudIQ basket abandonment system and need to add a PayPal API request call to be made after the customer completes the checkout process.
Does anybody know if this is possible in PayPal and how I do this?
Thanks

Not quite sure about your exact request. But if you are referring to the data collection API call in PayPal, you can refer to the link below about PayPal Instant Payment Notification (IPN).
https://developer.paypal.com/webapps/developer/docs/classic/ipn/integration-guide/IPNIntro/
In addition, PayPal have Classic API and REST API for your reference in the link below.
https://developer.paypal.com/docs/classic/api/
https://developer.paypal.com/docs/api/

Related

Getting Paypal API response

I am trying out the PayPal API Developer Account, and am in the midst of creating a test payment. I have followed the steps stated here.
However, what I want to do is to extract the JSON response from the orders API, in which I would be using in Tibco. The request has been successfully made and is reflected in the Sandbox account. But I am unsure how I can obtain the URL that returns the JSON response from the orders API.
I am new to Paypal API integration and I would really appreciate any help provided.

Laravel Paypal API single payout

I'm trying to integrate the Paypal API to my Laravel project to send payments to users emails automatically from my own Paypal account.
The thing is that there are some "mass payments" packages but that's not what I need, I actually need to send a single payment to one user each time.
Thanks in advance!
I don't know about package you are using but for single payout or any type of payment you can use PayPalPHP SDK and here is sample code for single Payout :
Paypal Single Payout PHP
This is PHP Package and you can pull with composer so you can easily use with Laravel Also.
Let me know if have any question.
For document please have a look Paypal Documents API:
Paypal Documentation

how to deal with recurring payment

I am new to the paypal and intefrati it with asp. Net mvc.
Can anyone plz guide which api should be used...??
I have downloaded merchant sdk and I have also seen the documentation but still not able to get what can be used among express checkout, pro, adaptive payment, etc
Thanks in advance.
I would recommend Express Checkout with Recurring Payments. Specifically, that will consist of the following API calls:
SetExpressCheckout - To get a token back from PayPal, and then redirect the user to PayPal.
GetExpressCheckoutDetails - To obtain details about the buyer. This is optional depending on how you setup your SEC request
DoExpressCheckoutPayment - This would be used to finalize a regular (non-recurring) Express Checkout flow.
CreateRecurringPaymentsProfile - This would be used to generate the profile using the tok you got back from SEC.
If you want to setup recurring payments with credit cards directly on your site you'll need Payments Pro with Recurring Billing, and then you would use the PayFlow API to set everything up.

Confused as to which PayPal api to use for generic payments?

I'm building a small cart app in PHP which needs to have PayPal integrated into it for payments.
Checking the PP developer site you get 100 different APIs for every kind of job, however there is no clear answer as to which is the GENERIC API I should use to accept payments in the classic manner most webshops implement:
1. Client clicks pay
2. Redirected to PP site where he is asked to login.
3. After login he is presented with confirmation, he clicks OK.
4. Browser redirects back to my cart which presents user with a "Thank you" message, order code etc, while in the background a request is sent to my cart with the transaction credentials (transaction id, success status etc).
By the way, I'm not looking for Express Checkout since in this case PP provides the shipping info.
You could use the DoDirectPayment API to process payments. This will keep the buyer on your site, and they will enter in the information on your site. Then you will pass the details over to PayPal through an API call, and PayPal will then send the response back to you if the payment is approved.
If you are not wanting to use the DoDirectPayment API and are wanting to direct the buyer over to PayPal's pages to complete the payment but do not want to use Express Checkout, you could use PayPal Payments Adv/Payflow.
Express Checkout is what you want. Shipping info can be set on your end or Paypal end. It makes no difference.

About paypal express checkout api

In this picture,there are 3 main steps:SetExpressCheckout,GetExpressCheckoutDetails and DoExpressCheckoutDetails,I'm now sure SetExpressCheckout is to be called by myself,what about GetExpressCheckoutDetails and DoExpressCheckoutDetails,is it called by paypal or by myself?
The api is provided to be called by non-paypal I think,but the problem is seems it's redirected to paypal after calling SetExpressCheckout.
(source: paypal.com)
Yes, you are expected to be the one calling these APIs. After you call SetExpressCheckout, you'll get a token back that represents the checkout you're performing. You'll need to use that token and redirect the user to Paypal to approve the payment. After they approve it, Paypal will redirect back to your site and then you can call GetExpressCheckoutDetails and/or DoExpressCheckoutPayment. The GetExpressCheckoutDetails call is useful for getting things like shipping address, etc, since the buyer can set that stuff as part of the approval flow. Once you have all the info you need, the buyer has approved the payment and you're ready to get paid, then call DoExpressCheckoutPayment to get your money.
See the ExpressCheckout docs for an example of a simple integration.