I am getting this "action not supported" while implementing log in with paypal using the guide.

princetrickier
Contributor
Contributor

I used this url 
Generate button (paypal.com)
then i got this js code

```js

<span id="connect_button"></span>
        <script src="https://www.paypalobjects.com/js/external/api.js"></script>
        <script>
            paypal.use(["login"], function (login) {
                login.render({
                    appid: {client_id},
                    authend: "sandbox",
                    scopes: "openid profile email https://uri.paypal.com/services/paypalattributes",
                    containerid: "connect_button",
                    responseType: "code id_Token",
                    locale: "en-us",
                    buttonType: "CWP",
                    buttonShape: "pill",
                    buttonSize: "lg",
                    fullPage: "true",
                    returnurl: "http://127.0.0.1:5500/index.html",
                });
            });
        </script>
```

princetrickier_0-1681839967820.png

 

 

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @princetrickier,

 

Thank you for posting to the PayPal community.

 

Could you please make sure that you have enabled the "Log in with PayPal" feature for your sandbox REST API App.

 

Login to https://developer.paypal.com/ >> go to "Developer Dashboard" >> Apps & Credentials >> select your REST API App >> Features >> Other features >> Log in with PayPal >> Save Changes.

 

(Or)

 

Go to https://developer.paypal.com/dashboard/  >> follow the above steps.

 

Screenshot 2023-04-19 at 11.29.01 AM.png

 

If your still facing the issue, please create a MTS ticket via - https://www.paypal-support.com/s/?language=en_US with detailed error information. 

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

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