I am working to integrate the subscription part of paypal's api into my wordpress theme. We have been able to implement the one time payments via the API but now when we are integrating subscription functionality it gives an error stating "Access Token does not have required scope" But the api context has been set up correctly from what I can tell. Using the below code to set the api context.
I have also enabled the billing agreement and future payment options in the app settings from the developer portal.
$apiContext = new \PayPal\Rest\ApiContext( new \PayPal\Auth\OAuthTokenCredential( 'Client ID Info Removed ', 'Secret Key Info Removed ' ) );
I am on php 7.3
Thank You For Your Assistance.
... View more