107 \
Magento\Framework\Module\ModuleListInterface $moduleList,
108 \
Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
109 \
Magento\Paypal\Model\ProFactory $proFactory,
113 \
Magento\Paypal\Model\CartFactory $cartFactory,
124 $customAttributeFactory,
160 return $this->_pro->getConfig()->getMerchantCountry();
180 public function initialize($paymentAction, $stateObject)
182 switch ($paymentAction) {
185 $payment = $this->getInfoInstance();
188 $order->setCanSendNewEmailFlag(
false);
196 $stateObject->setIsNotified(
false);
243 $api = $this->_pro->getApi();
259 $request = $this->hostedproRequestFactory->create()->setData(
261 'METHOD' => self::BM_BUTTON_METHOD,
262 'BUTTONCODE' => self::BM_BUTTON_CODE,
263 'BUTTONTYPE' => self::BM_BUTTON_TYPE,
313 return $this->_urlBuilder->getUrl(
315 [
"_secure" => $secure ===
null ?
$store->isCurrentlySecure() : $secure]
__construct(\Magento\Framework\Model\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Api\ExtensionAttributesFactory $extensionFactory, \Magento\Framework\Api\AttributeValueFactory $customAttributeFactory, \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Payment\Model\Method\Logger $logger, \Magento\Framework\Module\ModuleListInterface $moduleList, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Paypal\Model\ProFactory $proFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\UrlInterface $urlBuilder, \Magento\Framework\App\RequestInterface $requestHttp, \Magento\Paypal\Model\CartFactory $cartFactory, \Magento\Paypal\Model\Hostedpro\RequestFactory $hostedproRequestFactory, \Magento\Framework\Model\ResourceModel\AbstractResource $resource=null, \Magento\Framework\Data\Collection\AbstractDb $resourceCollection=null, array $data=[])
buildFormUrlRequest(InfoInterface $payment)
setAdditionalInformation($key, $value=null)
getUrl($path, $storeId, $secure=null)
setPaymentFormUrl(InfoInterface $payment)
const PAYMENT_ACTION_AUTH
const STATE_PENDING_PAYMENT
getReturnUrl($storeId=null)
const PAYMENT_ACTION_SALE
sendFormUrlRequest(Request $request)
getNotifyUrl($storeId=null)
getCancelUrl($storeId=null)