#surajpatidar

1 messages · Page 1 of 1 (latest)

autumn jewelBOT
honest pike
#

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

static kiln
#

You can use metadata

honest pike
#

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

static kiln
#

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

honest pike
#

i want to display on Express Dashboard with every transaction with order id so producer check which order payment

static kiln
#

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

honest pike
#

in description i have added but it not show on

static kiln
#

it now shown on?

honest pike
#

no

static kiln
#

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!

honest pike
#

stripe.Charge.modify(
'{{PAYMENT_ID}}',
description="My custom description",
stripe_account='{{CONNECTED_ACCOUNT_ID}}',
)
i need paymen_id replace with destination_payment id right

static kiln
#

Yep

honest pike
#

can we add like attribute ?

#

stripe.error.InvalidRequestError: Request req_YJ5gOxKpEF4k2q: No such transfer: 'tr_3NZpiNECJUF37lWX1YH56m9G'
it give this error why

static kiln
#

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

honest pike
#

stripe.Charge.modify(
transfer["destination_payment"],
description=f"service: {self.service_model}, product: {self.service_data['product_data']['title']},order_id:{self.id}",
stripe_account=self.provider.stripe_account.id,
)
it wrong ?