
Thank you for your interest in my template.
It is the product of 25 years of work, and it is arguably one of the most valuable parts of my business. I take it very seriously, and have work on it almost every day of my inspection career. I’m constantly trying to make it work better (for everyone involved.)
I am proud to finally be able to make it available for other inspectors too!
The only thing that I ask is that you refrain from selling or sharing it. It is intended only for use by each individual inspector who purchases it. Just like you wouldn’t want someone else selling or sharing your inspection reports, I’d like to keep this valuable information confidential.
I appreciate your understanding, and I hope this helps to elevate your inspection reports (and your business.)
Thanks, Joe
const payments = Square.payments(‘APPLICATION_ID’, ‘LOCATION_ID’); const card = await payments.card(); await card.attach(‘#card-container’); const payButton = document.getElementById(‘pay-button’); const agreeBox = document.getElementById(‘agree-box’); agreeBox.addEventListener(‘change’, () => { payButton.disabled = !agreeBox.checked; }); document.getElementById(‘payment-form’).addEventListener(‘submit’, async function (e) { e.preventDefault(); const result = await card.tokenize(); if (result.status === ‘OK’) { // Send result.token to your server to complete the payment fetch(‘/process-payment’, { method: ‘POST’, headers: {‘Content-Type’: ‘application/json’}, body: JSON.stringify({token: result.token}) }); } else { alert(result.errors[0].message); } }); // Example with Node + Express const { Client, Environment } = require(‘square’); const client = new Client({ accessToken: process.env.SQUARE_ACCESS_TOKEN, environment: Environment.Production }); app.post(‘/process-payment’, async (req, res) => { const { token } = req.body; const paymentsApi = client.paymentsApi; const response = await paymentsApi.createPayment({ sourceId: token, idempotencyKey: crypto.randomUUID(), amountMoney: { amount: 2000, currency: ‘USD’ } // $20.00 example }); res.json(response); });
