#rob_api
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/1270473829914902569
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Did you check your dashboard to see if you created these products using CLI accidentally?
just checked. that is not the issue. all the requests are like this. no information is returned just generic field responses
Can you share your account ID?
I'm 99% sure that these products exist on your account.. The description matches the products that get created when you trigger various webhook events using stripe trigger
i'm not sure you are following me. when i enter commands in cmd, such as 'stripe products list' the response includes all fields but the data is either null or has a generic filler such as "(created by stripe cli)" instead of the actual descriptor
previously the cmd was returning actual information in response fields
I understand you. I am saying the CLI command is returning the correct data
Your account prob has duplicated products
You're seeing a list of these right?
That's an actual product that exists on my account
can you check how many myproduct products under https://dashboard.stripe.com/test/products
C:\Users\rober>stripe products list | jq ".data[].name"
"myproduct"
"myproduct"
"myproduct"
previously i saw a list of actual products
now i do not
can you share your account ID please?
acct_1NMcIwDYAhEL44o6
C:\Users\rober>stripe customers list | jq ".data[].name"
null
previously i saw list of customers
This is a screenshot from your account for list of products in test mode
There are only 3 products there
oh the cmd is running in test mode
previously i guess i was in real mode
how do you toggle cmd sign-in between real and test mode
i have been logging into my cmd the exact same way but for some reason it is clearly in safe mode now
or test mode i meant
try passing --live flag
C:\Users\rober>stripe --live
unknown flag: --live
ah yes this works for me as well
why is my session in test mode and how do i select this- very important
somehow it randomly switched to test mode so would like to know how to toggle back and forth
thanks btw appreciate your help here
Stripe CLI isn't supposed to be used for live mode.. It is supposed to be used when you're building your integration to test different scenarios. It defaults to test mode I think
got it. it was initially defaulting to live mode for me and then randomly switched
i have one other quick question on webhooks if you can help there?
when i fwd to localhost and then i enter the local host address in my browser it doesn't connect. are you supposed to be able to see the activity via your browser window to test if it is working or no? it works with two cmd windows open. working through steps so i can send webhooks to aws api gateway so i can manage customer database in dynamodb
i had requested eventbridge access but haven't heard back
No. The webhook events are delivered to your server. So you won't be seeing any activity in your browser.
The URL you need to provide is where your backend server is running and listening for the events
got it ok thanks
am i wasting time building all this in api gateway on aws and have to redo it all when eventbridge is rolled out?
I have not worked with how eventbridge works unfortunately, so I don't know if it would require more/less changes.
As far as I can tell, you'd still need to respond from a corresponding AWS service so maybe your event handler code can be reused? Idk for sure though
yeah that makes sense
last question - are there any videos /sample code for webhook / aws integration for crud. just looking to build super simple customer database crud in dynamodb so i can automate stuff from there
not trying to reinvent the wheel if someone has already written event handler code for this
I don't think we have any first party videos for this but if you look on youtube, I'm sure you'd find plenty
ive been looking for past two days and haven't seen any specifically talking about stripe crud in aws
๐ญ
Is this helpful? https://www.youtube.com/watch?v=ijAvk9k_fC8
Happy to help! ๐