#surajpatidar
1 messages · Page 1 of 1 (latest)
👋 happy to help
insufficient fund error is normally related to customer's card declines
what are you trying to test?
i want to transfer amount in express acount using this api
amount=int(request_amount * 100),
currency="usd",
destination=user.stripe_account.id,
)```
i want to transfer amount from platform account to connected account
ok
Learn how to use Connect to create charges on your platform account on behalf of connected accounts, perform transfers separately, and retain funds in the process.
"amount": 2500,
"amount_reversed": 0,
"balance_transaction": "txn_1NVUgCECJUF37lWXsFBmoI2G",
"created": 1689751211,
"currency": "usd",
"description": null,
"destination": "acct_1NNVB0E9EyZZnb5j",
"destination_payment": "py_1NVUgBE9EyZZnb5jn6FSzNY5",
"id": "tr_1NVUgBECJUF37lWXrXZX3IB7",
"livemode": false,
"metadata": {},
"object": "transfer",
"reversals": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
"url": "/v1/transfers/tr_1NVUgBECJUF37lWXrXZX3IB7/reversals"
},
"reversed": false,
"source_transaction": null,
"source_type": "card",
"transfer_group": null
how to i will check it success or not ?
if it was created than it succeeded, that's what I tried explaining yesterday
the transfer won't be created if there's not enough funds in the platform account’s available balance
when you explaining me yesterday ?
oh my bad, I got you mistaken with someone else
I answered a couple of your questions yesterday, and someone asked me exactly this question at the same time
sorry 🙈
okay
i want to know one more things
yes sure!
now i have transfer amount but it not charge from platform account
--------------transfer------------ {
"amount": 500000,
"amount_reversed": 0,
"balance_transaction": "txn_1NVWAfECJUF37lWXKNfWfK9C",
"created": 1689756945,
"currency": "usd",
"description": null,
"destination": "acct_1NNVB0E9EyZZnb5j",
"destination_payment": "py_1NVWAfE9EyZZnb5jQJFA8Qfh",
"id": "tr_1NVWAfECJUF37lWXrCZcrNUU",
"livemode": false,
"metadata": {},
"object": "transfer",
"reversals": {
"data": [],
"has_more": false,
"object": "list",
"total_count": 0,
"url": "/v1/transfers/tr_1NVWAfECJUF37lWXrCZcrNUU/reversals"
},
"reversed": false,
"source_transaction": null,
"source_type": "card",
"transfer_group": null
}
it not charge from main platform account
stripe.error.InvalidRequestError: Request req_Io31a3B4VjdGPv: You have insufficient funds in your Stripe account. One likely reason you have insufficient funds is that your funds are automatically being paid out; try enabling manual payouts by going to https://dashboard.stripe.com/account/payouts.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
now if fund added then this request automatically transfer amount or need to new request for that
no you need to create a new request
okay
but the best way of dealing with this issue of transfers
is described in the link I sent above
where you use the source_transaction property
i have't use this source
which means that the transfers is tied to a Charge
linking the transfer to the source transaction that generated the income
how it work ?
let's say you create a PI
your customer pays it
when you want to create the transfer
you pass in the PI's latest_charge ID
to the source_transaction param of the create transfer
not it not pay customer
i work on user referral and earing money in our platform
so we need to transfer his earning in his account
this will only link the transfer to the charge that generated the revenue