#mitsu_api
1 messages · Page 1 of 1 (latest)
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.
👋 Welcome to your new thread!
⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1256076170437595147
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
- payment_intents/create
payment_intents/capture with: pi_3PWUKXIJOXcdaYNk0NRUj1Pb
[status] => succeeded
Question:
$stripe->paymentIntents->capture('pi_3PWUKXIJOXcdaYNk0NRUj1Pb', [])
api paymentIntents->capture always returns succeeded, right?
Almost, yes. But there are always rare case could happen, ie. your network is down or Stripe having outage, or our financial partner having outage.
Or if you are capturing ourside of the capture window
How to test if the api returns failure $stripe->paymentIntents->capture
There are 2 cases:
- call api $stripe->paymentIntents->capture and return failure
- $stripe->paymentIntents->capture api call returns failure via webhook
There is no test card to test capture failure unfortunately
$stripe->paymentIntents->capture
What statuses are there? Can you help me send documents?
It simply returns a PaymentIntent object https://docs.stripe.com/api/payment_intents/capture
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Returns a PaymentIntent object with status="succeeded" if the PaymentIntent is capturable. Returns an error if the PaymentIntent isn’t capturable or if an invalid amount to capture is provided.