Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
application
/
vendor
/
omnipay
/
braintree
/
src
/
Message
:
UpdateCustomerRequest.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Omnipay\Braintree\Message; use Omnipay\Common\Message\ResponseInterface; /** * Authorize Request. * * @method CustomerResponse send() */ class UpdateCustomerRequest extends AbstractRequest { public function getData() { return [ 'customerData' => $this->getCustomerData(), 'customerId' => $this->getCustomerId(), ]; } /** * Send the request with specified data. * * @param mixed $data The data to send * * @return ResponseInterface */ public function sendData($data) { $response = $this->braintree->customer()->update($data['customerId'], $data['customerData']); return $this->response = new CustomerResponse($this, $response); } }