Need help in integrating paypal connect button within angular component. here is the documentation
https://developer.paypal.com/docs/connect-with-paypal/reference/button-js-builder/
The code provided is as follows, but doesn't understand how to integrate into the angular component.
<span id='cwppButton'></span>
<script src='https://www.paypalobjects.com/js/external/connect/api.js'></script>
<script>
paypal.use( ['login'], function (login) {
login.render ({
"appid":"api_id_goes here",
"authend":"sandbox",
"scopes":"openid",
"containerid":"cwppButton",
"responseType":"code id_Token",
"locale":"en-us",
"buttonType":"CWP",
"buttonShape":"rectangle",
"buttonSize":"lg",
"fullPage":"true",
"returnurl":"http://localhost:4200/sell/seller"
});
</script>
I added the code in index.html but its not working.