#ravikasarla

1 messages · Page 1 of 1 (latest)

torn viperBOT
proud narwhal
#

👋 Can you provide which Doc are you following? what is stripe-app.json?

fluid atlas
#

{
"id": "com.example.novamoduledev",
"version": "0.0.2",
"name": "Novamoduledev",
"icon": "",
"permissions": [
{
"permission": "secret_write",
"purpose": "Allows storing secrets between page reloads"
},
{
"permission": "customer_write",
"purpose": "customer_write"
},
{
"permission": "charge_read",
"purpose": "charge_read\"
}
],
"app_backend": {
"webhooks": []
},
"ui_extension": {
"views": [
{
"viewport": "stripe.dashboard.customer.detail",
"component": "App"
}
],
"actions": [],
"content_security_policy": {
"connect-src": null,
"image-src": null,
"purpose": ""
}
},
"post_install_action": null,
"constants": null
}

#

How can i register webhooks

#

with in APP

proud narwhal
#

So you are developing StripeApp?

#

Webhook is a different topic

fluid atlas
#

I m developing StripeAPP and with in stripe APP, i need to listen to the "charge. created" event and send data to 3rd party URL.

#

Can i add the webhook URL and webhook event as part of StripeAPP?

proud narwhal
#

No I believe you need a separated backend to setup to listen to Webhook events

fluid atlas
#

I got that. I need to add separate backend setup. Lets assume that is something like "www.xyyz.com/myhooks"

#

If i make my APP as PUBLIC then customers will install. AFter installing it i need this webhook URL auto install on their account

proud narwhal
#

a webhook auto-install into their account?

#

so you want them (your app user) setup a webhook endpoint?

fluid atlas
#

a webhook auto-install into their account? ==> YES. If some one install my app then webhook URL should be added to their Stripe account.

#

it should be automatic. Their shouldn't be any manual action.

#

How can i add the webhook auto installation as part of my StripeAPP?

proud narwhal
#

Ah I see. Please disregard the part of adding separate backend setup. That I thought you meant webhook for your own account

fluid atlas
#

Could you please help me on this

proud narwhal
#

Can you set this permission and try to call the Endpoint Create API above?

fluid atlas
#

What are these events?

#

how can register it

#

can i make this as part of webhooks?

proud narwhal
#

Look at the Doc! It says how to grant a permission

#
stripe apps grant permission "PERMISSION_NAME" "EXPLANATION"
fluid atlas
#

permission are fine. It allows APP to access data.

#

I need to listen the event.

#

if some one make a payemnt then i need to listen that

proud narwhal
#

Before that, you need to register that endpoint first

#

(Um but it's probably not possible since webhook endpoint is something your app user would need to develop and configure themselve)

#

You can't develop for them

fluid atlas
#

"Before that, you need to register that endpoint first" => If we building the APP we can't go to subscriber's account and register manually right. I need that as part of StripeAPP

proud narwhal
#

Don't think it's possible then. One moment let me ask my teammate

#

Hi, it's not possible as far as we know, sorry