Integrate Square's API for Wix Forms, using Velo
Updated: May 31, 2022
Who is our client and what problem did they want to solve?
Our client wanted seamless integration between their Liability Waiver Wix form and their on-premise Square POS system.
Before our client contacted RHM, the process for their customers was to fill out the Liability Waiver on their website prior to arriving at the business. Upon arrival, the desk clerk would then have to manually enter the data from the Liability Waiver form into their Square POS system.
With a quick look into Square's API, we determined that we would be able to automate this process to allow a more seamless workflow.
This would create a better and more efficient experience for both their customers and employees.

What solution did we provide?
We met with our client and had them generate an Access Token for the Square API, which we stored in the Wix Secrets Manager.

After this, we set to work on the page the form was on. Using the Wix Form `onFormSubmitted` method, we were able to gather the data the customers submitted and then pass it to a `createSquareCustomer` function we created in our 'backend/square.jsw' file, .jsw being the file extension Wix uses to allow backend code to be called from the frontend.
This function takes the data about the customer that is passed in and calls Square's Create Customer API using the `fetch` function of the Wix-fetch module.
With this code in place, the customer now has seamless integration between their Liability Waiver form and their Square POS system, saving their desk clerks quite a bit of time through automation as well as preserving data integrity by preventing errors that happen with manual entry of data.
Here's the code we used below:
import { createSquareCustomer } from "backend/square";
import wixLocation from "wix-location";
$w.onReady(function () {
$w("#multiStepForm1").onWixFormSubmitted(({ fields }) => {
const customer = {
address: {},
};
console.log(fields);
fields.forEach((field) => {
console.log(field);
switch (field.fieldName) {
case "Guardian First Name":
customer.given_name = field.fieldValue;
break;
case "Last Name":
customer.family_name = field.fieldValue;
break;
case "Guardian Email":
customer.email_address = field.fieldValue;
break;
case "Guardian Phone":
customer.phone_number = field.fieldValue;
break;
case "House Number & Street":
customer.address.address_line_1 = field.fieldValue;
break;
case "City":
customer.address.locality = field.fieldValue;
break;
case "State":
customer.address.administrative_district_level_1 = field.fieldValue;
break;
case "Zip":
customer.address.postal_code = field.fieldValue;
break;
case "Child/Children's Full Names (":
customer.note = field.fieldValue;
break;
}
});
console.log(customer);
createSquareCustomer(customer);
setTimeout(() => {
wixLocation.to(wixLocation.url);
}, 3000);
});
});Have any Wix questions? Contact us at 225-250-1888!
About our company
RHM specializes in helping businesses of all sizes and across all industries achieve their digital and web marketing needs. Whether it's designing a new website, building an app, performing custom development, or running Google Ads, our goal is to showcase how you are the best at what you do and help people connect with you. Contact us at 225-250-1888 to get started!



Мені цікаво зіставляти практичні речі й ширші питання. Варто пам’ятати, що рецепти найприємніші тоді, коли інгредієнти прості та доступні. У такому разі дозвілля приємніше, якщо залишати місце для спонтанних рішень. До речі, здоров'я заслуговує уважності до звичок та перевірених медичних джерел. Іноді подорожі запам’ятовуються завдяки деталям поза звичайним маршрутом. Так само стиль життя складається зі звичок, які підходять саме нашому ритму. Мені подобається, що стосунки міцнішають завдяки уважним розмовам та повазі до меж.
For people who regularly use their smartphones to browse websites, accessibility and responsive design can make a noticeable difference. A mobile-friendly interface should make important sections easy to find, keep text readable, and avoid making users navigate through too many unnecessary screens. When researching WinBuzz plus apk, visitors can compare the available mobile access information with the layout provided through winbuzz com. Checking compatibility before installing an application is particularly important for Android users. I would also recommend reviewing the permissions requested during installation and avoiding unknown download sources. Convenience is valuable, but it should always go together with careful attention to device security.
【स्व-अनुशंसा】YouTube उपशीर्षक अनुवाद AI डबिंग Chrome एक्सटेंशन|द्विभाषी उपशीर्षक बिना उपशीर्षक ट्रांसक्रिप्शन वीडियो से टेक्स्ट आवाज अनुवाद|Coursera Udemy Bilibili TikTok
LingTube YouTube के लिए विशेष रूप से बनाया गया Chrome एक्सटेंशन है जो वीडियो आवाज अनुवाद, उपशीर्षक अनुवाद और AI डबिंग के लिए है। वीडियो खोलने के बाद एक क्लिक से शुरू करें। यह विदेशी भाषा के उपशीर्षक या बिना उपशीर्षक वाले वीडियो की आवाज को स्वचालित रूप से समझ में आने वाले अनुवाद में बदलता है और प्राकृतिक आवाज से पढ़ता/डब करता है। इस तरह आप उपशीर्षकों को लगातार घूरने के बिना YouTube के विदेशी भाषा वाले वीडियो को जल्दी समझ सकते हैं।
तुरंत AI डबिंग और उपशीर्षक अनुवाद का आनंद लें, YouTube, Coursera, Udemy, Bilibili और TikTok पर उपलब्ध…
【自薦】YouTube字幕翻譯 AI配音 Chrome插件|雙語字幕 無字幕轉錄 影片轉文字 語音翻譯|支持Coursera Udemy Bilibili TikTok
LingTube是專門為YouTube打造的影片語音翻譯、字幕翻譯和AI配音Chrome擴展。打開影片後一鍵啟動,它會把外語字幕或無字幕影片中的語音,自動轉成容易理解的譯文,再用自然語音朗讀/配音,讓你不用一直盯著字幕,也能快速理解YouTube外語影片。
即刻享受AI配音和字幕翻譯,適用於YouTube、Coursera、Udemy、Bilibili和TikTok——只需播放任意影片即可立即開始。
適合語言學習、課程、技術教程、新聞、播客、動漫、電影片段和通勤觀看。
主要功能
YouTube影片翻譯:翻譯字幕、語音和無字幕影片內容
雙語字幕:譯文 + 原文同屏顯示,也可以只看譯文或原文
AI配音 / 字幕朗讀:使用Edge TTS或瀏覽器語音讀出譯文
無字幕處理:影片沒有字幕時,可自動語音轉文字再翻譯朗讀
上下文翻譯:支持Google翻譯和OpenAI兼容接口,提升長句與專業內容理解
AI學習:生成詞彙、語法、練習、評分和複習內容
混音控制:原影片聲音和譯文語音可同時播放,並分別調節音量
一鍵啟停,支持Alt+Shift+V快捷鍵
AI影片摘要 / 總結工具:AI啟動完成後,可基於完整譯文字幕與影片對話,快速總結YouTube影片內容、提煉關鍵觀點、解釋專業術語、查找相關時間點。適合長影片、課程影片、技術教程、新聞和播客的快速理解。
隱私
僅在YouTube、Coursera、Udemy、Bilibili.tv和TikTok頁面上運行
設定保存在本地瀏覽器
字幕、翻譯和語音請求只發送到你啟用的服務
擴展 / 插件
Chrome商店地址:
https://chromewebstore.google.com/detail/lingtube-youtube-subtitle/jjhplddhmkfngobhompljgnhbhkgilbi
官網地址:
https://lingtube.xyz
Technical guides that explain API integrations can save developers considerable time when building practical website functionality. This walkthrough offers useful insight into connecting Squares with Wix Forms using Velo. https://www.martingschulz.com/ appreciates clear resources that make development more approachable.