#pradipta.paul

1 messages · Page 1 of 1 (latest)

left pewterBOT
meager moat
#

Hi 👋 the solution to that is to make a test payment, using the test card shown in the error message, to process a payment that skips the pending balance step so the funds will immediately become available.

boreal kernel
#

i am creating payment intent to do the payent

#

const paymentMethodAttach = await stripe.paymentMethods.attach(
params.paymentmethod_id,
{ customer: params.customer }
);

        var paymentIntentAdmin = await stripe.paymentIntents.create({
                amount: params.payment_amount,
                currency: 'USD',
                description: 'Payment to stripe',
                customer: params.customer,
                payment_method: params.paymentmethod_id,
                off_session: true,
                confirm: true,
            });
#

then why the payment amount is going to pending? not active

#

@meager moat

meager moat
#

It's expected behavior for all payments to first go into your pending balance while the funds move and the transaction settles. So test mode also replicates that expected behavior. The test card mentioned in the error message previously is designed to skip that step, so you can quickly add to your funds in testmode to conduct other testing. What test card number did you use to create the Payment Method that you're using there?

boreal kernel
#

4242424242424242

#

@meager moat

meager moat
#

Yup, that card is expected to have funds go into the pending balance. Try again using the test card number from the error message.

boreal kernel
#

but in another account the card working fine 424242424... this one

#

@meager moat

meager moat
#

What does "the card working fine" mean?

boreal kernel
#

same case is not happening for my another account

#

@meager moat

meager moat
#

It should be, do you have examples of otherwise that you can share? The funds should be going into the pending balance there as well, that is always expected for that test card.

boreal kernel
#

for my previous account , stripe.paymentIntents.create balance directly going to active balance, but no for current account

#

@meager moat

meager moat
#

Do you have examples of that? That should never be the case unless you're using the test card that explicitly is designed to skip the pending balance step.

#

I need to flag that behavior to our teams for further review, so if you can provide specific examples of test payments where you saw that it would be greatly appreciated.