#fm0

1 messages ยท Page 1 of 1 (latest)

abstract tapirBOT
random ravine
#

Hello ๐Ÿ‘‹
I don't think there's a way to build a Stripe App without a UI

quartz sphinx
#

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

random ravine
#

Typically folks use Stripe Connect for this.

#

Especially if you want to perform action on behalf of your users (connected accounts)

quartz sphinx
#

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

random ravine
#

I see. Even then, these actions would need to be performed per seller right?

quartz sphinx
#

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

random ravine
#

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

quartz sphinx
#

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.
random ravine
quartz sphinx
#

stripe apps upload

#

step 2

#

I changed the json to remove the views section since my app has zero frontend stuff

random ravine
#

I think you'd need the App view atleast for the authentication step

quartz sphinx
#

hmm, so for a backend only app would i just have an empty app with only a div?

random ravine
#

Yup, Most likely.

quartz sphinx
#

a bit weird I guess but makes sense, I will try it and keep you updated!