Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Info.php
Go to the documentation of this file.
1 <?php
7 namespace Magento\Paypal\Model;
8 
16 class Info
17 {
23  const PAYER_ID = 'payer_id';
24 
25  const PAYER_EMAIL = 'email';
26 
27  const PAYER_STATUS = 'payer_status';
28 
29  const ADDRESS_ID = 'address_id';
30 
31  const ADDRESS_STATUS = 'address_status';
32 
33  const PROTECTION_EL = 'protection_eligibility';
34 
35  const FRAUD_FILTERS = 'collected_fraud_filters';
36 
37  const CORRELATION_ID = 'correlation_id';
38 
39  const AVS_CODE = 'avs_result';
40 
41  const AVSADDR = 'avsaddr';
42 
43  const AVSZIP = 'avszip';
44 
45  const IAVS = 'iavs';
46 
47  const CVV2MATCH = 'cvv2match';
48 
49  const CVV_2_MATCH = 'cvv_2_check_result';
50 
51  // Next two fields are required for Brazil
52  const BUYER_TAX_ID = 'buyer_tax_id';
53 
54  const BUYER_TAX_ID_TYPE = 'buyer_tax_id_type';
55 
56  const PAYMENT_STATUS = 'payment_status';
57 
58  const PENDING_REASON = 'pending_reason';
59 
60  const IS_FRAUD = 'is_fraud_detected';
61 
62  const PAYMENT_STATUS_GLOBAL = 'paypal_payment_status';
63 
64  const PENDING_REASON_GLOBAL = 'paypal_pending_reason';
65 
66  const IS_FRAUD_GLOBAL = 'paypal_is_fraud_detected';
67 
71  const BUYER_TAX_ID_TYPE_CPF = 'BR_CPF';
72 
73  const BUYER_TAX_ID_TYPE_CNPJ = 'BR_CNPJ';
74 
80  protected $_paymentMap = [
81  self::PAYER_ID => self::PAYPAL_PAYER_ID,
82  self::PAYER_EMAIL => self::PAYPAL_PAYER_EMAIL,
83  self::PAYER_STATUS => self::PAYPAL_PAYER_STATUS,
84  self::ADDRESS_ID => self::PAYPAL_ADDRESS_ID,
85  self::ADDRESS_STATUS => self::PAYPAL_ADDRESS_STATUS,
86  self::PROTECTION_EL => self::PAYPAL_PROTECTION_ELIGIBILITY,
87  self::FRAUD_FILTERS => self::PAYPAL_FRAUD_FILTERS,
88  self::CORRELATION_ID => self::PAYPAL_CORRELATION_ID,
89  self::AVS_CODE => self::PAYPAL_AVS_CODE,
90  self::CVV_2_MATCH => self::PAYPAL_CVV_2_MATCH,
91  self::BUYER_TAX_ID => self::BUYER_TAX_ID,
92  self::BUYER_TAX_ID_TYPE => self::BUYER_TAX_ID_TYPE,
93  self::AVSADDR => self::PAYPAL_AVSADDR,
94  self::AVSZIP => self::PAYPAL_AVSZIP,
95  self::IAVS => self::PAYPAL_IAVS,
96  self::CVV2MATCH => self::PAYPAL_CVV2MATCH
97  ];
98 
104  protected $_systemMap = [
105  self::PAYMENT_STATUS => self::PAYMENT_STATUS_GLOBAL,
106  self::PENDING_REASON => self::PENDING_REASON_GLOBAL,
107  self::IS_FRAUD => self::IS_FRAUD_GLOBAL,
108  ];
109 
115  const PAYMENTSTATUS_NONE = 'none';
116 
117  const PAYMENTSTATUS_COMPLETED = 'completed';
118 
119  const PAYMENTSTATUS_DENIED = 'denied';
120 
121  const PAYMENTSTATUS_EXPIRED = 'expired';
122 
123  const PAYMENTSTATUS_FAILED = 'failed';
124 
125  const PAYMENTSTATUS_INPROGRESS = 'in_progress';
126 
127  const PAYMENTSTATUS_PENDING = 'pending';
128 
129  const PAYMENTSTATUS_REFUNDED = 'refunded';
130 
131  const PAYMENTSTATUS_REFUNDEDPART = 'partially_refunded';
132 
133  const PAYMENTSTATUS_REVERSED = 'reversed';
134 
135  const PAYMENTSTATUS_UNREVERSED = 'canceled_reversal';
136 
137  const PAYMENTSTATUS_PROCESSED = 'processed';
138 
139  const PAYMENTSTATUS_VOIDED = 'voided';
140 
141  const PAYMENTSTATUS_REVIEW = 'paymentreview';
142 
146  const TXN_TYPE_ADJUSTMENT = 'adjustment';
147 
148  const TXN_TYPE_NEW_CASE = 'new_case';
149 
153  const PAYMENT_REASON_CODE_REFUND = 'refund';
154 
158  const ORDER_STATUS_REVERSED = 'paypal_reversed';
159 
163  const ORDER_STATUS_CANCELED_REVERSAL = 'paypal_canceled_reversal';
164 
170  protected $_paymentPublicMap = ['paypal_payer_email', self::BUYER_TAX_ID, self::BUYER_TAX_ID_TYPE];
171 
177  protected $_paymentMapFull = [];
178 
184  protected $_labelCodesCache = [];
185 
189  const PAYPAL_PAYER_ID = 'paypal_payer_id';
190 
194  const PAYPAL_PAYER_EMAIL = 'paypal_payer_email';
195 
199  const PAYPAL_PAYER_STATUS = 'paypal_payer_status';
200 
204  const PAYPAL_ADDRESS_ID = 'paypal_address_id';
205 
209  const PAYPAL_ADDRESS_STATUS = 'paypal_address_status';
210 
214  const PAYPAL_PROTECTION_ELIGIBILITY = 'paypal_protection_eligibility';
215 
219  const PAYPAL_FRAUD_FILTERS = 'paypal_fraud_filters';
220 
224  const PAYPAL_CORRELATION_ID = 'paypal_correlation_id';
225 
229  const PAYPAL_AVS_CODE = 'paypal_avs_code';
230 
234  const PAYPAL_CVV_2_MATCH = 'paypal_cvv_2_match';
235 
239  const ITEM_LABELS = 'item labels';
240 
244  const PAYPAL_AVSADDR = 'avsaddr';
245 
249  const PAYPAL_AVSZIP = 'avszip';
250 
254  const PAYPAL_IAVS = 'iavs';
255 
259  const PAYPAL_CVV2MATCH = 'cvv2match';
260 
268  public function getPaymentInfo(\Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly = false)
269  {
270  // collect paypal-specific info
271  $result = $this->_getFullInfo(array_values($this->_paymentMap), $payment, $labelValuesOnly);
272 
273  // add last_trans_id
274  $label = __('Last Transaction ID');
275  $value = $payment->getLastTransId();
276  if ($labelValuesOnly) {
277  $result[(string)$label] = $value;
278  } else {
279  $result['last_trans_id'] = ['label' => $label, 'value' => $value];
280  }
281 
282  return $result;
283  }
284 
292  public function getPublicPaymentInfo(\Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly = false)
293  {
294  return $this->_getFullInfo($this->_paymentPublicMap, $payment, $labelValuesOnly);
295  }
296 
304  public function importToPayment($from, \Magento\Payment\Model\InfoInterface $payment)
305  {
306  $fullMap = array_merge($this->_paymentMap, $this->_systemMap);
307  if (is_object($from)) {
308  $from = [$from, 'getDataUsingMethod'];
309  }
310  \Magento\Framework\DataObject\Mapper::accumulateByMap($from, [$payment, 'setAdditionalInformation'], $fullMap);
311  }
312 
321  public function &exportFromPayment(\Magento\Payment\Model\InfoInterface $payment, $to, array $map = null)
322  {
323  $fullMap = array_merge($this->_paymentMap, $this->_systemMap);
324  \Magento\Framework\DataObject\Mapper::accumulateByMap(
325  [$payment, 'getAdditionalInformation'],
326  $to,
327  $map ? $map : array_flip($fullMap)
328  );
329  return $to;
330  }
331 
339  {
340  $paymentStatus = $payment->getAdditionalInformation(self::PAYMENT_STATUS_GLOBAL);
341  if (self::PAYMENTSTATUS_PENDING === $paymentStatus) {
342  $pendingReason = $payment->getAdditionalInformation(self::PENDING_REASON_GLOBAL);
343  return !in_array($pendingReason, ['authorization', 'order']);
344  }
345  return false;
346  }
347 
355  {
357  $payment
358  ) && 1 == $payment->getAdditionalInformation(
359  self::IS_FRAUD_GLOBAL
360  );
361  }
362 
369  public static function isPaymentCompleted(\Magento\Payment\Model\InfoInterface $payment)
370  {
371  $paymentStatus = $payment->getAdditionalInformation(self::PAYMENT_STATUS_GLOBAL);
372  return self::PAYMENTSTATUS_COMPLETED === $paymentStatus;
373  }
374 
382  {
383  $paymentStatus = $payment->getAdditionalInformation(self::PAYMENT_STATUS_GLOBAL);
384  if (in_array(
385  $paymentStatus,
386  [
387  self::PAYMENTSTATUS_COMPLETED,
388  self::PAYMENTSTATUS_INPROGRESS,
389  self::PAYMENTSTATUS_REFUNDED,
390  self::PAYMENTSTATUS_REFUNDEDPART,
391  self::PAYMENTSTATUS_UNREVERSED,
392  self::PAYMENTSTATUS_PROCESSED
393  ]
394  )
395  ) {
396  return true;
397  }
398  $pendingReason = $payment->getAdditionalInformation(self::PENDING_REASON_GLOBAL);
399  return self::PAYMENTSTATUS_PENDING === $paymentStatus && in_array(
400  $pendingReason,
401  ['authorization', 'order']
402  );
403  }
404 
411  public static function isPaymentFailed(\Magento\Payment\Model\InfoInterface $payment)
412  {
413  $paymentStatus = $payment->getAdditionalInformation(self::PAYMENT_STATUS_GLOBAL);
414  return in_array(
415  $paymentStatus,
416  [
417  self::PAYMENTSTATUS_DENIED,
418  self::PAYMENTSTATUS_EXPIRED,
419  self::PAYMENTSTATUS_FAILED,
420  self::PAYMENTSTATUS_REVERSED,
421  self::PAYMENTSTATUS_VOIDED
422  ]
423  );
424  }
425 
435  public static function explainPendingReason($code)
436  {
437  switch ($code) {
438  case 'address':
439  return __('This customer didn\'t include a confirmed address.');
440  case 'authorization':
441  case 'order':
442  return __('The payment is authorized but not settled.');
443  case 'echeck':
444  return __('The payment eCheck is not cleared.');
445  case 'intl':
446  return __('The merchant holds a non-U.S. account and doesn\'t have a withdrawal mechanism.');
447  case 'multi-currency':
448  // break is intentionally omitted
449  case 'multi_currency':
450  // break is intentionally omitted
451  case 'multicurrency':
452  return __('The payment currency doesn\'t match any of the merchant\'s balances currency.');
453  case 'paymentreview':
454  return __('The payment is pending while it is being reviewed by PayPal for risk.');
455  case 'unilateral':
456  return __(
457  'The payment is pending because it was made to an email address that '
458  . 'is not yet registered or confirmed.'
459  );
460  case 'verify':
461  return __('The merchant account is not yet verified.');
462  case 'upgrade':
463  return __(
464  'The payment was made via credit card.'
465  . ' In order to receive funds merchant must upgrade account to Business or Premier status.'
466  );
467  case 'none':
468  // break is intentionally omitted
469  case 'other':
470  // break is intentionally omitted
471  default:
472  return __('Sorry, but something went wrong. Please contact PayPal customer service.');
473  }
474  }
475 
484  public static function explainReasonCode($code)
485  {
486  $comments = [
487  'chargeback' => __('A reversal has occurred on this transaction due to a chargeback by your customer.'),
488  'guarantee' => __(
489  'A reversal has occurred on this transaction due to your customer triggering a money-back guarantee.'
490  ),
491  'buyer-complaint' => __(
492  'A reversal has occurred on this transaction due to a'
493  . ' complaint about the transaction from your customer.'
494  ),
495  'buyer_complaint' => __(
496  'A reversal has occurred on this transaction due to a'
497  . ' complaint about the transaction from your customer.'
498  ),
499  'refund' => __(
500  'A reversal has occurred on this transaction because you have given the customer a refund.'
501  ),
502  'adjustment_reversal' => __('Reversal of an adjustment.'),
503  'admin_fraud_reversal' => __('Transaction reversal due to fraud detected by PayPal administrators.'),
504  'admin_reversal' => __('Transaction reversal by PayPal administrators.'),
505  'chargeback_reimbursement' => __('Reimbursement for a chargeback.'),
506  'chargeback_settlement' => __('Settlement of a chargeback.'),
507  'unauthorized_spoof' => __(
508  'A reversal has occurred on this transaction because of a'
509  . ' customer dispute suspecting unauthorized spoof.'
510  ),
511  'non_receipt' => __('Buyer claims that he did not receive goods or service.'),
512  'not_as_described' => __(
513  'Buyer claims that the goods or service received differ from'
514  . ' merchant’s description of the goods or service.'
515  ),
516  'unauthorized' => __('Buyer claims that he/she did not authorize transaction.'),
517  'adjustment_reimburse' => __('A case that has been resolved and close requires a reimbursement.'),
518  'duplicate' => __('Buyer claims that a possible duplicate payment was made to the merchant.'),
519  'merchandise' => __('Buyer claims that the received merchandise is unsatisfactory, defective, or damaged.'),
520  ];
521  return isset($comments[$code])
522  ? $comments[$code]
523  : __('Unknown reason. Please contact PayPal customer service.');
524  }
525 
532  public static function isReversalDisputable($code)
533  {
534  $listOfDisputeCodes = [
535  'none' => true,
536  'other' => true,
537  'chargeback' => true,
538  'buyer-complaint' => true,
539  'adjustment_reversal' => true,
540  'guarantee' => false,
541  'refund' => false,
542  'chargeback_reimbursement' => false,
543  'chargeback_settlement' => false,
544  ];
545  return isset($listOfDisputeCodes[$code]) ? $listOfDisputeCodes[$code] : false;
546  }
547 
556  protected function _getFullInfo(array $keys, \Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly)
557  {
558  $result = [];
559  foreach ($keys as $key) {
560  if (!isset($this->_paymentMapFull[$key])) {
561  $this->_paymentMapFull[$key] = [];
562  }
563  if (!isset($this->_paymentMapFull[$key]['label'])) {
564  if (!$payment->hasAdditionalInformation($key)) {
565  $this->_paymentMapFull[$key]['label'] = false;
566  $this->_paymentMapFull[$key]['value'] = false;
567  } else {
568  $value = $payment->getAdditionalInformation($key);
569  $this->_paymentMapFull[$key]['label'] = (string)$this->_getLabel($key);
570  $this->_paymentMapFull[$key]['value'] = $this->_getValue($value, $key);
571  }
572  }
573  if (!empty($this->_paymentMapFull[$key]['value'])) {
574  if ($labelValuesOnly) {
575  $value = $this->_paymentMapFull[$key]['value'];
576  $value = is_array($value) ? array_map('__', $value) : __($value);
577  $result[$this->_paymentMapFull[$key]['label']] = $value;
578  } else {
579  $result[$key] = $this->_paymentMapFull[$key];
580  }
581  }
582  }
583  return $result;
584  }
585 
592  protected function _getLabel($key)
593  {
594  if (!isset($this->_labelCodesCache[self::ITEM_LABELS])) {
595  $this->_labelCodesCache[self::ITEM_LABELS] = [
596  self::PAYPAL_PAYER_ID => __('Payer ID'),
597  self::PAYPAL_PAYER_EMAIL => __('Payer Email'),
598  self::PAYPAL_PAYER_STATUS => __('Payer Status'),
599  self::PAYPAL_ADDRESS_ID => __('Payer Address ID'),
600  self::PAYPAL_ADDRESS_STATUS => __('Payer Address Status'),
601  self::PAYPAL_PROTECTION_ELIGIBILITY => __('Merchant Protection Eligibility'),
602  self::PAYPAL_FRAUD_FILTERS => __('Triggered Fraud Filters'),
603  self::PAYPAL_CORRELATION_ID => __('Last Correlation ID'),
604  self::PAYPAL_AVS_CODE => __('Address Verification System Response'),
605  self::PAYPAL_CVV_2_MATCH => __('CVV2 Check Result by PayPal'),
606  self::PAYPAL_CVV2MATCH => __('CVV2 Check Result by PayPal'),
607  self::PAYPAL_AVSADDR => __('AVS Street Match'),
608  self::PAYPAL_AVSZIP => __('AVS zip'),
609  self::PAYPAL_IAVS => __('International AVS response'),
610  self::BUYER_TAX_ID => __('Buyer\'s Tax ID'),
611  self::BUYER_TAX_ID_TYPE => __('Buyer\'s Tax ID Type'),
612  ];
613  }
614  return isset($this->_labelCodesCache[self::ITEM_LABELS][$key])
615  ? $this->_labelCodesCache[self::ITEM_LABELS][$key]
616  : '';
617  }
618 
625  public static function getCaseTypeLabel($key)
626  {
627  $labels = [
628  'chargeback' => __('Chargeback'),
629  'complaint' => __('Complaint'),
630  'dispute' => __('Dispute'),
631  ];
632  $value = isset($labels[$key]) ? $labels[$key] : '';
633  return $value;
634  }
635 
644  protected function _getValue($value, $key)
645  {
646  $label = '';
647  $outputValue = implode(', ', (array) $value);
648  switch ($key) {
649  case self::PAYPAL_IAVS:
650  case self::PAYPAL_AVSZIP:
653  $label = $this->_getAvsLabel($outputValue);
654  break;
657  $label = $this->_getCvv2Label($outputValue);
658  break;
660  if (is_array($value)) {
661  return $value;
662  }
663  break;
665  $outputValue = $this->_getBuyerIdTypeValue($outputValue);
666  // fall-through intentional
667  default:
668  return $outputValue;
669  }
670  return sprintf('#%s%s', $outputValue, $outputValue == $label ? '' : ': ' . $label);
671  }
672 
680  protected function _getAvsLabel($value)
681  {
682  if (!isset($this->_labelCodesCache[self::PAYPAL_AVS_CODE])) {
683  $this->_labelCodesCache[self::PAYPAL_AVS_CODE] = [
684  'A' => __('Matched Address only (no ZIP)'), // Visa, MasterCard, Discover and American Express
685  'B' => __('Matched Address only (no ZIP) International'), // international "A"
686  'N' => __('No Details matched'),
687  'C' => __('No Details matched. International'), // international "N"
688  'X' => __('Exact Match.'),
689  'D' => __('Exact Match. Address and Postal Code. International'), // international "X"
690  'F' => __('Exact Match. Address and Postal Code. UK-specific'), // UK-specific "X"
691  'E' => __('N/A. Not allowed for MOTO (Internet/Phone) transactions'),
692  'G' => __('N/A. Global Unavailable'),
693  'I' => __('N/A. International Unavailable'),
694  'Z' => __('Matched five-digit ZIP only (no Address)'),
695  'P' => __('Matched Postal Code only (no Address)'), // international "Z"
696  'R' => __('N/A. Retry'),
697  'S' => __('N/A. Service not Supported'),
698  'U' => __('N/A. Unavailable'),
699  'W' => __('Matched whole nine-digit ZIP (no Address)'),
700  'Y' => __('Yes. Matched Address and five-digit ZIP'),
701  '0' => __('All the address information matched'), // Maestro and Solo
702  '1' => __('None of the address information matched'),
703  '2' => __('Part of the address information matched'),
704  '3' => __('N/A. The merchant did not provide AVS information'),
705  '4' => __('N/A. Address not checked, or acquirer had no response. Service not available'),
706  ];
707  }
708  return isset($this->_labelCodesCache[self::PAYPAL_AVS_CODE][$value])
709  ? $this->_labelCodesCache[self::PAYPAL_AVS_CODE][$value]
710  : $value;
711  }
712 
720  protected function _getCvv2Label($value)
721  {
722  if (!isset($this->_labelCodesCache[self::PAYPAL_CVV_2_MATCH])) {
723  $this->_labelCodesCache[self::PAYPAL_CVV_2_MATCH] = [
724  // Visa, MasterCard, Discover and American Express
725  'M' => __('Matched (CVV2CSC)'),
726  'N' => __('No match'),
727  'P' => __('N/A. Not processed'),
728  'S' => __('N/A. Service not supported'),
729  'U' => __('N/A. Service not available'),
730  'X' => __('N/A. No response'),
731  'Y' => __('Matched (CVV2CSC)'),
732  // Maestro and Solo
733  '0' => __('Matched (CVV2)'),
734  '1' => __('No match'),
735  '2' => __('N/A. The merchant has not implemented CVV2 code handling'),
736  '3' => __('N/A. Merchant has indicated that CVV2 is not present on card'),
737  '4' => __('N/A. Service not available'),
738  ];
739  }
740  return isset($this->_labelCodesCache[self::PAYPAL_CVV_2_MATCH][$value])
741  ? $this->_labelCodesCache[self::PAYPAL_CVV_2_MATCH][$value]
742  : $value;
743  }
744 
751  protected function _getBuyerIdTypeValue($code)
752  {
753  if (!isset($this->_labelCodesCache[self::BUYER_TAX_ID_TYPE])) {
754  $this->_labelCodesCache[self::BUYER_TAX_ID_TYPE] = [
755  self::BUYER_TAX_ID_TYPE_CNPJ => __('CNPJ'),
756  self::BUYER_TAX_ID_TYPE_CPF => __('CPF'),
757  ];
758  }
759  return isset($this->_labelCodesCache[self::BUYER_TAX_ID_TYPE][$code])
760  ? $this->_labelCodesCache[self::BUYER_TAX_ID_TYPE][$code]
761  : '';
762  }
763 }
const PAYMENTSTATUS_COMPLETED
Definition: Info.php:117
_getBuyerIdTypeValue($code)
Definition: Info.php:751
static isPaymentReviewRequired(\Magento\Payment\Model\InfoInterface $payment)
Definition: Info.php:338
static isPaymentCompleted(\Magento\Payment\Model\InfoInterface $payment)
Definition: Info.php:369
_getFullInfo(array $keys, \Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly)
Definition: Info.php:556
const PAYMENTSTATUS_PROCESSED
Definition: Info.php:137
importToPayment($from, \Magento\Payment\Model\InfoInterface $payment)
Definition: Info.php:304
__()
Definition: __.php:13
const ORDER_STATUS_CANCELED_REVERSAL
Definition: Info.php:163
static explainPendingReason($code)
Definition: Info.php:435
const PAYMENTSTATUS_INPROGRESS
Definition: Info.php:125
static isPaymentFailed(\Magento\Payment\Model\InfoInterface $payment)
Definition: Info.php:411
static isReversalDisputable($code)
Definition: Info.php:532
_getValue($value, $key)
Definition: Info.php:644
$payment
Definition: order.php:17
getPublicPaymentInfo(\Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly=false)
Definition: Info.php:292
$label
Definition: details.phtml:21
$value
Definition: gender.phtml:16
const PAYMENTSTATUS_UNREVERSED
Definition: Info.php:135
const PAYMENT_STATUS_GLOBAL
Definition: Info.php:62
static isPaymentSuccessful(\Magento\Payment\Model\InfoInterface $payment)
Definition: Info.php:381
const BUYER_TAX_ID_TYPE_CNPJ
Definition: Info.php:73
const PAYMENT_REASON_CODE_REFUND
Definition: Info.php:153
const PENDING_REASON_GLOBAL
Definition: Info.php:64
static explainReasonCode($code)
Definition: Info.php:484
const PAYMENTSTATUS_REFUNDEDPART
Definition: Info.php:131
const PAYMENTSTATUS_REFUNDED
Definition: Info.php:129
static isFraudReviewAllowed(\Magento\Payment\Model\InfoInterface $payment)
Definition: Info.php:354
getPaymentInfo(\Magento\Payment\Model\InfoInterface $payment, $labelValuesOnly=false)
Definition: Info.php:268
const BUYER_TAX_ID_TYPE_CPF
Definition: Info.php:71
const PAYMENTSTATUS_REVERSED
Definition: Info.php:133
const PAYPAL_PROTECTION_ELIGIBILITY
Definition: Info.php:214
static getCaseTypeLabel($key)
Definition: Info.php:625
$code
Definition: info.phtml:12
& exportFromPayment(\Magento\Payment\Model\InfoInterface $payment, $to, array $map=null)
Definition: Info.php:321