Question about embedding payment forms

Hi,

I am using a self-hosted WordPress website “Hafla Rental”. I need to embed an external payment checkout form into one of my pages using a standard embed code.

Before I set this up, I have two quick questions:

  1. Will the payment form still be completely secure when embedded on my WordPress page?
  2. Will the embedded checkout form display and work properly on mobile phones?

Thank you!

Hi @jamica ,

Great questions -

1. Security of the embedded payment form
Yes, the payment form remains secure when embedded on your WordPress page. The form itself is still hosted by Knack and you can secure the page behind a login so that only approved users can access the checkout form. All sensitive card data utilizes the Stripe library to securely transmit card data directly from our front end. We never store or have access to any credit card information on our servers. Your site is simply displaying the form, not handling the payment data directly.

2. Mobile display and functionality
The Knack form is designed to be mobile-responsive. However, how well it displays on your WordPress page can depend on how the embed is configured.

One thing to be aware of is iframe height behavior. You have two main options:

  • Fixed height – You set a specific pixel height for the iframe (like 600px). This is simpler to set up but can cause scrollbars or cut-off content on smaller screens if the form is taller than expected.
  • Dynamic height – The iframe resizes automatically based on the form’s content. This might give a smoother mobile experience but require some testing from your end.

Cheers,

Kara

Hi Kara,

Thanks for the clear explanation! That definitely sets my mind at ease regarding the security side of things.

I’ll play around with the embed options—dynamic height sounds like the way to go for a smooth mobile experience, so I’ll test that out on my website and back to you if i need any help!