cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Paypal payment gateway for Magento 2 Rest API

New Community Member

Regarding Paypal payment gateway for Magento 2 Rest API

Below is response we are getting from paypal

{
    "message": "Consumer is not authorized to access %resources",
    "parameters": {
        "resources": "self"
    },
    "trace": "#0 /home/twzlqb5tnpep/public_html/buythevalue.in/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(70): Magento\\Webapi\\Controller\\Rest\\RequestValidator->checkPermissions()\n#1 /home/twzlqb5tnpep/public_html/buythevalue.in/vendor/magento/module-webapi/Controller/Rest/InputParamsResolver.php(80): Magento\\Webapi\\Controller\\Rest\\RequestValidator->validate()\n#2 /home/twzlqb5tnpep/public_html/buythevalue.in/vendor/magento/module-webapi/Controller/Rest.php(299): Magento\\Webapi\\Controller\\Rest\\InputParamsResolver->resolve()\n#3 /home/twzlqb5tnpep/public_html/buythevalue.in/vendor/magento/module-webapi/Controller/Rest.php(216): Magento\\Webapi\\Controller\\Rest->processApiRequest()\n#4 /home/twzlqb5tnpep/public_html/buythevalue.in/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(37): Magento\\Webapi\\Controller\\Rest->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#5 /home/twzlqb5tnpep/public_html/buythevalue.in/vendor/magento/framework/App/Http.php(135): Magento\\Webapi\\Controller\\Rest\\Interceptor->dispatch(Object(Magento\\Framework\\App\\Request\\Http))\n#6 /home/twzlqb5tnpep/public_html/buythevalue.in/vendor/magento/framework/App/Bootstrap.php(258): Magento\\Framework\\App\\Http->launch()\n#7 /home/twzlqb5tnpep/public_html/buythevalue.in/index.php(39): Magento\\Framework\\App\\Bootstrap->run(Object(Magento\\Framework\\App\\Http))\n#8 {main}"
}