Search code examples
c#asp.net-mvcpaypalnopcommercepaypal-adaptive-payments

How to verify PayPal business email is correct or not in asp.net mvc


We are developing seller based system. In which seller can add there PayPal business email for getting payment in directly into there account.

Is there any way we can check seller added business email is correct or not using PayPal API? So we can reduce errors when customer placing order.

I have to validate from asp.net application. not in PayPal site.


Solution

  • Well, if you're verifying vendors, as per my point of view, you need to check account type as well, otherwise normal account will create an issue on placing an order..isn't it?

    It's bit tricky, but you can use Log In with PayPal functionality in this case. Create a button for your vendors to verify PayPal account, and call to the PayPal API. Once it redirect to your application you'll get response from PayPal with all the information including email, email_verified, verified_account and account_type. Then you can handle it as you want.

    Doc: Integrate Log In with PayPal

    Hope this helps!