Payment/ConfigProvider.php
protected function config() {
		$s = $this->s(); /** @var S $s */
		$currency = $this->currency(); /** @var Currency $currency */
		$currencyC = $currency->iso3(); /** @var string $currencyC */
		return [
			/**
			 * 2017-11-05
			 * @todo «Passing `amountF` to the client side is incorrect,
			 * because a payment's amount could be changed client-side
			 * (e.g., after a discount code application)»
			 * https://github.com/mage2pro/core/issues/45
			 */
			'amountF' => $this->m()->amountFormat($this->amount())
			,'requireBillingAddress' => $s->requireBillingAddress()
			,'isTest' => $s->test()
			// 2017-02-07
			// https://github.com/mage2pro/core/blob/1.12.7/Payment/view/frontend/web/mixin.js?ts=4#L249-L258
			,'paymentCurrency' => [
				// 2016-09-06
				// Код платёжной валюты.
				// Это значение индивидуально для каждого платёжного модуля.
				// 2017-02-07
				// https://github.com/mage2pro/2checkout/blob/1.1.18/view/frontend/web/main.js?ts=4#L23
				// https://github.com/mage2pro/paymill/blob/0.1.2/view/frontend/web/main.js?ts=4#L46
				'code' => $currencyC
				// 2016-09-06
				// Правила форматирования платёжной валюты.
				// How to get the display format for a particular currency and locale programmatically?
				// https://mage2.pro/t/2022
				// 2017-02-07
				// https://github.com/mage2pro/core/blob/1.12.9/Payment/view/frontend/web/mixin.js?ts=4#L205
				,'format' => df_locale_f()->getPriceFormat($locale = null, $currencyC)
				// 2017-02-07
				// https://github.com/checkout/checkout-magento2-plugin/blob/1.1.21/view/frontend/web/main.js?ts=4#L27
				// https://github.com/mage2pro/2checkout/blob/1.1.18/view/frontend/web/main.js?ts=4#L26
				// https://github.com/mage2pro/securepay/blob/1.1.19/view/frontend/web/main.js?ts=4#L37
				// https://github.com/mage2pro/securepay/blob/1.1.19/view/frontend/web/main.js?ts=4#L51
				,'name' => df_currency_name($currencyC)
				// 2016-09-06
				// Курс обмена учётной валюты на платёжную.
				// Это значение индивидуально для каждого платёжного модуля.
				// 2017-02-07
				// https://github.com/mage2pro/core/blob/1.12.7/Payment/view/frontend/web/mixin.js?ts=4#L60
				,'rate' => $currency->rateToPayment()
			]
			,'titleBackend' => $this->m()->titleB()
		]
	;}
protected function config() {
		$s = $this->s(); /** @var S $s */
		$currency = $this->currency(); /** @var Currency $currency */
		$currencyC = $currency->iso3(); /** @var string $currencyC */
		return [
			/**
			 * 2017-11-05
			 * @todo «Passing `amountF` to the client side is incorrect,
			 * because a payment's amount could be changed client-side
			 * (e.g., after a discount code application)»
			 * https://github.com/mage2pro/core/issues/45
			 */
			'amountF' => $this->m()->amountFormat($this->amount())
			,'requireBillingAddress' => $s->requireBillingAddress()
			,'isTest' => $s->test()
			// 2017-02-07
			// https://github.com/mage2pro/core/blob/1.12.7/Payment/view/frontend/web/mixin.js?ts=4#L249-L258
			,'paymentCurrency' => [
				// 2016-09-06
				// Код платёжной валюты.
				// Это значение индивидуально для каждого платёжного модуля.
				// 2017-02-07
				// https://github.com/mage2pro/2checkout/blob/1.1.18/view/frontend/web/main.js?ts=4#L23
				// https://github.com/mage2pro/paymill/blob/0.1.2/view/frontend/web/main.js?ts=4#L46
				'code' => $currencyC
				// 2016-09-06
				// Правила форматирования платёжной валюты.
				// How to get the display format for a particular currency and locale programmatically?
				// https://mage2.pro/t/2022
				// 2017-02-07
				// https://github.com/mage2pro/core/blob/1.12.9/Payment/view/frontend/web/mixin.js?ts=4#L205
				,'format' => df_locale_f()->getPriceFormat($locale = null, $currencyC)
				// 2017-02-07
				// https://github.com/checkout/checkout-magento2-plugin/blob/1.1.21/view/frontend/web/main.js?ts=4#L27
				// https://github.com/mage2pro/2checkout/blob/1.1.18/view/frontend/web/main.js?ts=4#L26
				// https://github.com/mage2pro/securepay/blob/1.1.19/view/frontend/web/main.js?ts=4#L37
				// https://github.com/mage2pro/securepay/blob/1.1.19/view/frontend/web/main.js?ts=4#L51
				,'name' => df_currency_name($currencyC)
				// 2016-09-06
				// Курс обмена учётной валюты на платёжную.
				// Это значение индивидуально для каждого платёжного модуля.
				// 2017-02-07
				// https://github.com/mage2pro/core/blob/1.12.7/Payment/view/frontend/web/mixin.js?ts=4#L60
				,'rate' => $currency->rateToPayment()
			]
			,'titleBackend' => $this->m()->titleB()
		]
	;}
