#ELIZZER
1 messages · Page 1 of 1 (latest)
hi! can you say more about what you're trying to do? in general PaymentIntents are just for raw payments, they don't have a concept of line items, you'd use Checkout/Invoices for payments instead if you need that.
ok
hi
can we charge a checkout with stripe elements?
hmm, not sure what that means
i am using stripe elements to make the payment in the frontEnd, with a check out session can we make the payment using stripe elements instade of checkout page?
no, it's a hosted page that you redirect to
yeah, we do have a payintent created with the checkout session right, so using the client secret in that payintent can we make payments using stripe elements?
no
is there a way that we can embedded the checkout page into a react page
nope!
ok
and how should we confirm that the received webhook is from from strip and no other is recreating the message?
i want to filter the request is only from the strip to that webhook url, so how to identify a valid or authentic stripe webhook request
Hi! I'm taking over this thread.
To check that the webhook event is actually coming from Stripe, you need to verify the signature. How to do so is covered here: https://stripe.com/docs/webhooks/signatures
If the event has the correct signature (meaning the call to stripe.webhooks.constructEvent() succeeds), then it's an authentic event coming from Stripe.
👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
you need to get it from your dashboard
https://dashboard.stripe.com/test/webhooks (if in test mode)
or https://dashboard.stripe.com/webhooks (for live mode)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
these?
both
for the webhook endpoint you need to get it from the links I sent above
for building in use CLI, for production i use webhook endpoint
and from Stripe-CLI once you launch stripe listen ... the CLI will print the secret onto your terminal
the key starting with whsec_....
yes exactly
yep found it, thankyou
this we_xxx is the webhook endpoint id not the webhook secret whsec_xxx
does the key in CLI changes?
it might yes
yep done
and one more..
i need to add list of items in the strip charge receipt can i?
does this also handles the timestamps of the request
I'm not sure I follow
what do you mean?
while creating a payintents we can give ony the amount to be charged right?
yes
correct
so if i need to get some list of items in the receipt, what should i do?
what do you mean a list of items in the receipt?
i am building sort of a ticket booking page
if the receipt has something like no of people, no of seats....
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
What kind of items you want to add to the charge ?
like no of adults, child, infant, seat, service charge...
Not sure I understand your need here, could you please summarize your use case with an example and what does your business expectation ?
i am building a ticketing senerio, where we have different prices for adult, child, infant, and extra charge to pre book the seats. so if the receipt had all these things it would be better
You can add those as Invoice items but not in the receipt
can a invoice be paid by stripe elements?
Stripe Element is to accept payments, You can pay the invoice's payment intent using Stripe Element
similarly checkout sessions could also be paid ?
Checkout Session is for accepting Payments, I invite you to read this full guide about it
https://stripe.com/docs/payments/checkout/how-checkout-works