Exemplo n.º 1
0
 /**
  * 2016-08-20
  * @override
  * @see ObserverInterface::execute()
  * @used-by \Magento\Framework\Event\Invoker\InvokerDefault::_callObserverMethod()
  * @param O $o
  * @return void
  */
 public function execute(O $o)
 {
     /** @var Transaction $t */
     $t = $o['data_object'];
     /** @var IMethod|Method $m */
     $m = dfp_method_by_trans($t);
     if (dfp_method_is_my($m)) {
         /** @used-by \Magento\Sales\Model\Order\Payment\Transaction::getHtmlTxnId() */
         $t['html_txn_id'] = $m->formatTransactionId($t);
     }
 }
Exemplo n.º 2
0
/**
 * 2016-08-19
 * @see df_trans_is_my()
 * @param II|OP|QP $payment
 * @return bool
 */
function dfp_is_my(II $payment)
{
    return dfp_method_is_my($payment->getMethodInstance());
}