����JFIF��x�x����'
Server IP : 66.29.137.217 / Your IP : 216.73.216.67 Web Server : LiteSpeed System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64 User : gltevjme ( 1095) PHP Version : 7.0.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/gltevjme/./bofirmacademy.com/vendor/braintree/braintree_php/lib/Braintree/ |
Upload File : |
<?php namespace Braintree; use InvalidArgumentException; /** * Upload documents to Braintree in exchange for a DocumentUpload object. * * An example of creating a document upload with all available fields: * $result = Braintree\DocumentUpload::create([ * "kind" => Braintree\DocumentUpload::EVIDENCE_DOCUMENT, * "file" => $pngFile * ]); * * For more information on DocumentUploads, see https://developers.braintreepayments.com/reference/request/document_upload/create * * @property-read string $contentType * @property-read \DateTime $expiresAt * @property-read string $id * @property-read string $kind * @property-read string $name * @property-read int $size */ class DocumentUpload extends Base { /* DocumentUpload Kind */ const EVIDENCE_DOCUMENT = "evidence_document"; protected function _initialize($documentUploadAttribs) { $this->_attributes = $documentUploadAttribs; } /** * Creates a DocumentUpload object * @param kind The kind of document * @param file The open file to upload * @throws InvalidArgumentException if the params are not expected */ public static function create($params) { return Configuration::gateway()->documentUpload()->create($params); } public static function factory($attributes) { $instance = new self(); $instance->_initialize($attributes); return $instance; } }