#one-love_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/1217851894639235143
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- one-love_api, 1 day ago, 4 messages
- one_checkout-shipping, 2 days ago, 86 messages
- one-love_checkout-address-collection, 2 days ago, 5 messages
- one-love_webhooks, 3 days ago, 60 messages
- one-love_code, 5 days ago, 22 messages
$checkoutSession->id would return the checkout session id
That's expected
What code are you using
What's the context here? I don't have enough info to help you
How do I obtain the evt_ that you see above. If that line of code gets the 2nd id below it?
I uploaed the beginning of the response.
Obtain it from where?
The checkout session completed object sent back from webhooks. That I provided above.
You haven't shared any code
I did. Something must be wrong. I'll add it again.
There it is. I've put the event in a vaiable named $checkoutSessionId->id
There are two id's
my line of code, which I assumed should pull the first, is instead pulling the second.
Why? I don't understand.
I'm just trying to obtain the evt_ you see in the response.
Can I not get it.
You can
I need to see what you're doing in your code
It should be straightforward
I can't tell you what to do if I don't know what your variable names are, how you are storing the event object, etc
$checkoutSession = $event->data->object;
You set that to object, which is the checkout session
You can see this yourself in the event object you shared with me
event -> data -> object is the checkout session not the event object
If you need event id get it off of the event
event -> id
Same to you
$event_id =$event->id is returning the pmc_ id not the evt_ id
What id pmc id?
Where did you add that line of code?
If it's within case 'checkout.session.completed': it should be the event id
I'm sorry. I forgot to refresh the page. it works. Thanks again.
Can stripe calculate taxes in Canada automatically for me?
Yes afaik: https://docs.stripe.com/tax/set-up
The created dates in the response. Do those dates represent seconds or minutes?
So if my database is column is setup for datetime - will that inserted time format to a readable date. Example 2024-03-13