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