#jayamini_testing-async-pms
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/1303727652498309260
📝 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.
- jayamini_webhooks, 25 minutes ago, 6 messages
hi there!
would it be wise to save the payment status
pendingin our db during thecheckout.session.completedand then update it whencheckout.session.async_payment_succeededfires? In this scenario, should add a restriction during checkout to prevent users with apendingpayment from purchasing the same product again?
yep, that seems like a good solution!
thanks!
can we use paymentIntents.cancel to allow users to cancel such pending payments? If so, what’s the best approach for updating the payment status on our side after a user cancels?
based on this doc: https://docs.stripe.com/payments/paymentintents/lifecycle
You can cancel a PaymentIntent in the processing state when the associated Payment Method is US Bank Account. However, it might fail due to a limited and varying cancellation time window.
thanks will chack this!
we had the same issue with subscriptions. is "Limit customers to one subscription" the best way to prevent multiple subscriptions while payments are processing?
https://docs.stripe.com/payments/checkout/limit-subscriptions
is there a method like this to handle one time pending payments?
yes it should work, since Stripe would create an active subscription even when the payment is processing
but I recommend testing this in testmode to make sure it works as you expect
will check this
thanks you!
hi, can you give me pointers on how to test async payments on test mode
yeah, all payment methods
Hi there 👋 you'd use the test details provided in our docs, either on this page or within the docs for the specific payment methods you're interested in testing, to run a test payment:
https://docs.stripe.com/testing#non-card-payments
hi, are these payment methods work async in test mode as well? since our problem originated from US bank accounts doing async verifications...
Like this one we have listed that causes the payment to stay in a processing state indefinitely? Or is there something different you're hoping to test?
in our case this was US banks which were taking few days to process the payment...which was causing issues mentioned by @hushed oxide
actually user said the funds have been dedudted from his bank
and when we checked stripe...its saying the funds are in pending state
currently i see 3 payments are in same state in stripe dashboard
What is the status on the Payment Intent object? We aren't too familiar with how the dashboard represents object states, we focus more on helping work with our API.
Sharing the contents of the status field of the intent would likely be easier.
its pending
I bet it's in a processing state, so our test Payment Method that causes payments to stay processing forever would let you replicate that scenario for testing.
Can you share the ID of the intent? Since pending isn't a valid value for that field and I want to double check what you're seeing.
https://docs.stripe.com/api/payment_intents/object#payment_intent_object-status
sorry this is charge object
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
check here
status: "processing",
So is replicating an intent staying in a processing status what you're trying to test? If so, the test payment method I pointed to above would be my recommendation.
thanks will check it out