#ocp_webhooks

1 messages ยท Page 1 of 1 (latest)

oak warrenBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

sharp sorrel
#

I've fixed the problem for Test Mode: stripe events -p <profile_name> resend evt_xxx returns a "resource_missing" error even though the event exists in test mode

I was using an event for the creation of a promotional code (evt_1QsLQ1BA9dbzR13CkhEncONL) and it didn't work, but I created a test subscription and used its event (evt_1RBWccBA9dbzR13Cyr6xaexW) and it worked

#

Now I only have the Live Mode issue with "The provided key 'rk_live_xxx' does not have the required permissions for this endpoint on account 'acct_xxx'" even though that key has Read permissions for Events and Webhooks. What other permissions should I assign to it?

steady charm
#

Hi! Looking into your question!

sharp sorrel
#

Yes. I want to test both Live and Test mode events locally

#

My /.config/stripe/config.toml looks like this:

color = ''
project-name = 'project-name'
[third-profile]
account_id = 'acct_xxx'
device_name = 'mbp.local'
display_name = 'Third Profile'
live_mode_api_key = 'rk_live_xxx'
live_mode_key_expires_at = '2025-06-23'
live_mode_pub_key = 'pk_live_xxx'
test_mode_api_key = 'rk_test_xxx'
test_mode_key_expires_at = '2025-06-23'
test_mode_pub_key = 'pk_test_xxx'

[default]
account_id = 'acct_xxx'
device_name = 'mbp.local'
display_name = 'Default'
live_mode_api_key = 'rk_live_xxx'
live_mode_key_expires_at = '2025-06-23'
live_mode_pub_key = 'pk_live_xxx'
test_mode_api_key = 'rk_test_xxx'
test_mode_key_expires_at = '2025-06-23'
test_mode_pub_key = 'pk_test_xxx'

[first-profile]
account_id = 'acct_xxx'
device_name = 'mbp.local'
display_name = 'First Profile'
live_mode_api_key = 'rk_live_xxx'
live_mode_key_expires_at = '2025-06-23'
live_mode_pub_key = 'pk_live_xxx'
test_mode_api_key = 'rk_test_xxx'
test_mode_key_expires_at = '2025-06-23'
test_mode_pub_key = 'pk_test_xxx'

[second-profile]
account_id = 'acct_xxx'
device_name = 'mbp.local'
display_name = 'Second Profile'
live_mode_api_key = 'rk_live_xxx'
live_mode_key_expires_at = '2025-06-23'
live_mode_pub_key = 'pk_live_xxx'
test_mode_api_key = 'rk_test_xxx'
test_mode_key_expires_at = '2025-06-23'
test_mode_pub_key = 'pk_test_xxx'
#

I've changed the names and redacted the keys

oak warrenBOT
amber oak
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

amber oak
#

would you mind sharing your account ID?

sharp sorrel
#

Sure. Here's one of the accounts: acct_1QefRKBA9dbzR13C

amber oak
#

ok thanks looking into it

#

you need write access on the restricted key

sharp sorrel
#

Ok, I'll try

#

It worked. Thanks for the help

amber oak
#

sure let me know if you need any more help