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
Use the website embed script to embed your form onto your website

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.

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.
On the Summary tab of the form, click the embed button under the Form Link

Scroll down and copy the Payment Receipt Embed Script

Note:
The form must have a payment workflow event for the receipt page script to display.
Add the script to the Payment Receipt page on your website

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

Go back to the page with your embedded form and ensure the paymentReceiptUrl in your website script is pointing to your new receipt page

Note:
Remove the // before the paymentReceiptURL line of code.
Users will now be able to see the receipt content displayed on your receipt page after they complete a transaction
