#ravikasarla
1 messages · Page 1 of 1 (latest)
👋 Can you provide which Doc are you following? what is stripe-app.json?
{
"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
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?
No I believe you need a separated backend to setup to listen to Webhook events
I got that. I need to add separate backend setup. Lets assume that is something like "www.xyyz.com/myhooks"
How can i add this URL "www.xyyz.com/myhooks" as part of stripeAPP
If i make my APP as PUBLIC then customers will install. AFter installing it i need this webhook URL auto install on their account
a webhook auto-install into their account?
so you want them (your app user) setup a webhook endpoint?
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?
Ah I see. Please disregard the part of adding separate backend setup. That I thought you meant webhook for your own account
Could you please help me on this
There is API endpoint for creating webhook automatically https://stripe.com/docs/api/webhook_endpoints/create. But I am not sure if you can call in from Stripe App. Since Stripe App only has the permission of webhook_read https://stripe.com/docs/stripe-apps/reference/permissions
Can you set this permission and try to call the Endpoint Create API above?
What are these events?
how can register it
can i make this as part of webhooks?
Look at the Doc! It says how to grant a permission
stripe apps grant permission "PERMISSION_NAME" "EXPLANATION"
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
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
"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