#vikiram_api

1 messages ¡ Page 1 of 1 (latest)

swift fiberBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1272787425466257481

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

hollow ore
echo citrus
#

but where i can get the payout object id ?

hollow ore
echo citrus
#

i have payment intent id, using this how can i find that transaction is paid to bank or not?

hollow ore
#

No, paymentintent ID is not associated with payout

echo citrus
#

Ok fine. So each transaction i have create in stripe, then i may know that each transaction which we create in stripe are paid to my bank account. Every time i have to check manually by using the dashboard ? Is there no API ?

#

you can see the below example i have

#

here i have only payment intent id which i store in my system. So how i can find this transaction is paid to my bank account ?

hollow ore
echo citrus
#

no this not i expecting. i want each transaction created in stripe are paid to my bank or not ? because each transaction i create in my system also, so each transaction i have to settle to different type of client, so without knowing the transaction are paid to my bank account how can i do settle to my client. Do you understand my point ?

hollow ore
#

That's exactly what I shared earlier.

#

You should use the API to retrieve the list of payments that associated with the payout, so that you can reconsolidate those payments with your own records. I beleive you have a wawy to associate those payments with your client, i.e., through metadata

echo citrus
#

please check one payout

#

"<Stripe.Payout@55035179 id=po_1PZN0aGr08F4adJkSNhbdFA9> JSON: {
""id"": ""po_1PZN0aGr08F4adJkSNhbdFA9"",
""object"": ""payout"",
""amount"": 16650,
""application_fee"": null,
""application_fee_amount"": null,
""arrival_date"": 1720396800,
""automatic"": true,
""balance_transaction"": ""txn_1PZN0aGr08F4adJkqLGiRK2y"",
""created"": 1720227708,
""currency"": ""dkk"",
""description"": ""STRIPE PAYOUT"",
""destination"": ""ba_1PTLTHGr08F4adJkiKi8003P"",
""failure_balance_transaction"": null,
""failure_code"": null,
""failure_message"": null,
""livemode"": false,
""metadata"": {},
""method"": ""standard"",
""original_payout"": null,
""reconciliation_status"": ""completed"",
""reversed_by"": null,
""source_type"": ""card"",
""statement_descriptor"": null,
""status"": ""paid"",
""type"": ""bank_account""
}"
here i dont find any metadata ?

hollow ore
#

Did you set a metadata on a payout object?

echo citrus
#

i dont understand, what you are looking from me?

hollow ore
#

You are asking why you didn't get the metadata, so I need to know where did you set the metdata in the first place.

echo citrus
#

this is my sample request body

#

"id": "cs_live_a1mdXAKMdZIGfaHtqGOENL8LZGKecNl5lbI5bkHcBzckxGurxwZ7nSYPrF",
"object": "checkout.session",
"after_expiration": null,
"allow_promotion_codes": null,
"amount_subtotal": 3289,
"amount_total": 3289,
"automatic_tax": {
"enabled": false,
"liability": null,
"status": null
},
"billing_address_collection": null,
"cancel_url": "https://www.billetsalg.dk/Payment/Decline.aspx?HF=1",
"client_reference_id": null,
"client_secret": null,
"consent": null,
"consent_collection": null,
"created": 1720829203,
"currency": "dkk",
"currency_conversion": null,
"custom_fields": [
],
"custom_text": {
"after_submit": null,
"shipping_address": null,
"submit": null,
"terms_of_service_acceptance": null
},
"customer": null,
"customer_creation": "if_required",
"customer_details": {
"address": null,
"email": "johnny@billetsalg.dk",
"name": null,
"phone": null,
"tax_exempt": "none",
"tax_ids": null
},
"customer_email": "johnny@billetsalg.dk",
"expires_at": 1720915603,
"invoice": null,
"invoice_creation": {
"enabled": false,
"invoice_data": {
"account_tax_ids": null,
"custom_fields": null,
"description": null,
"footer": null,
"issuer": null,
"metadata": {
},
"rendering_options": null
}
},
"livemode": true,
"locale": null,
"metadata": {
},
"mode": "payment",

hollow ore
#

Still I don't see any metadata. Did you set any?