How do i get access to payer_id in "Log In with PayPal"?

Ganesh7
Contributor
Contributor

I'm trying to get payer_id from the Log In with PayPal integration but i'm not able to get access to it because there is no scope like payer_id. So, How do i get access to it.

Login to Me Too
2 REPLIES 2

MTS_Stefan
Moderator
Moderator
Hi Ganesh7,

The Payer_ID comes after a payment was accepted by paypal and authorized by the buyer. It is part of the return URL when the buyer is send backt to the merchants shop.

And your side should extract it from that URL and use it for an execute call.
https://developer.paypal.com/docs/api/payments/v1/#payment-execute-request-body

In terms of flows:
>oAuthentication Call if your token expired
>Create Payment
<< EC-Token and payID
>Patch Calls
<< payer_ID
>Execute Payment
<< transaction ID

Kind Regards,
Stefan
Login to Me Too

Ganesh7
Contributor
Contributor

Hi Stefan,

 

Thanks for your reply.

 

I'm trying to use Payout Integration in my application. I'm want to create payout to my logged in user using the encrypted PayPal Account number/payer_id. I'm getting all the user related information using "Log In with PayPal", but not able to get payer_id.

Payout_Ganesh_Karader.JPG

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.