#koks_api

1 messages ¡ Page 1 of 1 (latest)

solar pewterBOT
#

👋 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.

untold pulsar
#

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

crystal umbra
#

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?

untold pulsar
#

correct

crystal umbra
#

Is there a way to know how much customer had paid using card?

untold pulsar
#

sure. once the Checkout Session completed, you'll get a checkout.session.completed webhook event, which contains all information about the purchase.

crystal umbra
#

yes, getting it

#

which attribute holds the amount details?

#

so i should look for Status = "complete" and get "amount_total" attribute?

untold pulsar
#

that's completely up to you. but yes what you described should work.

crystal umbra
#

Is there a way to get processing fee amount using API for a successful card payment?

untold pulsar
crystal umbra
untold pulsar
#

I don't understand your question. If you want to know the fee for a payment, check the link I shared above.

crystal umbra
#

Yes, I need to access the fee for a payment using API. Which end point should i use?

untold pulsar
crystal umbra
#

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"
}

Learn more about error codes and how to resolve them.

#

can you guide as what is missing

untold pulsar
#

that PaymentIntent does exist, but on a different Stripe account

#

so I guess you mixed your API keys