#surajpatidar

1 messages · Page 1 of 1 (latest)

neon bridgeBOT
simple ivy
#

👋 happy to help

#

insufficient fund error is normally related to customer's card declines

#

what are you trying to test?

late bloom
#

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

simple ivy
#

ok

late bloom
#

"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 ?

simple ivy
#

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

late bloom
simple ivy
#

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 🙈

late bloom
#

okay

simple ivy
late bloom
#

i want to know one more things

simple ivy
#

yes sure!

late bloom
#

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

simple ivy
#

it should be

#

maybe you should wait a bit

late bloom
#

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.

#

now if fund added then this request automatically transfer amount or need to new request for that

simple ivy
late bloom
#

okay

simple ivy
#

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

late bloom
#

i have't use this source

simple ivy
#

which means that the transfers is tied to a Charge

#

linking the transfer to the source transaction that generated the income

late bloom
#

how it work ?

simple ivy
#

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

late bloom
#

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

simple ivy
#

this will only link the transfer to the charge that generated the revenue