File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,15 @@ public function clientToken(array $parameters = array())
113
113
return $ this ->createRequest ('\Omnipay\Braintree\Message\ClientTokenRequest ' , $ parameters );
114
114
}
115
115
116
+ /**
117
+ * @param string $id
118
+ * @return Message\FindCustomerRequest
119
+ */
120
+ public function findCustomer ($ id )
121
+ {
122
+ return $ this ->createRequest ('\Omnipay\Braintree\Message\FindCustomerRequest ' , ['customerId ' => $ id ]);
123
+ }
124
+
116
125
/**
117
126
* @param array $parameters
118
127
* @return Message\CreateCustomerRequest
Original file line number Diff line number Diff line change
1
+ <?php
2
+ namespace Omnipay \Braintree \Message ;
3
+
4
+ /**
5
+ * Find Customer Request
6
+ *
7
+ * @method CustomerResponse send()
8
+ */
9
+ class FindCustomerRequest extends AbstractRequest
10
+ {
11
+ public function getData ()
12
+ {
13
+ return $ this ->getCustomerData ();
14
+ }
15
+
16
+ /**
17
+ * Send the request with specified data
18
+ *
19
+ * @param mixed $data The data to send
20
+ * @return CustomerResponse
21
+ */
22
+ public function sendData ($ data )
23
+ {
24
+ $ response = $ this ->braintree ->customer ()->find ($ this ->getCustomerId ());
25
+
26
+ return $ this ->response = new CustomerResponse ($ this , $ response );
27
+ }
28
+ }
You can’t perform that action at this time.
0 commit comments