Esempio n. 1
0
 /**
  * Get peymet request data as array
  *
  * @param \Magento\Paypal\Model\Hostedpro $paymentMethod
  * @return array
  */
 protected function _getPaymentData(\Magento\Paypal\Model\Hostedpro $paymentMethod)
 {
     $request = array('paymentaction' => strtolower($paymentMethod->getConfigData('payment_action')), 'notify_url' => $paymentMethod->getNotifyUrl(), 'cancel_return' => $paymentMethod->getCancelUrl(), 'return' => $paymentMethod->getReturnUrl(), 'lc' => $paymentMethod->getMerchantCountry(), 'template' => 'templateD', 'showBillingAddress' => 'false', 'showShippingAddress' => 'true', 'showBillingEmail' => 'false', 'showBillingPhone' => 'false', 'showCustomerName' => 'false', 'showCardInfo' => 'true', 'showHostedThankyouPage' => 'false');
     return $request;
 }
Esempio n. 2
0
 /**
  * Get payment request data as array
  *
  * @param \Magento\Paypal\Model\Hostedpro $paymentMethod
  * @return array
  */
 protected function _getPaymentData(\Magento\Paypal\Model\Hostedpro $paymentMethod)
 {
     $request = ['paymentaction' => strtolower($paymentMethod->getConfigData('payment_action')), 'notify_url' => $paymentMethod->getNotifyUrl(), 'cancel_return' => $paymentMethod->getCancelUrl(), 'return' => $paymentMethod->getReturnUrl(), 'lc' => \Locale::getRegion($this->localeResolver->getLocale()), 'template' => 'mobile-iframe', 'showBillingAddress' => 'false', 'showShippingAddress' => 'true', 'showBillingEmail' => 'false', 'showBillingPhone' => 'false', 'showCustomerName' => 'false', 'showCardInfo' => 'true', 'showHostedThankyouPage' => 'false'];
     return $request;
 }