#surajpatidar

1 messages ยท Page 1 of 1 (latest)

thick larkBOT
sick sierra
#

๐Ÿ‘‹ how may I help?

icy dew
#

stripe.error.InvalidRequestError: Request req_5W9bWUZUm6pRnS: 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.

#

in my account already amount but it give this error

sick sierra
#

if my memory serves me well, we have discussed about this before right?

icy dew
#

no

sick sierra
#

I might be mistaken

icy dew
#

how it work ?

thick larkBOT
icy dew
#

stripe.Transfer.create(
amount=int(amount * 100),
currency="usd",
transfer_group=f"{self.id}",
destination=self.provider.stripe_account.id,
)
i have use this

sick sierra
#

you need the source_transaction field

icy dew
#

but how it work

#

how to get charge id

#

and where

#

i have stripe checkout page

#

if user pay then some amount transfer on connected account

leaden rune
#

Hey! Taking over for my colleague. Why not suing Destination Charges directly?

icy dew
#

"latest_charge": {
"amount": 10000,
"amount_captured": 10000,
"amount_refunded": 0,
"amount_updates": [],
"application": null,
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": {
"amount": 10000,
"available_on": 1690848000,
"created": 1690281048,
"currency": "usd",
"description": null,
"exchange_rate": null,
"fee": 320,
"fee_details": [
{
"amount": 320,
"application": null,
"currency": "usd",
"description": "Stripe processing fees",
"type": "stripe_fee"
}
],
"id": "txn_3NXiVjECJUF37lWX0ewPeKNL",
"net": 9680,
"object": "balance_transaction",
"reporting_category": "charge",
"source": "ch_3NXiVjECJUF37lWX0T1tVUkp",
"status": "pending",
"type": "charge"
},
"billing_details": {
"address": {
"city": null,
"country": "IN",
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": "suraj@suraj.com",
"name": "Suraj Patidar",
"phone": null
},
"calculated_statement_descriptor": "WWW.UPSTREAM.COM",
"captured": true,
"created": 1690281048,
"currency": "usd",
"customer": "cus_NjZVa9XGxohLC6",
"description": null,
"destination": null,
"dispute": null,
"disputed": false,
"failure_balance_transaction": null,
"failure_code": null,
"failure_message": null,
"fraud_details": {},
"id": "ch_3NXiVjECJUF37lWX0T1tVUkp",
"invoice": "in_1NXiVxECJUF37lWXZ8k6HbR1",
"livemode": false,
"metadata": {},
"object": "charge",
"on_behalf_of": null,
"order": null,
"outcome": {
"network_status": "approved_by_network",
"reason": null,
"risk_level": "normal",
"risk_score": 47,
"seller_message": "Payment complete.",
"type": "authorized"
},

#

in this can i use this id ch_3NXiVjECJUF37lWX0T1tVUkp

#

for transfer source ?

#

this id generate from payment checkout page

leaden rune
icy dew
#

okay

#

this ch_id from checkout so need to use this or not ?

#

i have disable automatic payout but still give me error same

leaden rune
#

that's will depends on your use case. If you want to make transfer from that charge so yes.

#

I encourage you to continue the test till the end.

icy dew
#

stripe.error.InvalidRequestError: Request req_FH7yNv38KPcEXi: 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. You can use the /v1/balance endpoint to view your Stripe balance (for more details, see stripe.com/docs/api#balance).

leaden rune
icy dew
#

i have buy antoher order but it give me error

#

i need only one suggestion

leaden rune
#

The charge you were sharing belongs to this account acct_1MxqqUECJUF37lWX and not acct_1NNDKBE61Yv6PC0a

#

You are creating the charge on one account and doing the transfer from another account.

#

Make sure to create the charge on the correct Platform Account.

icy dew
#

i have create correct platform account

#

after that transfer on connected account

leaden rune
#

No this charge ch_3NXiVjECJUF37lWX0T1tVUkp was created from this Account acct_1MxqqUECJUF37lWX while the transfer request req_FH7yNv38KPcEXi is made from this account acct_1NNDKBE61Yv6PC0a to this one acct_1NQS8mEDTQL36YOF

icy dew
#

leave all

#

can i use checkout.session.completed charge id for transfer ?

leaden rune
#

yes you can, but you need to make sure that the charge is created on the same account that you want to make transfer from.

icy dew
#

it confirm

#

wait i will test

#

stripe.Transfer.create(
amount=1000,
currency="usd",
source_transaction='{{CHARGE_ID}}',
destination='{{CONNECTED_ACCOUNT_ID}}',
)
can i use this

leaden rune
#

yes you can

icy dew
#

it give me this new error

stripe.error.InvalidRequestError: Request req_rmKuEnxQSoIlr7: The currency of source_transaction's balance transaction (gbp) must be the same as the transfer currency (usd)

#

how to change stripe account currency

leaden rune
#

The easiest option is to create a charge using that same currency.

icy dew
#

but i want to change in stripe dashboard bcz gbp is by mistake added

leaden rune
icy dew
#

thank you

#

it work fine now