Form submission fails w 303 when inside iFrame on 'other' website.

  • Montana Burgess
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #144412 by Montana Burgess
I have Donation forms that work fine when not embedded.

However, when I embed the same form in an iFrame in another website that is not same-origin as my JoomDonation instance, after completing and submitting the form I do not get the thank-you message, instead it just reloads the cleared form. From my JDonation server access logs, I see that the POST resulted in a 303 and redirects to the same 'cleared' form. As well, I find in my payment processor logs (Stripe) there is a log entry "POST /v1/tokens" but no completed payment. Also, there is no record of any kind in the JDonation component.

Any ideas on how to make forms work in iFrames?

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #144413 by Mr. Dam
Hi Montana,
Could you please send me the link to your Iframe with Donation form?
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Montana Burgess
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #144464 by Montana Burgess
Page with iFrame embedded form that fails is:
sustainablekootenays.org/2020/04/22/dona...kootenay-resilience/

Same form in same-origin page, and that works, is:
charity.ecosociety.ca/wk-resilience

Thanks

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #144541 by Mr. Dam
Hi Montana,
Could you please enable Stripe test mode so i can test with fake credit card?
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Montana Burgess
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 6 months ago #144559 by Montana Burgess
Stripe is now in test mode.

Thanks.

Please Log in or Create an account to join the conversation.

More
3 years 6 months ago #144583 by Mr. Dam
Hi,
I am afraid that the Stripe payment gateway (Stripe Card Element) doesn't work on IFrame tag. Could you please try with another payment gateway?
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamDũng Nguyễn Việt