Please read an overview about embedding check-out process to your website to understand the overall process.
To add JavaScript, you need to subscribe to the Business or Commerce plan in Squarespace.
In your Squarespace account, navigate to Advanced > Code Injection.
Copy the following line of JavaScript:
<script src="https://fienta.com/embed.js"></script>
Paste this code into the Footer section: