Get payment information for an invoice on behalf of a customer

mklitgaard
Contributor
Contributor

We currently have Login with Paypal working and pulling our customers invoices for processing. We are specifically looking for shipping information which is attached to the invoice most of the time. However, some of the invoices have a shipping address that are attached to a specific payment. Unfortunately, we are unable to access the Payment api using the token we generated for the customer (keep getting a forbidden error). Specifically we see REQUIRED_SCOPE_MISSING. I can't find any documentation on exactly where to set scope for the payments api so the user can give us access. I've tried multiple ways in the login flow, but so far it's not working. 

 

Below is the example flow of what I am looking to do. 

 

1. Login with PayPal

2. Authorize app

3. Pull invoices (using token)

4. Get payment information for an invoice (fails here)

 

Is there anything specific we are missing in order to call into the payments api on behalf of someone?

 

Thanks

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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