#jayamini_testing-async-pms

1 messages · Page 1 of 1 (latest)

teal sierraBOT
#

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

analog dagger
#

hi there!

#

would it be wise to save the payment status pending in our db during the checkout.session.completed and then update it when checkout.session.async_payment_succeeded fires? In this scenario, should add a restriction during checkout to prevent users with a pending payment from purchasing the same product again?
yep, that seems like a good solution!

hushed oxide
#

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?

analog dagger
hushed oxide
#

thanks will chack this!

#

is there a method like this to handle one time pending payments?

analog dagger
#

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

hushed oxide
#

will check this
thanks you!

teal sierraBOT
hushed oxide
#

hi, can you give me pointers on how to test async payments on test mode

analog dagger
#

with Checkout Session?

#

which payment method exactly would you like to test?

hushed oxide
#

yeah, all payment methods

last dagger
#

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

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

finite swallow
#

hi, are these payment methods work async in test mode as well? since our problem originated from US bank accounts doing async verifications...

last dagger
#

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?

finite swallow
#

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

last dagger
#

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.

finite swallow
#

is it ok to share url to payment intent?

#

workbench url

last dagger
#

Sharing the contents of the status field of the intent would likely be easier.

finite swallow
#

its pending

last dagger
#

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.

finite swallow
#

sorry this is charge object

#

check here

last dagger
#

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.

finite swallow
#

thanks will check it out