#king-kazu_stripe-apps-sandbox-webhooks

1 messages ยท Page 1 of 1 (latest)

simple sedgeBOT
#

๐Ÿ‘‹ 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.

left ridge
#

Hi there! Let me have a look at how this works

left ridge
swift kindle
# left ridge did you add the permissions in your app's manifest as outlined here? https://doc...

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"
    }
  ],
left ridge
#

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

swift kindle
#

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?

left ridge
#

๐Ÿค”

#

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

swift kindle
#

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

left ridge
#

did you install the app on acct_1SCoMuAkuYgQhpSE in sandbox mode?

swift kindle
#

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

simple sedgeBOT
swift kindle
#

@little burrow ๐Ÿ‘‹

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?

swift kindle
#

correct

little burrow
#

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?

swift kindle
#

yes correct

little burrow
#

Okay cool. So what is the state of receiving the webhook events?

swift kindle
#

the webhooks are sent through a webhook endpoint defined on the account acct_1SIbGpAtgmAS7cnz which is what is confusing

little burrow
#

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.

swift kindle
#

ahh ok so if I install the app on a non-sandbox account the merchant account should have the events forwarded to it?

little burrow
#

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.

swift kindle
#

perfect I will try that out

little burrow
#

I have both App Developer and App Installer accounts associated with my Stripe login ๐Ÿ˜…

swift kindle
#

im gonna do that rn thats smart

little burrow
#

It might seem like overkill but some of this stuff is hard to test otherwise

swift kindle
#

yeah thats what Im learning haha

little burrow
#

Best of luck!

#

And if you have any more issues, we'll be here