#surajpatidar
1 messages · Page 1 of 1 (latest)
stripe.Transfer.create(
amount=int(amount * 100),
currency="usd",
source_transaction=charge_id,
destination=self.provider.stripe_account.id,
)
i have use this
You can use metadata
i want to add date time , product name , order id
so i will check in stripe express account
stripe.Transfer.create(
amount=int(amount * 100),
currency="usd",
source_transaction=charge_id,
destination=self.provider.stripe_account.id,
metadata={
"order_id": self.id,
"product": self.service_data["product_data"]["title"],
"service": self.service_model,
}
)
this is right
meta data not show in this
it show description only
hii
in response it show description all
but in express account not show anything
hello
The metadata is available on the Transfer object, but doesn't display in the Express Dashboard. You can retrieve the metadata if you use the API
i want to display on Express Dashboard with every transaction with order id so producer check which order payment
I see hmm. If you insert all of those information into Description would it work for you? ie. delimitered by | but concat everything in one sentence
in description i have added but it not show on
it now shown on?
Ah I see. You would want to follow this Doc https://stripe.com/docs/connect/customize-express-dashboard#set-custom-descriptions
So you would want to update the destination_payment on the Transfer, to be able to get it reflected on the Express Dashboard
follow the guide!
stripe.Charge.modify(
'{{PAYMENT_ID}}',
description="My custom description",
stripe_account='{{CONNECTED_ACCOUNT_ID}}',
)
i need paymen_id replace with destination_payment id right
Yep
can we add like attribute ?
stripe.error.InvalidRequestError: Request req_YJ5gOxKpEF4k2q: No such transfer: 'tr_3NZpiNECJUF37lWX1YH56m9G'
it give this error why
The Transfer lives in the Platform account. Here in this request you use a Platform key with Stripe Account header == you are looking at the Connected Account, so it wouldn't find the Transfer