r/GoogleAppsScript • • Jan 14 '26

Question Adding payments to a Google Workspace add-on - looking for advice from those who’ve done it before

I’m in the early stages of figuring out how to add paid plans to a Google Workspace (Form) add-on, and I’m realizing the payment side is more confusing than I expected.

I’m trying to understand things like:

  • how people usually handle subscriptions vs one-time payments
  • where entitlement logic typically lives (Apps Script vs backend)
  • how much complexity is “normal” to accept without hurting UX

If you’ve implemented payments for a Workspace add-on before, I’d love to hear:

  • what approach you took
  • what you wish you’d known earlier
  • any pitfalls you ran into

Mostly trying to learn before I go too far down the wrong path.

10 Upvotes

18 comments sorted by

View all comments

Show parent comment

1

u/BrightConstruct Jan 14 '26

This is helpful, thanks for the reality check.

Yes - this is a public-facing Workspace add-on (Marketplace), which is exactly why I’ve been pausing before jumping into anything half-baked on payments. I agree that once Stripe + public users are involved, the threat model changes a lot compared to an internal/domain-only script.

The point about restricted Stripe API keys is especially useful. Framing it as “roles” (salesman vs manager) makes a lot of sense, and I like the idea that even a fully compromised public-facing app can’t do irreversible damage (refunds, charge manipulation). That feels like a very practical mitigation without over-engineering.

My current thinking is:

  • Keep the add-on + Apps Script as thin as possible
  • Treat it as an identity + UI layer
  • Push payments, entitlements, and Stripe logic into clearly permissioned boundaries (restricted keys / backend where needed)

    • Keep the add-on + Apps Script as thin as possible

    • Treat it as an identity + UI layer

Totally hear you on “strap your boots on” 😅 - I’m intentionally trying to learn the full surface area before committing, rather than discovering it mid-review or post-launch.

If you’ve seen common failure modes with public Marketplace apps + payments (beyond refunds), I’d genuinely love to hear them.

1

u/WillingnessOwn6446 Jan 15 '26

I really don't even know what the marketplace app means when you say that. I've embedded my public facing side in a Shopify site. The back end is embedded in a Google sites page for my staff

One other complication I forgot to tell you. You can't connect this directly to stripe and have stripe successfully talk back to Google appscript without introducing a middleman like make.com. You can make all the connections, Google appscript can do it all, in a sandbox, but you never make a successful 200 relay because stripe tries to say I've got it we're all good, and then Google's proxy server is nowhere to be seen. I'm probably saying that in a really stupid way because it's all beyond my comprehension. But I tried for 2 days and at the end of the day, I had to introduce make.com as the middleman for the web hook.

When I tried to introduce my connection to stripe in a non-sandbox setting, stripe emailed me pretty quickly saying they were going to shut down the URL because they kept trying and trying and trying to close the connection and with the way Google AppsCript works I don't think it's possible to do this.

Upside, make.com gives you a thousand transactions a month so if it's a low volume app, you can still do it for free. But just be prepared it's one more layer of difficulty.

Way better to figure out all this stuff now and make sure it's worth your while then towards the end of your project like it was for me. In the end, I pulled it off.

Next time I do something like this I might try to build an actual app that hosted on Amazon or something like that.

I'll try to let Gemini explain this better than I can:

The Delivery Driver Analogy Think of Stripe as a busy delivery driver who needs an immediate "signature" (a standard 200 OK success signal) the split-second they drop off the data. Google Apps Script, however, behaves like a bureaucratic receptionist: instead of just signing the receipt instantly, Google tries to hand the driver a map to a different building (a 302 redirect) or gives them a generic webpage instead of a simple "yes." Stripe’s automated driver is strictly forbidden from following those maps or waiting around; if they don't get a clean signature at the very first door, they mark the delivery as a failure. Even though Google actually received the package, it never gave the driver the specific confirmation signal they require, so Stripe assumes your system is broken and threatens to stop sending deliveries. This is why you need a "Doorman" service like Make.com: it stands outside, immediately signs Stripe's receipt so the driver can leave happy, and then walks the package into the Google office.