Reputation: 187
I am having trouble to make transfer
from a paymentIntent
, I have enabled manual payouts and have funds in my test balance..
I tried also to add source_transaction
in the transfer object, but without success
I am getting:
StripeInvalidRequestError: Insufficient funds in Stripe account. In test mode, you can add funds to your available balance (bypassing your pending balance) by creating a charge with 4000 0000 0000 0077 as the card number
I already added with this test card number.. The paymentIntent is created successfully:
const paymentIntent = await stripe.paymentIntents.create(
{
amount: amount,
currency: "usd",
payment_method_types: ["card"],
transfer_group: "{ORDER11}",
}
)
And here is my failing transfer object:
const transfer = await stripe.transfers.create({
amount: orderAmount,
currency: "usd",
destination: sellerAccountId,
transfer_group: "{ORDER11}",
source_transaction: pi.charges.data.id,
});
Thank you for helping
Upvotes: 1
Views: 466