Skip to content

Commit c5b886e

Browse files
committed
Create UpdateRequest.php
send update request to the Stripe
1 parent 0df4b36 commit c5b886e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)