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;
}

If you accept cookies, we’ll use them to improve and customize your experience and enable our partners to show you personalized PayPal ads when you visit other sites. Manage cookies and learn more