We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df4b36 commit c5b886eCopy full SHA for c5b886e
src/Omnipay/Stripe/Message/UpdateRequest.php
@@ -0,0 +1,33 @@
1
+<?php
2
+
3
+/*
4
+ * This file is part of the Omnipay package.
5
+ *
6
+ * (c) Adrian Macneil <[email protected]>
7
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
12
+namespace Omnipay\Stripe\Message;
13
14
+/**
15
+ * Stripe Update Request
16
17
+class UpdateRequest extends PurchaseRequest
18
+{
19
+ public function getData()
20
+ {
21
+ $data = array();
22
+ $data['description'] = $this->getDescription();
23
24
+ $this->validate('cardReference');
25
26
+ return $data;
27
+ }
28
29
+ public function getEndpoint()
30
31
+ return $this->endpoint.'/customers/'.$this->getCardReference();
32
33
+}
0 commit comments