{"action":"created","issue":{"url":"https://api.github.com/repos/paypal/paypal-checkout/issues/703","repository_url":"https://api.github.com/repos/paypal/paypal-checkout","labels_url":"https://api.github.com/repos/paypal/paypal-checkout/issues/703/labels{/name}","comments_url":"https://api.github.com/repos/paypal/paypal-checkout/issues/703/comments","events_url":"https://api.github.com/repos/paypal/paypal-checkout/issues/703/events","html_url":"https://github.com/paypal/paypal-checkout/issues/703","id":328121230,"node_id":"MDU6SXNzdWUzMjgxMjEyMzA=","number":703,"title":"Getting a 403 - permission_denied error","user":{"login":"davebeesley","id":20064772,"node_id":"MDQ6VXNlcjIwMDY0Nzcy","avatar_url":"https://avatars1.githubusercontent.com/u/20064772?v=4","gravatar_id":"","url":"https://api.github.com/users/davebeesley","html_url":"https://github.com/davebeesley","followers_url":"https://api.github.com/users/davebeesley/followers","following_url":"https://api.github.com/users/davebeesley/following{/other_user}","gists_url":"https://api.github.com/users/davebeesley/gists{/gist_id}","starred_url":"https://api.github.com/users/davebeesley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davebeesley/subscriptions","organizations_url":"https://api.github.com/users/davebeesley/orgs","repos_url":"https://api.github.com/users/davebeesley/repos","events_url":"https://api.github.com/users/davebeesley/events{/privacy}","received_events_url":"https://api.github.com/users/davebeesley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-05-31T12:37:41Z","updated_at":"2018-06-01T15:29:17Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nI am attempting to use the PayPal checkout button. I have followed the steps listed, but keep getting a 403 permission_denied back from both production and sandbox\r\n\r\nCode\r\n\r\n```\r\npaypal.Button.render(\r\n    {\r\n        env: \"sandbox\", // 'production' Or 'sandbox',\r\n\r\n        // Pass the client ids to use to create your transaction on sandbox and production environments\r\n\r\n        client: {\r\n            sandbox:\r\n                \"AVe0ByastuRu0dqj9qasdMVUcXj9ElPMhpqufBKtwDAstoLotW7f4skWVD2mqLq6qJAUlyMf7Gou_gAM\", // from https://developer.paypal.com/developer/applications/\r\n            production:\r\n                \"XXXX\" // from https://developer.paypal.com/developer/applications/\r\n        },\r\n\r\n        // Pass the payment details for your transaction\r\n        // See https://developer.paypal.com/docs/api/payments/#payment_create for the expected json parameters\r\n\r\n        payment: function(data, actions) {\r\n            return actions.payment.create({\r\n                transactions: [\r\n                    {\r\n                        amount: {\r\n                            total: \"1.00\",\r\n                            currency: \"USD\"\r\n                        }\r\n                    }\r\n                ]\r\n            });\r\n        },\r\n\r\n        // Display a \"Pay Now\" button rather than a \"Continue\" button\r\n\r\n        commit: true,\r\n\r\n        // Pass a function to be called when the customer completes the payment\r\n\r\n        onAuthorize: function(data, actions) {\r\n            return actions.payment.execute().then(function(response) {\r\n                console.log(\"The payment was completed!\");\r\n            });\r\n        },\r\n\r\n        // Pass a function to be called when the customer cancels the payment\r\n\r\n        onCancel: function(data) {\r\n            console.log(\"The payment was cancelled!\");\r\n        }\r\n    },\r\n    \"#paypal-button\"\r\n);\r\n```\r\n\r\nError\r\n```\r\nError: Request to post https://www.sandbox.paypal.com/v1/payments/payment failed with 403 error. Correlation id: 93d723f8b3d2b, 93d723f8b3d2b\r\n\r\n{\r\n    \"name\": \"PERMISSION_DENIED\",\r\n    \"message\": \"No permission for the requested operation\",\r\n    \"information_link\": \"https://developer.paypal.com/docs/api/payments/#errors\",\r\n    \"debug_id\": \"93d723f8b3d2b\"\r\n}\r\n\r\nrequest/</<@https://www.paypalobjects.com/api/checkout.js:15266:39\r\n\r\n./node_modules/post-robot/src/index.js/RECEIVE_MESSAGE_TYPES<@https://www.paypalobjects.com/api/checkout.js?ver=4.9.6:2797:31\r\nreceiveMessage@https://www.paypalobjects.com/api/checkout.js?ver=4.9.6:2842:25\r\nmessageListener@https://www.paypalobjects.com/api/checkout.js?ver=4.9.6:2863:13\r\n\r\n./node_modules/post-robot/src/index.js/RECEIVE_MESSAGE_TYPES<@https://www.paypalobjects.com/api/checkout.js:2797:31\r\nreceiveMessage@https://www.paypalobjects.com/api/checkout.js:2842:25\r\nmessageListener@https://www.paypalobjects.com/api/checkout.js:2863:13\r\n```\r\n\r\nPayPal version - 4.0.203\r\n\r\nBrowsers - FF 60.0.1, Chrome 66.0.3359.181\r\n\r\nThis is running locally, but also tested here - http://robinstrust.org/store/adult-1-year-membership/test/\r\n\r\nAlso happens at https://developer.paypal.com/demo/checkout/#/pattern/client\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/paypal/paypal-checkout/issues/comments/393916532","html_url":"https://github.com/paypal/paypal-checkout/issues/703#issuecomment-393916532","issue_url":"https://api.github.com/repos/paypal/paypal-checkout/issues/703","id":393916532,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzkxNjUzMg==","user":{"login":"davebeesley","id":20064772,"node_id":"MDQ6VXNlcjIwMDY0Nzcy","avatar_url":"https://avatars1.githubusercontent.com/u/20064772?v=4","gravatar_id":"","url":"https://api.github.com/users/davebeesley","html_url":"https://github.com/davebeesley","followers_url":"https://api.github.com/users/davebeesley/followers","following_url":"https://api.github.com/users/davebeesley/following{/other_user}","gists_url":"https://api.github.com/users/davebeesley/gists{/gist_id}","starred_url":"https://api.github.com/users/davebeesley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davebeesley/subscriptions","organizations_url":"https://api.github.com/users/davebeesley/orgs","repos_url":"https://api.github.com/users/davebeesley/repos","events_url":"https://api.github.com/users/davebeesley/events{/privacy}","received_events_url":"https://api.github.com/users/davebeesley/received_events","type":"User","site_admin":false},"created_at":"2018-06-01T15:29:17Z","updated_at":"2018-06-01T15:29:17Z","author_association":"NONE","body":"Still get a 403 - permission_denied on the alternative script"}}
{"actor":{"display_login":"davebeesley"}}