With PayPal's Buy Button accept payments without building your own payment workflow.
Open the code in the web IDE now using GitHub Codespaces...
In your html <head> tag add the following: (this has your unique client-id).
<script src="https://www.paypal.com/sdk/js?client-id=BAAY5EAkskLsBGeYrYpHm9PzA-KkgOiOx1J0fwKCo_YkS3f81HiV-Ze9QzwmGHyf4S2cZjRtpTRc6pDekA&components=hosted-buttons&disable-funding=venmo¤cy=USD"></script>Important
This should be included only once per page.
In your html <body> tag add the following:
<div id="paypal-container-ZGT7S2VPTE4D4"></div>
<script>
paypal
.HostedButtons({
hostedButtonId: "ZGT7S2VPTE4D4",
})
.render("#paypal-container-ZGT7S2VPTE4D4");
</script>Tip
You can create as many buttons as you need for different products or services. Just make sure to use the specific hostedButtonId for each button you create, which you can find in your PayPal dashboard under the details of each button you create.

