File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,11 @@ public function store(array $parameters = array())
59
59
return $ this ->createRequest ('\Omnipay\Stripe\Message\StoreRequest ' , $ parameters );
60
60
}
61
61
62
+ public function update (array $ parameters = array ())
63
+ {
64
+ return $ this ->createRequest ('\Omnipay\Stripe\Message\UpdateRequest ' , $ parameters );
65
+ }
66
+
62
67
public function unstore (array $ parameters = array ())
63
68
{
64
69
return $ this ->createRequest ('\Omnipay\Stripe\Message\UnstoreRequest ' , $ parameters );
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ public function getData()
21
21
$ data = array ();
22
22
$ data ['description ' ] = $ this ->getDescription ();
23
23
24
+ if ($ this ->getCardToken ()) {
25
+ $ data ['card ' ] = $ this ->getCardToken ();
26
+ } elseif ($ this ->getCard ()) {
27
+ $ data ['card ' ] = $ this ->getCardData ();
28
+ $ data ['email ' ] = $ this ->getCard ()->getEmail ();
29
+ }
30
+
24
31
$ this ->validate ('cardReference ' );
25
32
26
33
return $ data ;
You can’t perform that action at this time.
0 commit comments