#surajpatidar
1 messages ยท Page 1 of 1 (latest)
๐ how may I help?
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.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
in my account already amount but it give this error
if my memory serves me well, we have discussed about this before right?
no
I might be mistaken
the best approach is to use the source_transaction https://stripe.com/docs/api/transfers/create#create_transfer-source_transaction field
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
how it work ?
i have use this
stripe.Transfer.create(
amount=int(amount * 100),
currency="usd",
transfer_group=f"{self.id}",
destination=self.provider.stripe_account.id,
)
i have use this
you need the source_transaction field
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
Hey! Taking over for my colleague. Why not suing Destination Charges directly?
"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
If the charge is still available for transfers, I invite you to do a test otherwise, create another charge and disable automatic payout in your account.
okay
this ch_id from checkout so need to use this or not ?
i have disable automatic payout but still give me error same
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.
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).
Have you created another charge ?
yes
i have buy antoher order but it give me error
i need only one suggestion
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.
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
yes both different account
this error from anthor account where i have disable automatically payouts
leave all
can i use checkout.session.completed charge id for transfer ?
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.
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
yes you can
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
The easiest option is to create a charge using that same currency.
but i want to change in stripe dashboard bcz gbp is by mistake added
You can modify/add currency in your dashboard via:
https://dashboard.stripe.com/settings/payouts