Form.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Paypal\Block\Bml;
  7. use Magento\Paypal\Block\Express;
  8. use Magento\Paypal\Model\Config;
  9. class Form extends Express\Form
  10. {
  11. /**
  12. * Payment method code
  13. * @var string
  14. */
  15. protected $_methodCode = Config::METHOD_WPP_BML;
  16. /**
  17. * Set template and redirect message
  18. *
  19. * @return void
  20. */
  21. protected function _construct()
  22. {
  23. $this->_config = $this->_paypalConfigFactory->create()->setMethod($this->getMethodCode());
  24. /** @var $mark \Magento\Framework\View\Element\Template */
  25. $mark = $this->_getMarkTemplate();
  26. $mark->setPaymentAcceptanceMarkHref(
  27. 'https://www.securecheckout.billmelater.com/paycapture-content/'
  28. . 'fetch?hash=AU826TU8&content=/bmlweb/ppwpsiw.html'
  29. )->setPaymentAcceptanceMarkSrc(
  30. 'https://www.paypalobjects.com/webstatic/en_US/i/buttons/ppc-acceptance-medium.png'
  31. )->setPaymentWhatIs(__('See terms'));
  32. $this->_initializeRedirectTemplateWithMark($mark);
  33. }
  34. }