How do i get access to payer_id in "Log In with PayPal"?
Ganesh7
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Jul-10-2018
01:12 PM
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.
2 REPLIES 2
MTS_Stefan
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-11-2018
04:44 AM
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
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
Ganesh7
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul-11-2018
05:43 AM
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.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Payment not automatically being captured, funds not transferred in Sandbox Environment
- Enable PayPal Billing Address Request on sandbox account in REST APIs
- IPN SHOWS NO HTTP RESPONSE - LISTENER WORKS WITH LOCAL FORM POST in Sandbox Environment
- Invalid 'custom' parameter in PayPal Reporting
- Url () is not a fully qualified URL in REST APIs