#king-kazu_stripe-apps-sandbox-webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1428135108250173623
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there! Let me have a look at how this works
did you add the permissions in your app's manifest as outlined here? https://docs.stripe.com/stripe-apps/events
yup
"permissions": [
{
"permission": "event_read",
"purpose": "Read webhook event data"
},
{
"permission": "customer_read",
"purpose": "Read customer data to sync with Brevo"
},
{
"permission": "customer_write",
"purpose": "Update customer metadata for sync tracking"
},
{
"permission": "product_read",
"purpose": "Read product information for list mapping"
},
{
"permission": "payment_intent_read",
"purpose": "Track customer purchases to assign Brevo lists"
}
],
acct_1SCoMuAkuYgQhpSE is connected to the app owned by acct_1SIbGpAtgmAS7cnz, a sandbox of your main account, but no connect webhook endpoint is registerd on that account
ok this is weird now because when I visist https://dashboard.stripe.com/acct_1SIbGpAtgmAS7cnz/apps, there is nothing under "created apps"
buuut, the created app does show under https://dashboard.stripe.com/acct_1SHxH0AG2pP9ZMMq/apps
so when I upload a test version of the app, does it have its own sandbox as the owner and the UI just doesnt match?
๐ค
Still looking but a colleague of mine that knows more about Stripe apps will be coming online in about 5 minutes, and I may need to hand you off to them
all good, I added a webhook to the acct_1SIbGpAtgmAS7cnz account and I am now receiving events, but I still would want to clear up the confusion regarding the app owners
did you install the app on acct_1SCoMuAkuYgQhpSE in sandbox mode?
yeah that was where I previously installed it to test
I just added a new customer after adding the new webhook endpoint and it sent succesfully
@little burrow ๐
Hi ๐
I'm stepping in as my colleague has to go soon. I looked up what I think is your app.
com.example.mailsync right?
correct
Okay I can see that, internally, we have acct_1SHxH0AG2pP9ZMMq listed as the App Merchant account.
And I see Test installs for acct_1SCoMuAkuYgQhpSE, acct_1SHxHgAHRLKA1iaY, and acct_1SHxH0AG2pP9ZMMq
Does that line up with what you are seeing on your end?
yes correct
Okay cool. So what is the state of receiving the webhook events?
the webhooks are sent through a webhook endpoint defined on the account acct_1SIbGpAtgmAS7cnz which is what is confusing
Okay I can understand that. But both acct_1SCoMuAkuYgQhpSE and acct_1SHxHgAHRLKA1iaY are sandbox accounts so they would not send webhook events to non-sandbox accounts. However, the switch to sandboxes did create some rough edges with Stripe Apps. I can double check on whether or not this is expected behavior.
ahh ok so if I install the app on a non-sandbox account the merchant account should have the events forwarded to it?
Yes. That is what I expect. I built a Stripe Apps extension before Sandboxes and even installing in Test mode still sent webhook events to the App developer account.
Personally I found it useful to create a second stand-alone Stripe account just for the purpose of performing an External Test.
perfect I will try that out
I have both App Developer and App Installer accounts associated with my Stripe login ๐
im gonna do that rn thats smart
It might seem like overkill but some of this stuff is hard to test otherwise
yeah thats what Im learning haha