Ken
Ken

Reputation: 833

A way to verify PayPal Account Status is Verfied using PHP

Basically I want my users to associate PayPal account in their accounts for identify verification purposes. I am developing a marketplace site and wanted to integrate paypal as my identity verification procedure.

Is there a way to verify email address, first name and last name using PHP like using $_GET variables or $_POST variables? If there is can you show me how?

I tried search and I get Adaptive Accounts GetVerifiedStatus API. But that totally new to me, I don't know where and how to start.

Upvotes: 10

Views: 1817

Answers (2)

PP_MTS_hzhu
PP_MTS_hzhu

Reputation: 950

You could implement GetVerifiedStatus API to determine whether the specified Paypal account's status is verified or unverified.

To use that API, you need to submit the application request to Paypal for approval first. Submission portal link here.

Then use the GetVerifiedStatus API call directly, refer to API request fields,link.

Sample SDK download link.

Upvotes: 2

Machavity
Machavity

Reputation: 31634

Your best bet here is to make them start, but not complete, an Express Checkout. A normal Express Checkout (referencing Classic but REST works the same way) looks like this

  1. SetExpressCheckout - Tell PayPal you want to authorize $1.00 and have them log in and authorize the payment
  2. GetExpressCheckoutDetails - Take the token from step 1 and get their PayPal account details. Included in this is PAYERSTATUS, which will tell you if their PayPal account is verified or not
  3. DoExpressCheckout - You won't do this, but this is where you finish the process and get funds. Since the data you want is in Step 2, just ignore it and the session will expire.

Upvotes: 9

Related Questions