Document Upload

Document Upload: Create

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

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

ExamplesAnchorIcon

  1. Ruby
result = gateway.document_upload.create(
  {
    "kind": Braintree::DocumentUpload::Kind::EvidenceDocument,
    "file": File.new("path/to/file", "r")
  }
)

if result.success?
  // document successfully uploaded
  result.document_upload  // a Braintree::DocumentUpload object
else
  p result.errors
end

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