11 use Magento\Payment\Helper\Formatter;
89 parent::__construct(
$data);
100 if (!empty($this->_data)) {
104 foreach ($this->_data as $key =>
$value) {
105 if (in_array($key, $this->notButtonVars)) {
108 $varKey = sprintf($this->buttonVarFormat,
$i);
170 if ($this->taxData->getConfig()->priceIncludesTax()) {
171 return $this->getTaxableAmount(
$order);
173 return $this->getNonTaxableAmount(
$order);
185 $subtotal =
$order->getBaseSubtotal() ? :
$order->getPayment()->getBaseAmountAuthorized();
188 'subtotal' => $this->formatPrice($subtotal),
189 'total' => $this->formatPrice(
$order->getPayment()->getBaseAmountAuthorized()),
190 'tax' => $this->formatPrice(
$order->getBaseTaxAmount()),
191 'shipping' => $this->formatPrice(
$order->getBaseShippingAmount()),
192 'discount' => $this->formatPrice(abs(
$order->getBaseDiscountAmount()))
203 $amount = $this->formatPrice(
$order->getPayment()->getBaseAmountAuthorized());
220 'paymentaction' => strtolower(
$paymentMethod->getConfigData(
'payment_action')),
224 'lc' => \Locale::getRegion($this->localeResolver->getLocale()),
225 'template' =>
'mobile-iframe',
226 'showBillingAddress' =>
'false',
227 'showShippingAddress' =>
'true',
228 'showBillingEmail' =>
'false',
229 'showBillingPhone' =>
'false',
230 'showCustomerName' =>
'false',
231 'showCardInfo' =>
'true',
232 'showHostedThankyouPage' =>
'false',
247 'invoice' =>
$order->getIncrementId(),
248 'address_override' =>
'true',
249 'currency_code' =>
$order->getBaseCurrencyCode(),
250 'buyer_email' =>
$order->getCustomerEmail(),
314 $data = $this->customerAddress->convertStreetLines(
$address->getStreet(), 2);
315 if (!empty(
$data[0])) {
318 if (!empty(
$data[1])) {
321 return [$street1, $street2];
getAddress(DataObject $address, $type='')
__construct(Resolver $localeResolver, Address $customerAddress, Data $taxData, array $data=[])
getOrderData(Order $order)
getRegion(DataObject $address)
getAddressStreets(DataObject $address)
setPaymentMethod($paymentMethod)
getAmountData(Order $order)
getPaymentData(Hostedpro $paymentMethod)