示例#1
0
文件: Charge.php 项目: mage2pro/core
 /**
  * 2016-08-27
  * @param string $path
  * @return string
  */
 private function route($path)
 {
     return df_cc_path(df_route($this), $path);
 }
示例#2
0
 /**
  * 2016-08-04
  * @used-by \Df\Payment\ConfigProvider::getConfig()
  * @return array(string => mixed)
  */
 protected function config()
 {
     return ['askForBillingAddress' => $this->s()->askForBillingAddress(), 'isTest' => $this->s()->test(), 'paymentCurrency' => ['code' => $this->s()->currencyC(), 'format' => df_locale_f()->getPriceFormat($locale = null, $this->s()->currencyC()), 'name' => $this->s()->currencyN(), 'rate' => $this->s()->cRateToPayment()], 'route' => df_route($this), 'titleBackend' => dfp_method_call_s($this, 'titleBackendS')];
 }
示例#3
0
文件: Js.php 项目: mage2pro/core
 /**
  * 2016-11-28
  * @override
  * @see \Df\Sso\Button::attributes()
  * @used-by \Df\Sso\Button::loggedOut()
  * @see \Dfe\FacebookLogin\Button::attributes()
  * @return array(string => string)
  */
 protected function attributes()
 {
     return df_x_magento_init_att($this, 'button', $this->jsOptions() + ['redirect' => $this->getUrl(df_route($this), df_clean(['_secure' => $this->redirectShouldBeSecure()], false)), 'type' => $this->s()->type()]) + parent::attributes();
 }