PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, July 4, 2022

[FIXED] When calling paypal rest api it says invalid scope

 July 04, 2022     payment-gateway, paypal, paypal-rest-sdk, paypal-sandbox, spring-boot     No comments   

Issue

enter image description hereCurrently when i call below api it says invalid scope
https://www.sandbox.paypal.com/connect/?scope=openid%20email&response_type=code&redirect_uri={uri}&client_id={clientId}

can someone help me for this issue, as i need to call below APIs. so, how can i get relevant scopes

  • get merchant details : /retail/merchant/v1/status
  • create orders : v2/checkout/orders
  • capture orders : v2/checkout/orders/+orderId+/capture
  • get user info with details : v1/identity/oauth2/userinfo?schema=paypalv1.1

Solution

Ordinary usage of the REST API does not involve any of that -- here is the documentation for getting an access token.


Are you integrating Log in with PayPal, specifically? The URL in your screenshot is specifically for Log in / Connect with PayPal. To request the 'email' scope with such an integration you must enable it within the Sandbox App Settings. Changes may take 9 hours to have an effect.

enter image description here

Again, using the REST API has nothing to do with those scope attributes.



Answered By - Preston PHX
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing