#feni-patel_api

1 messages ¡ Page 1 of 1 (latest)

wooden tuskBOT
#

👋 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/1334462486111588393

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

severe forum
#

I need testing payment method id for checking the flow

lethal panther
#

There's loads of test cards/tokens here for various scenarios: https://docs.stripe.com/testing

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.

severe forum
#

and also i am using the create saparate charge and transfer method. but currently i am facing one error like,

"Payment Failed: You have insufficient available funds in your Stripe account. Try adding funds directly to your available balance by creating Charges using the 4000000000000077 test card. See: https://stripe.com/docs/testing#available-balance".

edgy swan
#

Generally this is expected, since the funds from the charge are not available for Payout or Transfer yet.

severe forum
severe forum
#

Into my api

#

code

#

const merchantTransfer = await stripe.transfers.create({
amount: Math.round(paymentDetails.merchantAmount.totalAmount * 100),
currency: 'usd',
destination: paymentDetails.merchantAmount.acountId,
source_transaction: paymentIntentID,
});
this is how i created the transfer

edgy swan
#

The error that is thrown from this call should contain the Request ID.

severe forum
#

then what do i need to changed ?

edgy swan
severe forum
#

which one ?