#Łukasz Mularczyk
1 messages · Page 1 of 1 (latest)
Hi there, as the error explains, you don't have sufficient fund to create a transfer
You can create some test charges to add funds to your account
ok, but currently all my funds are on hold, probably because of the message from the screenshot
Do we need to set this account for test mode?
The other problem is that in settings, it doesn't look like I can have different settings for test and production
Hi! I'm taking over this thread.
You have two options here:
- Add money to your available Stripe balance. In test mode you can do so with these test cards: https://stripe.com/docs/testing#available-balance
- Set a
source_transactionwhen creating the transfer: https://stripe.com/docs/api/transfers/create#create_transfer-source_transaction
thank you very much for your help, I will try to use your tips
@jaunty berry one more question: is it possible to use the source_transaction just after creating a payment intent, or should it be used after successful payment?
I mean, I'd like to share money with merchants
You can do it right away. But as mentioned in the doc I linked:
A pending balance will transfer immediately but the funds will not become available until the original charge becomes available.
ok, and which param should be passed to source_transaction?
from paymentIntent response?
You need to pass the charge ID that is included in the PaymentIntent
https://stripe.com/docs/api/payment_intents/object#payment_intent_object-latest_charge
Can you share the PaymentIntent ID (pi_xxx)?
pi_3MH1oxKcEfy0ogYO1tfNO8pe
The status of this PaymentIntent is status: "requires_payment_method", so it's expected that there is no charges ID yet.
You need a PaymentIntent in a succeded status to get a charge ID.
so I need a successful payment first, ok I will try
now it works, thank you 🙂