#koks_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/1333799752168509462
đ 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.
- koks_api, 58 minutes ago, 4 messages
hi there!
if the payment fails, then the user would stay on the Checkout Session page to let them retry the payment
only when the payment is successful, they are redirected to the success_url
ok, thanks soma
I see status of Incomplete, Failed, Expired, Canceled. I assume, for these status it won't display success_url redirect screen to the user. Please confirm?
correct
Is there a way to know how much customer had paid using card?
sure. once the Checkout Session completed, you'll get a checkout.session.completed webhook event, which contains all information about the purchase.
yes, getting it
which attribute holds the amount details?
so i should look for Status = "complete" and get "amount_total" attribute?
that's completely up to you. but yes what you described should work.
you can also make an extra API to this endpoint to see exactly what was included in the Checkout Sessoin: https://docs.stripe.com/api/checkout/sessions/line_items
Is there a way to get processing fee amount using API for a successful card payment?
is this the api end point --> https://docs.stripe.com/api/balance_transactions/object#balance_transaction_object-fee_details?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I don't understand your question. If you want to know the fee for a payment, check the link I shared above.
Yes, I need to access the fee for a payment using API. Which end point should i use?
the PaymentIntent retrieve endpoint, as mentioned here: https://docs.stripe.com/expand/use-cases#stripe-fee-for-payment
ok
I'm making an api call via postman and getting this error as reponse "error": {
"code": "resource_missing",
"doc_url": "https://stripe.com/docs/error-codes/resource-missing",
"message": "No such payment_intent: 'pi_3QAeYKKgdHKl58fj0fkZtX1n'",
"param": "intent",
"request_log_url": "https://dashboard.stripe.com/test/logs/req_CiJPE0DXM44Jw7?t=1738075649",
"type": "invalid_request_error"
}
for this end point --> https://api.stripe.com/v1/payment_intents/pi_3QAeYKKgdHKl58fj0fkZtX1n
can you guide as what is missing