Quantcast
Channel: Active questions tagged paypal - Stack Overflow
Viewing all articles
Browse latest Browse all 468

How do i get a "Login with Paypal" button to show up in a React App

$
0
0

Preface: I have 1 day of experience playing around with React.

Using this source code from a tutorial, which is set up to login with google. https://github.com/The-Tech-Tutor/spring-react-login

I want to add the "Login with Paypal" button to the Login.js page.

This is what PayPal generates for me.

<span id='lippButton'></span><script src='https://www.paypalobjects.com/js/external/api.js'></script><script>paypal.use( ['login'], function (login) { login.render ({"appid":"sdfgaesdfgrfed","scopes":"openid","containerid":"lippButton","responseType":"code","locale":"en-us","buttonType":"LWP","buttonShape":"pill","buttonSize":"lg","fullPage":"false","returnurl":"http://localhost:3000/profile" });});</script>

How do I get this third party js to work with React?

Thank you.


Viewing all articles
Browse latest Browse all 468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>