mirror of
https://github.com/valitydev/rbkmoney-cms-drupal-commerce.git
synced 2024-11-06 02:05:17 +00:00
ITS-15: added constant
This commit is contained in:
parent
ca54085fba
commit
305dc0a76b
@ -81,8 +81,9 @@ function commerce_rbkmoney_commerce_payment_method_info()
|
||||
'title' => t(COMPANY_NAME),
|
||||
// The description of the payment method. Optional.
|
||||
'description' => t('Payment via ' . COMPANY_NAME . ' payment system'),
|
||||
// Can the administrator add this payment method for
|
||||
// completed the order. Optional. Defaults to TRUE.
|
||||
// TRUE or FALSE indicating whether or not payments can be processed
|
||||
// via this payment method through the administrative payment
|
||||
// terminal on an order’s Payment tab Optional. Defaults to TRUE.
|
||||
'terminal' => FALSE,
|
||||
// Whether the buyer to leave the website for payment by this method.
|
||||
// Optional. Defaults to FALSE.
|
||||
@ -166,7 +167,7 @@ function commerce_rbkmoney_config()
|
||||
'#type' => 'textfield',
|
||||
'#title' => t('Common API URL'),
|
||||
'#default_value' => COMMON_API_URL,
|
||||
'#description' => t('Default: "!action"', ['!action' => url('http://capi.service.consul:8080/v1/')]),
|
||||
'#description' => t('Common API URL http://host:port/v1/'),
|
||||
'#required' => true,
|
||||
];
|
||||
|
||||
@ -382,7 +383,7 @@ function create_invoice($order)
|
||||
"module" => MODULE_NAME,
|
||||
"order_id" => $order->order_id,
|
||||
],
|
||||
'dueDate' => date("Y-m-d\TH:i:s\Z", strtotime("+1 days")),
|
||||
'dueDate' => date("Y-m-d\TH:i:s\Z", strtotime(CREATE_INVOICE_DUE_DATE)),
|
||||
'currency' => $currency_code,
|
||||
'product' => $order->order_id,
|
||||
'description' => "",
|
||||
|
@ -27,3 +27,5 @@ define('PATH_IMG_LOGO', BASE_PATH_MODULE . '/images/rbkmoney.png');
|
||||
define('PATH_IMG_LOGO_PAYMENT_FORM', BASE_URL . BASE_PATH_MODULE . '/images/logo_360.png');
|
||||
|
||||
define('DEFAULT_CURRENCY', 'RUB');
|
||||
|
||||
define('CREATE_INVOICE_DUE_DATE', '+1 days');
|
||||
|
Loading…
Reference in New Issue
Block a user