#andrelum-checkout

1 messages · Page 1 of 1 (latest)

shut crow
#

@drowsy dagger you're probably looking for the payment_intent field on the CheckoutSession object

autumn sequoia
#

Hello @drowsy dagger karlekko is offline but I will try my best to assist

#

By what part of Dashboard are you referring to? Can you screenshot? I think 90% you want the PaymentIntent Id pi_xxx

autumn sequoia
#

👋 I am locking this thread again. Free free to request re-open it later

drowsy dagger
#

hello, thanks for reopening the thread. is the payment Intent object the main object i am dealing with when i want to see all attributes of a transaction? ie i want to check what was in the order or how much was paid or whether the payment was successful?

autumn sequoia
#

Yes. I believe each Payment Intent is a unit or transaction. It contains the amount and the result of succeed or not

drowsy dagger
#

how do i check whether a checkout session hits the success_url or the cancel_url? i want to do something if checkout session hits the success_url and do something else if it hits the cancel url

#

hmm actually i realised it doesnt make sense to check whether the checkout session succeeds here haha since the only thing this endpoint does is to return me the checkout session url so it wont know whether the payment has succeeded yet

drowsy dagger
#

do you know about discounts? am i able to add discounts to my line items objects without creating discount objects? like just specifying the original price and discounted price in the line item?

#

right now i am already manually adding my line items and not creating products in stripe

#

also, why do i have to rely on the fulfill order event notification? why should i not just be relying on the user being redirected to the success url to register a successful payment?

#

so for eg when the user is redirected to the success_url, then i will call an endpoint to register that the user has paid.

shut crow
shut crow
drowsy dagger
shut crow
#

yes

drowsy dagger
#

do you know if it is possible to customize the stripe checkout page such that on the left side, i generate the front end myself (so i can easily show my discounts without creating discount objects on stripe), and on the right side of the page, just rely on stripe to handle the paying of the final amount?

shut crow
#

customize in what way and what specifically?

#

oh ok

#

you mean like embed your own page on the left

#

no

#

it's an entirely Stripe-hosted page. What's on the left are the details of the line items/tax/discounts/products you pass to the API when creating the CheckoutSession

drowsy dagger
#

yeap ok i understand. thanks a lot for the help.

#

am i able to edit the success_url after creating the checkout session object? I want to append a hashed version of the payment intent to the back of the success_url

#

this does not seem to work^

shut crow
#

no, you can't update it

#

I want to append a hashed version of the payment intent to the back of the success_url
why? what are you really trying to do?

drowsy dagger
#

trying to not use webhooks haha

shut crow
#

that's not an option

#

they're required

#

the only alternative is to poll for the events in the API or to do run a daily job to retrieve all payments that day and reconcile them for example

shut crow