Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NullPaymentProvider.php
Go to the documentation of this file.
1 <?php
7 
12 
14 {
21  public function getCode()
22  {
23  return null;
24  }
25 
33  public function getFormBlockType()
34  {
35  return null;
36  }
37 
44  public function getTitle()
45  {
46  return null;
47  }
48 
54  public function setStore($storeId)
55  {
56  return null;
57  }
58 
63  public function getStore()
64  {
65  return null;
66  }
67 
74  public function canOrder()
75  {
76  return false;
77  }
78 
85  public function canAuthorize()
86  {
87  return false;
88  }
89 
96  public function canCapture()
97  {
98  return false;
99  }
100 
107  public function canCapturePartial()
108  {
109  return false;
110  }
111 
118  public function canCaptureOnce()
119  {
120  return false;
121  }
122 
129  public function canRefund()
130  {
131  return false;
132  }
133 
140  public function canRefundPartialPerInvoice()
141  {
142  return false;
143  }
144 
150  public function canVoid()
151  {
152  return false;
153  }
154 
161  public function canUseInternal()
162  {
163  return false;
164  }
165 
171  public function canUseCheckout()
172  {
173  return false;
174  }
175 
182  public function canEdit()
183  {
184  return false;
185  }
186 
193  public function canFetchTransactionInfo()
194  {
195  return false;
196  }
197 
207  public function fetchTransactionInfo(InfoInterface $payment, $transactionId)
208  {
209  return [];
210  }
211 
218  public function isGateway()
219  {
220  return false;
221  }
222 
229  public function isOffline()
230  {
231  return false;
232  }
233 
240  public function isInitializeNeeded()
241  {
242  return false;
243  }
244 
251  public function canUseForCountry($country)
252  {
253  return false;
254  }
255 
263  public function canUseForCurrency($currencyCode)
264  {
265  return false;
266  }
267 
275  public function getInfoBlockType()
276  {
277  return null;
278  }
279 
288  public function getInfoInstance()
289  {
290  return null;
291  }
292 
302  {
303  return null;
304  }
305 
313  public function validate()
314  {
315  return $this;
316  }
317 
327  {
328  return $this;
329  }
330 
340  {
341  return $this;
342  }
343 
353  {
354  return $this;
355  }
356 
366  {
367  return $this;
368  }
369 
377  public function cancel(\Magento\Payment\Model\InfoInterface $payment)
378  {
379  return $this;
380  }
381 
389  public function void(\Magento\Payment\Model\InfoInterface $payment)
390  {
391  return $this;
392  }
393 
399  public function canReviewPayment()
400  {
401  return false;
402  }
403 
413  {
414  return false;
415  }
416 
426  {
427  return false;
428  }
429 
438  public function getConfigData($field, $storeId = null)
439  {
440  return null;
441  }
442 
450  public function assignData(DataObject $data)
451  {
452  return $this;
453  }
454 
461  public function isAvailable(CartInterface $quote = null)
462  {
463  return false;
464  }
465 
472  public function isActive($storeId = null)
473  {
474  return false;
475  }
476 
489  public function initialize($paymentAction, $stateObject)
490  {
491  return $this;
492  }
493 
501  public function getConfigPaymentAction()
502  {
503  return null;
504  }
505 }
refund(\Magento\Payment\Model\InfoInterface $payment, $amount)
$quote
void(\Magento\Payment\Model\InfoInterface $payment)
capture(\Magento\Payment\Model\InfoInterface $payment, $amount)
$amount
Definition: order.php:14
$payment
Definition: order.php:17
fetchTransactionInfo(InfoInterface $payment, $transactionId)
authorize(\Magento\Payment\Model\InfoInterface $payment, $amount)
cancel(\Magento\Payment\Model\InfoInterface $payment)
order(\Magento\Payment\Model\InfoInterface $payment, $amount)
foreach( $_productCollection as $_product)() ?>" class $info
Definition: listing.phtml:52