protected function config ( ) { $ s = $ this -> s ( ) ; /** @var S $s */ $ currency = $ this -> currency ( ) ; /** @var Currency $currency */ $ currencyC = $ currency -> iso3 ( ) ; /** @var string $currencyC */ return [ /**
			 * 2017-11-05
			 * @todo «Passing `amountF` to the client side is incorrect,
			 * because a payment's amount could be changed client-side
			 * (e.g., after a discount code application)»
			 * https://github.com/mage2pro/core/issues/45
			 */ 'amountF' => $ this -> m ( ) -> amountFormat ( $ this -> amount ( ) ) , 'requireBillingAddress' => $ s -> requireBillingAddress ( ) , 'isTest' => $ s -> test ( ) // 2017-02-07 // https://github.com/mage2pro/core/blob/1.12.7/Payment/view/frontend/web/mixin.js?ts=4#L249-L258 , 'paymentCurrency' => [ // 2016-09-06 // Код платёжной валюты. // Это значение индивидуально для каждого платёжного модуля. // 2017-02-07 // https://github.com/mage2pro/2checkout/blob/1.1.18/view/frontend/web/main.js?ts=4#L23 // https://github.com/mage2pro/paymill/blob/0.1.2/view/frontend/web/main.js?ts=4#L46 'code' => $ currencyC // 2016-09-06 // Правила форматирования платёжной валюты. // How to get the display format for a particular currency and locale programmatically? // https://mage2.pro/t/2022 // 2017-02-07 // https://github.com/mage2pro/core/blob/1.12.9/Payment/view/frontend/web/mixin.js?ts=4#L205 , 'format' => df_locale_f ( ) -> getPriceFormat ( $ locale = null , $ currencyC ) // 2017-02-07 // https://github.com/checkout/checkout-magento2-plugin/blob/1.1.21/view/frontend/web/main.js?ts=4#L27 // https://github.com/mage2pro/2checkout/blob/1.1.18/view/frontend/web/main.js?ts=4#L26 // https://github.com/mage2pro/securepay/blob/1.1.19/view/frontend/web/main.js?ts=4#L37 // https://github.com/mage2pro/securepay/blob/1.1.19/view/frontend/web/main.js?ts=4#L51 , 'name' => df_currency_name ( $ currencyC ) // 2016-09-06 // Курс обмена учётной валюты на платёжную. // Это значение индивидуально для каждого платёжного модуля. // 2017-02-07 // https://github.com/mage2pro/core/blob/1.12.7/Payment/view/frontend/web/mixin.js?ts=4#L60 , 'rate' => $ currency -> rateToPayment ( ) ] , 'titleBackend' => $ this -> m ( ) -> titleB ( ) ] ; }
2016-08-04
@used-by \Df\Payment\ConfigProvider::getConfig()
@see \Df\Payment\ConfigProvider\BankCard::config()
@see \Dfe\AllPay\ConfigProvider::config()
@see \Dfe\AlphaCommerceHub\ConfigProvider::config()
@see \Dfe\IPay88\ConfigProvider::config()
@see \Dfe\Robokassa\ConfigProvider::config()
@see \Dfe\TBCBank\ConfigProvider::config()
@see \Dfe\YandexKassa\ConfigProvider::config()
@return array(string => mixed)
2016 - 08 - 04