Stripe Payment Link in Glide Web Embed

Any idea why the web embed doesn’t work for stripe payment links?

I’d like to avoid using a button to link directly to the online stripe payment page.

If the link can’t be embedded, is there anyway to incorporate the stripe code for the buy button directly to my glide page?

If not, I must say Glide is lacking when it comes to payments and invoices. The current invoice API doesn’t even send it directly to recipient. I still have to manually send from Stripe dashboard once the API runs. Very frustrating considering the potential for automation.

It’s because Stripe blocked themselves from being embedded.

Okay, I will reach out to Stripe. I don’t understand why they would prevent their links being embedded when that’s the whole point. Is this some beef between Stripe and Glide?

Also is Glide able to add both html code or url options for the web embed component like in Framer?
This would be helpful to implementing payments on glide

This has nothing to do specifically with Glide. This is just a reality of the web. There is a big difference between linking to a web page, and trying to iframe embed it in another web page. There are a lot of security implications that come along with it, along with trying to prevent phishing websites from tricking people into thinking they are on a legitimate website, and overall just trying to protect intellectual property. So that’s why many sites don’t allow their web pages to be iframe embedded into other web pages. I highly doubt Stripe will budge on that fact simply because of the nature of their business, but it doesn’t hurt to ask them.

From the Glide Docs:

Yes, it is possible to use both methods. URL is obviously very easy. I’ve used a small bit of javascript in a javascript column to convert raw HTML into a datauri which can be viewed in a web embed. Also I don’t remember for sure, but you may or may not be able to use the full iframe wrapped html as well. Not a method I’ve used, but I seem to recall that it was possible. So there are at least two…maybe three different methods possible.

2 Likes

I understand what you’re saying and it makes sense why using the URL in web embed doesn’t work.

However, it would be great if Glide could allow for both a URL option and HTML option for the web embed.

I am able to use HTML code in the web embed on Framer to embed the Stripe buy button so I know this works and it doesn’t have anything to do with Stripe preventing their buy buttons from being embedded on your site. That’s the whole point unless I am missing something. Here is a screenshot of implementing on Framer in less than 1 minute.

Like I said in my previous post, you can do that. You just need to encode it as a datauri using a bit of javascript in a javascript column. It’s essentially a url with the html encoded inside of it. Whether or not it works with what you want to do with stripe…I don’t know…but I’d at least try it before dismissing it as not possible. Whole thing can be set up in 1 minute. Just set the p1 parameter as your html code in the javascript column.

return `data:text/html;charset=utf-8,${encodeURIComponent(p1)}`;
1 Like

Thank you for the advice! I really do appreciate the example! Testing in process…

Thanks for the advice! Success at last!

1 Like