Document Upload

Document Upload: Create

Parameters
'file'file
The binary data of the file to upload. Only png, jpg, jpeg, or pdf files are supported. The file must not exceed 4MB.
'kind'multiple

The type of uploaded document. Value should always be EVIDENCE_DOCUMENT.

ExamplesAnchorIcon

  1. PHP
$result = $gateway->documentUpload()->create([
  'kind' => BraintreeDocumentUpload::EVIDENCE_DOCUMENT,
  'file' => fopen('local_file.pdf', 'rb')
]);

if ($result->success) {
  # document successfully uploaded
  $document = $result->documentUpload;
} else {
  echo $result->errors;
}

We currently use cookies to improve and customize your experience on our site. If you accept, we’ll also use marketing cookies to show you personalized ads. Manage your cookies and learn more.