--- title: "Embedded Forms with Payments" slug: "embedded-forms-with-payments" description: "Learn how to embed a payment form on your website and create a payment receipt page for seamless user transactions and redirection." updated: 2026-10-16T18:41:28Z published: 2026-10-16T18:41:28Z canonical: "www.civicplus.help/embedded-forms-with-payments" --- > ## Documentation Index > Fetch the complete documentation index at: https://www.civicplus.help/llms.txt > Use this file to discover all available pages before exploring further. # Embedded Forms with Payments This article covers how to embed a form with a payment workflow event into your website. To embed a form with a payment, you will need to create a payment receipt page on your website that your users will be redirected to after completing a payment. ## Instructions [Embedded content](https://www.iorad.com/player/2145534/CivicOptimize--How-to-Embed-Forms-with-Payments-Tutorial) 1. [Use the website embed script](/process-automation/docs/embed-a-form-on-your-webpage) to embed your form onto your website ![Code snippet for embedding a form with the copy icon highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Copy%20Form%20Embed%20Script%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=KGi3%2F1LqQgcUz1RgwsR8lRkdDX59SRj0XqIE3HfkSaM%3D) > [!WARNING] > Important Note: > > If you are using an optional URL (such as **submissionRedirectURL**), you will need to remove the **//** before those lines in the code in order for it to work in your embed. The following image shows what it should look like with the // removed. ![Highlighted URLs for pet license renewal submission and cancellation in the embed.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Cancel%20and%20Redirect%20URL%20Embed%20Code%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=Gbm5bl6WldxI%2FYoFacM%2FCR12%2FPXsq23fEmgLggdOE%2FE%3D) 2. You will now need to create a separate payment receipt page on your website. This is the page that your users will be redirected to after completing a payment. 3. On the **Summary** tab of the form, click the **embed button** under the Form Link ![Embed this form on your webpage icon highlighted next to the form link.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Embed%20Form%20Button%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=%2FKK2A1SN2lYcKVcjF2a497S6SsuqEkAALv%2FqGZmw0Hk%3D) 4. Scroll down and **copy** the **Payment Receipt Embed Script**![Code snippet for embedding a payment receipt script on a website with the copy icon highlighted.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Copy%20Payment%20Embed%20Script%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=cNW%2FG6iiCcJe%2BtniIvIzmNi2YojVypHtdzIiZODKRpU%3D) > [!WARNING] > **Note**: > > The form must have a [payment workflow event](/process-automation/docs/add-a-payment-event-to-a-form) for the receipt page script to display. 5. Add the script to the Payment Receipt page on your website ![Payment receipt page with script elements for OneBlink integration and user redirection.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Paste%20Payment%20Embed%20Script%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=Rh7qXwXV%2FH724DNek%2FjXjwNa%2BwuxnmnjPsWeZ5e577M%3D) 6. Add URLs between the **"** of the **doneRedirectUrl** and **cancelRedirectURL** to direct users to specific pages after they click Done on the receipt or cancel the transaction ![Payment receipt code snippet with highlighted redirect URLs for user navigation.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Redirect%20URLs%20on%20Payment%20Embed%20Script%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=QZ%2FU0eObPk9xgg4u5EvbCdecQV%2FYadJziyq%2B%2F0OtNmU%3D) 7. Go back to the page with your embedded form and ensure the **paymentReceiptUrl** in your website script is pointing to your new receipt page ![Code snippet for pet license renewal with highlighted payment receipt URL.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Payment%20Receipt%20URL%20on%20Embed%20Script%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=gedJYYLOGprIn95yMCDCR%2Breut7uMCREO%2BI35jLM5yU%3D) > [!WARNING] > Note: > > Remove the **//** before the paymentReceiptURL line of code. 8. Users will now be able to see the receipt content displayed on your receipt page after they complete a transaction ![Payment receipt showing transaction details and a warning about browser navigation.](https://cdn.us.document360.io/17dc564a-8310-4f61-b929-1bd73b36e158/Images/Documentation/Payment%20Receipt%20-%20PADS.png?sv=2026-02-06&spr=https&st=2026-11-22T12%3A50%3A53Z&se=2026-11-22T13%3A50%3A53Z&sr=b&sp=r&sig=0VNB59Gf5dMEpm4mghJAR2il00lEoM3P0KYaKYdW0q0%3D) Uniform Resource Locator ## Related - [Add a Payment Event to a Form](/add-a-payment-event-to-a-form.md) - [Embed a Form on Your Webpage](/embed-a-form-on-your-webpage.md)