PHP (Laravel) - Need to get PayPal user's county code from email while payout

vishu099
New Community Member

I'm using the PayPal Payouts with a sandbox app.

I need to get the country code of receiver from email to calculate PayPal Payout charge before Payout ($0.25 for the US and 2% of the amount for non-US)..

Login to Me Too
1 REPLY 1

MTS_Andre
Moderator
Moderator

Hi, the only way you could eventually try to get that is to use the "Login with PayPal" where you get the consent from the user (receiver in your case) and then you call the /v1/identity/openidconnect/userinfo API as shown here to receive the country code as well.

But this means that for each payout the receiver needs to Login with PayPal first.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.