#fm0
1 messages ยท Page 1 of 1 (latest)
Hello ๐
I don't think there's a way to build a Stripe App without a UI
Is there a pattern that you know of for listening for webhooks on a customer behalf? I want to build an automated way to do actions for users on their behalf when certain actions happen
Typically folks use Stripe Connect for this.
Especially if you want to perform action on behalf of your users (connected accounts)
No I don't mean my customers
like consumer customer
I want to build a tool that handles webhooks for other stripe sellers
if that makes sense
I see. Even then, these actions would need to be performed per seller right?
Ya I think so
Basically let's say we have store 0, store 1
Both are emitting webhooks like charge.completed or subscription_renewed. I want users to authorize my app to listen to these webhooks on their behalf. It sounds like stripe apps can do this but your documetation seems to be conflicting with whats being written ๐ญ
backend only app
is exactly what i want
"You can build a Stripe App without a UI. For example, an app might collect order data from Stripe and send that data to another service for fulfillment."
ya feel me
Stripe Apps can do this yes, but I believe you'd still need some kind of UI for initial setup
let me see if I can find something concrete on this
appreciate it, wanna build something sick
I think the biggest thing is how do we bootstrap the stripe-app.json
{
"id": "com.example.redacted",
"version": "0.0.1",
"name": "redacted",
"icon": "",
"permissions": [],
"ui_extension": {
"views": [],
"content_security_policy": {
"connect-src": null,
"image-src": null,
"purpose": ""
}
}
}
Won't upload btw
Would you like to proceed: y
ร Failed to build files
โ [ERROR] Could not resolve "@stripe/ui-extension-sdk/version"
.build/manifest.js:4:14:
4 โ export * from '@stripe/ui-extension-sdk/version';
โต ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can mark the path "@stripe/ui-extension-sdk/version" as external to exclude it from the bundle, which will remove this error.
What step are you getting stuck on when following this guide?
https://stripe.com/docs/stripe-apps/build-backend#authenticate-ui-to-backend
stripe apps upload
step 2
I changed the json to remove the views section since my app has zero frontend stuff
I think you'd need the App view atleast for the authentication step
hmm, so for a backend only app would i just have an empty app with only a div?
Yup, Most likely.
a bit weird I guess but makes sense, I will try it and keep you updated!