import wixData from 'wix-data'; import wixPay from 'wix-pay'; $w.onReady(() => { let basePrice = 199; // Base LLC service fee $w("#stateDropdown").onChange(async () => { let selectedState = $w("#stateDropdown").value; // Fetch the state filing fee let result = await wixData.query("StateFilingFees") .eq("state", selectedState) .find(); if (result.items.length > 0) { let stateFee = result.items[0].filingFee; let totalPrice = basePrice + stateFee; // Display the fees $w("#filingFeeText").text = `State Filing Fee: $${stateFee}`; $w("#totalPriceText").text = `Total Price: $${totalPrice}`; // Attach the price to the checkout button $w("#checkoutButton").onClick(() => startCheckout(totalPrice)); } else { $w("#filingFeeText").text = "State not found. Please select another."; } }); }); // Function to start checkout function startCheckout(price) { wixPay.startPayment(price) .then((payment) => { if (payment.status === "Successful") { $w("#totalPriceText").text = "Payment Successful! Your LLC is being processed."; } else { $w("#totalPriceText").text = "Payment Failed. Please try again."; } }); } import wixData from 'wix-data'; $w.onReady(() => { $w("#stateDropdown").onChange(async () => { let selectedState = $w("#stateDropdown").value; // Query the database for the filing fee let result = await wixData.query("StateFilingFees") .eq("state", selectedState) .find(); if (result.items.length > 0) { let fee = result.items[0].filingFee; $w("#filingFeeText").text = `State Filing Fee: $${fee}`; } else { $w("#filingFeeText").text = "State not found. Please select another."; } }); });
top of page

Contact US

We're here to assist you with any questions or concerns you may have. Reach out to Amauri Solutions through any of the following methods:​

We look forward to helping you achieve your business goals!

Let's Chat

Phone

810-522-8234

Email

Thanks for submitting!

bottom of page