#honeysugarbaby_webhooks
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!
🔗 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/1212423243667996764
📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.
⏲️ 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. Thank you for your patience!
How do I classify as "terms conditions" and then another file as "terms disclosure"
seems I'm only able to upload one file
Hi 👋 I'm not sure I understand what you're describing, could you elaborate a bit more?
I am updating a dispute... I want to upload multiple files as evidence.
I have two files: "terms and conditions" and "terms disclosure" .
terms.pdf and disclosure.pdf
how do I upload BOTH and classify them properly?
I tried
$uploadfile=\Stripe\FileUpload::create(array(
'purpose' => 'dispute_evidence',
'file' => $fp
));
but it only allows a single file.
You call that endpoint multiple times to create multiple File objects.
humm... ok. seems to only display a single file when I bring up the dispute in a browser window.
We aren't too familiar with the dashboard side of these flows, we mainly focus on working with the API. Are you updating the Dispute object so that it contains a reference to both of the files you uploaded?
yes exactly...
I'm not sure which fields within the evidence hash are best suited to hold the evidence you're uploading, but I would recommend trying to use multiple of the fields in it providing each one with a single File ID.
https://docs.stripe.com/api/disputes/update#update_dispute-evidence
humm that link is broken
sorry, I've fixed that
This site can’t provide a secure connectiondocs.corp.stripe.com didn’t accept your login certificate, or one may not have been provided.
Try contacting the system admin.
ERR_BAD_SSL_CLIENT_AUTH_CERT
I updated the link, can you try again?
great. that link works.
In this document... I see "evidence.cancellation_policy"
but it isn't clear to me how to pass this via the API
$dispute->evidence = array(
"product_description" => $product,
"access_activity_log"=> $activity,
"customer_communication"=> $uploadfile->id,
"cancellation_policy"=> $uploadfile2->id,
"uncategorized_text"=>$additional,
);
$dispute->submit = false;
$dispute->save();
perhaps like this?
with the first file and second file IDs attached?
Hello! I'm taking over and catching up...
Yeah, that's generally the correct approach. What happens if you run that?
I'll try..
working...better...
Are there better ways to classify these files?
I'd like to classify one as "Refund and cancellation policy" and the other as "Terms disclosure"
I honestly don't know, I'm not familiar with the particulars of how disputes themselves work. I can help you use the API and whatnot, but for questions about the dispute process itself you should reach out to Stripe support: https://support.stripe.com/contact/email
Yep, I do.
This server is focused on developer support. Code, the API, webhooks, that kind of thing.
For other topics, like the the dispute process, Dashboard questions, and so on you should contact Stripe support.
ummm.. we are talking about responding to disputes using webhooks and API
I'd say that is 100% developer support related.
Yep, it is, but you asked about classifications, which I don't know how to help with.
Unless I misunderstood the question?
Let me re-phrase... Using the API, how do you specify a file is a "Refund and cancellation policy" ? If I call this... it classifies as a "Cancellation policy" .
"cancellation_policy"=> $uploadfile2->id,
is there a, "refund_and_cancellation_policy"=>$uploadfile->id, type call?
Ah, I understand. No, those are separate in the API. There's this for the cancellation policy: https://docs.stripe.com/api/disputes/update#update_dispute-evidence-cancellation_policy
And this for the refund policy: https://docs.stripe.com/api/disputes/update#update_dispute-evidence-refund_policy
If you have a single PDF that contains both of those you should specify that same PDF for both of those properties.