Validate PayPal Client id - paypal

I have been trying to validate Paypal client id but I didn't landed to any solution from Paypal documentation and also from other sources.
Anyone please help me if there is any API to validate Paypal's Client id.

You may want to look at PayPal Adaptive Accounts API. You can use GetVerifiedStatus API Operation to determine whether the specified PayPal account's status is verified or unverified.

Related

How to check whether a Paypal email id is US account or not using Paypal API

i would like to check whether a Paypal account(Paypal email id) is US account or non US account using Paypal API. Is it possible to check by Paypal API. If so let me know the documentation. Your suggestion will be highly appreciated.
You could see Login with PayPal to get the buyer's country information.
https://developer.paypal.com/docs/api/#identity
GET /v1/identity/openidconnect/userinfo/?schema=<Schema>
Response includes country object to determine if its US or not.

API calls required to obtain buyer's e-mail

I'm using PayPal Express checkout with BigCommerce with a sandbox account. Via the BigCommerce API, only one field is supplied, which is also listed via the http://www.sandbox.paypal.com interface as the "Unique Transaction ID" under "Details":
<payment_provider_id>0P192574JB861364C</payment_provider_id>
The orders are going from BigCommerce into an ERP system that, for PayPal Express orders, expects the PayPal username (e-mail) to be provided.
Via the PayPal REST API (or otherwise), is there a way derive the e-mail used during the transaction via the transaction ID?
If so, which API call(s) would be necessary to get the e-mail?
Thanks.
The GetTransactionDetails of the classic NVP/SOAP APIs will let you get the buyer's e-mail with only a transaction ID.
Info is here: https://developer.paypal.com/docs/classic/api/merchant/GetTransactionDetails_API_Operation_NVP/

How to test a PayPal capture API call with Sandbox

I have setup PayPal Sandbox test accounts, a Personal (buyer) and a Business (merchant).
I'd like to test a PayPal 'DoCapture' API Operation. The problem I'm encountering is that I need an AuthorizationID and don't know how to obtain it. If i run the 'DoExpressCheckoutPayment' API call, I do not get an AuthorizationID returned, using the merchant API credentials, though I do get an 'ACK' of success. Do I need to be using the buyer credentials with the 'DoExpressCheckOutPayment' call? I don't see the API credentials in the PayPal Sandbox profile for the Personal account.
Express Checkout example with authorization and capturing you can find here.
Short answer - according with DoCapture documentation
AuthorizationID ... This is the transaction ID returned from DoExpressCheckoutPayment...
According with DoExpressCheckout documentation you need field from response, attention, PaymentInfo#TransactionId
... this value is your AuthorizationID for use with the Authorization & Capture APIs.
This is what you need to do to implement the capture API.
Create Payment: set intent as authorize in its request to get payment Id
Show Payment Details: to get approval_url. The customer will use this URL to pay for the order.
Execute approved PayPal payment: Use this API after customer successfully pays for the order. This API returns authorization-id along with capture link.
Use Capture API: use the URL obtained from step 3 to capture.
Use this link and check payments API.
https://developer.paypal.com/docs/api/payments/#payment_execute
Hope this helps to someone who stumbles upon here.

Get transaction by invoiceId in paypal api

I'm looking for the correct endpoint to use in the Paypal API for looking up a transaction by invoice id. We submit the invoice id to paypal when redirecting customers to PayPal for payment on their site. In order for us to resolve abandoned carts correctly, I need to look these invoice ids back up in paypal to see if there are completed transactions or not. Thanks.
You can use the TransactionSearch API, and use the INVNUM as the criteria to search by. The API Endpoint will depend on if you are trying this on live or sandbox, what type of format you are using, and what type of authentication you are using. You can find a list of the endpoints here.

obtain verified paypal email Id of merchant

I have integrated paypal with my ios application and wants my transaction to complete only if merchant has a verified paypal email id. Please help me to solve this problem . Thanks in advance.
A Get Verified Status API provided by Paypal Adaptive Accounts.
On PHP you should have to integrate SDK "adaptiveaccounts-sdk-php-namespace-php" then using API call you can verified Paypal ID.
I suugest you use this parameter: payer_status=verified for IPN or PayerStatus= Verified for Express Checkout. According to PayPal this means the following:
The payer’s PayPal account status. A value of Verified means that the
customer has confirmed ownership of a bank account or has verified his
account status through other means.
After lot of search,I found my answer ,there is "GetVerifiedStatus" api provided by paypal which is used to check whether user is having correct paypal email address .I have solved it using the link below:
https://www.x.com/developers/paypal/documentation-tools/api/getverifiedstatus-api-operation