#ELIZZER

1 messages · Page 1 of 1 (latest)

stray impBOT
random dune
#

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.

lunar cave
#

ok

worldly ether
#

hi

lunar cave
#

can we charge a checkout with stripe elements?

random dune
#

hmm, not sure what that means

lunar cave
#

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?

random dune
#

no, it's a hosted page that you redirect to

lunar cave
#

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?

random dune
#

no

lunar cave
#

is there a way that we can embedded the checkout page into a react page

random dune
#

nope!

lunar cave
#

ok

#

and how should we confirm that the received webhook is from from strip and no other is recreating the message?

random dune
#

you can verify the signature on the incoming request

lunar cave
#

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

sinful crest
#

Hi! I'm taking over this thread.

#

If the event has the correct signature (meaning the call to stripe.webhooks.constructEvent() succeeds), then it's an authentic event coming from Stripe.

sick spruce
#

👋 taking over for my colleague. Let me know if there's any follow-up Qs I can answer!

lunar cave
#

tq

#

what is the endpointscrete in this

sick spruce
#

you need to get it from your dashboard

#
lunar cave
#

these?

sick spruce
#

no

#

have you created a webhook endpoint? or are you using Stripe-CLI now?

lunar cave
#

both

sick spruce
#

for the webhook endpoint you need to get it from the links I sent above

lunar cave
#

for building in use CLI, for production i use webhook endpoint

sick spruce
#

and from Stripe-CLI once you launch stripe listen ... the CLI will print the secret onto your terminal

lunar cave
#

the key starting with whsec_....

sick spruce
lunar cave
#

yep found it, thankyou

sick spruce
#

this we_xxx is the webhook endpoint id not the webhook secret whsec_xxx

lunar cave
#

does the key in CLI changes?

sick spruce
#

it might yes

lunar cave
#

yep done

#

and one more..

#

i need to add list of items in the strip charge receipt can i?

lunar cave
sick spruce
sick spruce
lunar cave
#

while creating a payintents we can give ony the amount to be charged right?

lunar cave
lunar cave
#

so if i need to get some list of items in the receipt, what should i do?

sick spruce
#

what do you mean a list of items in the receipt?

lunar cave
#

i am building sort of a ticket booking page

#

if the receipt has something like no of people, no of seats....

chilly pond
#

Hey, taking over here. Let me know if there's any follow-up Qs I can answer!

lunar cave
#

yeah

#

can i be able to add list of items in the charge receipt

chilly pond
#

What kind of items you want to add to the charge ?

lunar cave
#

like no of adults, child, infant, seat, service charge...

chilly pond
#

Not sure I understand your need here, could you please summarize your use case with an example and what does your business expectation ?

lunar cave
#

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

chilly pond
#

You can add those as Invoice items but not in the receipt

lunar cave
#

can a invoice be paid by stripe elements?

chilly pond
#

Stripe Element is to accept payments, You can pay the invoice's payment intent using Stripe Element

lunar cave
#

similarly checkout sessions could also be paid ?

chilly pond