File tree Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -247,15 +247,19 @@ public function supportsUpdateCard()
247
247
* Example:
248
248
*
249
249
* <code>
250
- * class myRequest extends \Omnipay\Common\Message\AbstractRequest {};
250
+ * class MyRequest extends \Omnipay\Common\Message\AbstractRequest {};
251
251
*
252
- * class myGateway extends \Omnipay\Common\AbstractGateway {
252
+ * class MyGateway extends \Omnipay\Common\AbstractGateway {
253
253
* function myRequest($parameters) {
254
- * $this->createRequest('myRequest ', $parameters);
254
+ * $this->createRequest('MyRequest ', $parameters);
255
255
* }
256
256
* }
257
257
*
258
- * $myRequest = myGateway->myRequest($someParameters);
258
+ * // Create the gateway object
259
+ * $gw = Omnipay::create('MyGateway');
260
+ *
261
+ * // Create the request object
262
+ * $myRequest = $gw->myRequest($someParameters);
259
263
* </code>
260
264
*
261
265
* @see \Omnipay\Common\Message\AbstractRequest
Original file line number Diff line number Diff line change 28
28
* Example -- creating a request:
29
29
*
30
30
* <code>
31
- * class myRequest extends \Omnipay\Common\Message\AbstractRequest {};
31
+ * class MyRequest extends \Omnipay\Common\Message\AbstractRequest {};
32
32
*
33
- * class myGateway extends \Omnipay\Common\AbstractGateway {
33
+ * class MyGateway extends \Omnipay\Common\AbstractGateway {
34
34
* function myRequest($parameters) {
35
- * $this->createRequest('myRequest ', $parameters);
35
+ * $this->createRequest('MyRequest ', $parameters);
36
36
* }
37
37
* }
38
38
*
39
- * $myRequest = myGateway->myRequest($someParameters);
39
+ * // Create the gateway object
40
+ * $gw = Omnipay::create('MyGateway');
41
+ *
42
+ * // Create the request object
43
+ * $myRequest = $gw->myRequest($someParameters);
40
44
* </code>
41
45
*
42
46
* Example -- validating and sending a request:
You can’t perform that action at this time.
0 commit comments