feat: add fiscalization settings, POST callbacks and fix callback issues
This commit is contained in:
@@ -44,6 +44,41 @@ $_['entry_error_order_status_label'] = 'Error';
|
||||
$_['entry_geo_zone_label'] = 'Area of display';
|
||||
$_['entry_sort_order_label'] = 'Sort Order';
|
||||
|
||||
$_['entry_test_mode_label'] = 'Test mode';
|
||||
$_['entry_fiscalization_label'] = 'Receipt fiscalization';
|
||||
$_['entry_receipt_email_label'] = 'Email for receipts';
|
||||
$_['entry_payment_method_label'] = 'Payment method';
|
||||
$_['entry_payment_object_label'] = 'Payment object';
|
||||
$_['entry_canceled_order_status_label'] = 'Canceled';
|
||||
$_['entry_callback_url_label'] = 'Notification URL';
|
||||
|
||||
$_['entry_payment_method_full_prepayment'] = 'Full prepayment';
|
||||
$_['entry_payment_method_prepayment'] = 'Partial prepayment';
|
||||
$_['entry_payment_method_advance'] = 'Advance';
|
||||
$_['entry_payment_method_full_payment'] = 'Full payment';
|
||||
$_['entry_payment_method_partial_payment'] = 'Partial payment and credit';
|
||||
$_['entry_payment_method_credit'] = 'Credit';
|
||||
$_['entry_payment_method_credit_payment'] = 'Credit payment';
|
||||
$_['entry_payment_object_commodity'] = 'Commodity';
|
||||
$_['entry_payment_object_excise'] = 'Excise commodity';
|
||||
$_['entry_payment_object_job'] = 'Job';
|
||||
$_['entry_payment_object_service'] = 'Service';
|
||||
$_['entry_payment_object_gambling_bet'] = 'Gambling bet';
|
||||
$_['entry_payment_object_gambling_prize'] = 'Gambling prize';
|
||||
$_['entry_payment_object_lottery'] = 'Lottery ticket';
|
||||
$_['entry_payment_object_lottery_prize'] = 'Lottery prize';
|
||||
$_['entry_payment_object_intellectual_activity'] = 'Intellectual activity';
|
||||
$_['entry_payment_object_payment'] = 'Payment (advance, deposit, prepayment, credit)';
|
||||
$_['entry_payment_object_agent_commission'] = 'Agent commission';
|
||||
$_['entry_payment_object_composite'] = 'Composite';
|
||||
$_['entry_payment_object_another'] = 'Another';
|
||||
$_['entry_payment_object_property_right'] = 'Property right';
|
||||
$_['entry_payment_object_sales_tax'] = 'Sales tax';
|
||||
$_['entry_payment_object_resort_fee'] = 'Resort fee';
|
||||
$_['entry_payment_object_award'] = 'Contribution, penalty, fine, reward, bonus';
|
||||
$_['entry_payment_object_non_operating'] = 'Non-operating income';
|
||||
$_['entry_payment_object_insurance_premium'] = 'Insurance premium';
|
||||
|
||||
// Help
|
||||
$_['help_pending_order_status'] = 'Specify the order status that is set when the order is created';
|
||||
$_['help_success_order_status'] = 'Specify the order status that is set upon successful payment';
|
||||
@@ -51,8 +86,24 @@ $_['help_error_order_status'] = 'Specify the order status that is set upon pay
|
||||
$_['help_geo_zone'] = 'Geographic area where the payment method will be displayed';
|
||||
$_['help_sort_order'] = 'Determines the display order of the payment method. The smaller the number, the higher the position in the list';
|
||||
|
||||
$_['help_test_mode'] = 'Simulates payments without charging. Must match the account setting in MONETA.RU';
|
||||
$_['help_fiscalization'] = 'Enable only if the kassa.payanyway.ru cash register service is connected to the account';
|
||||
$_['help_receipt_email'] = 'Required with fiscalization. Used in the receipt only when the customer has neither e-mail nor phone: the cash register does not accept a receipt without a contact, so it is sent to this address (the customer name stays in the receipt)';
|
||||
$_['help_canceled_order_status'] = 'Orders in these statuses are not paid: the module rejects the check request';
|
||||
$_['help_callback_url'] = 'Set this address as Check URL and Pay URL in the MONETA.RU account settings. It must be reachable from the internet';
|
||||
|
||||
// Button
|
||||
$_['button_integrity_code_toggle'] = 'Show or hide';
|
||||
$_['button_copy'] = 'Copy';
|
||||
$_['text_copied'] = 'Copied';
|
||||
|
||||
// Warning
|
||||
$_['warning_ocmod_router'] = 'The PayAnyWay router modification is not applied: Check URL and Pay URL notifications sent by POST will not reach the module. Click <a href="%s">Extensions → Modifications → Refresh</a> and check the modification log. Not needed if the account uses the GET method.';
|
||||
$_['warning_receipt_email'] = 'Receipt fiscalization is enabled but "Email for receipts" is empty: a customer without e-mail and phone will not get a receipt. Set the address below or disable fiscalization if no cash register service is connected.';
|
||||
|
||||
// Error
|
||||
$_['error_permission'] = 'Warning: You do not have permission to modify payment PayAnyWay!';
|
||||
$_['error_account'] = 'Account Number is required and must be greater than 0';
|
||||
$_['error_account'] = 'Account number is required and must contain digits only';
|
||||
$_['error_integrity_code'] = 'Account Integrity Code Required';
|
||||
$_['error_order_status'] = 'Select order status';
|
||||
$_['error_receipt_email'] = 'Enter a valid e-mail no longer than 64 characters';
|
||||
|
||||
@@ -17,7 +17,7 @@ $_['entry_integrity_code_label'] = 'Код проверки целостн
|
||||
$_['entry_integrity_code_description'] = 'Код проверки целостности данных, указанный в настройках расширенного счёта в системе MONETA.RU';
|
||||
$_['entry_server_label'] = 'Сервер платежей';
|
||||
$_['entry_server_prod_label'] = 'Боевой';
|
||||
$_['entry_server_demo_label'] = 'Тестовый';
|
||||
$_['entry_server_demo_label'] = 'Демо';
|
||||
|
||||
$_['entry_vat_rate_label'] = 'НДС';
|
||||
$_['entry_vat_none_label'] = 'Без НДС';
|
||||
@@ -44,6 +44,41 @@ $_['entry_error_order_status_label'] = 'Неуспешный';
|
||||
$_['entry_geo_zone_label'] = 'Регион отображения';
|
||||
$_['entry_sort_order_label'] = 'Порядок сортировки';
|
||||
|
||||
$_['entry_test_mode_label'] = 'Тестовый режим';
|
||||
$_['entry_fiscalization_label'] = 'Фискализация чеков';
|
||||
$_['entry_receipt_email_label'] = 'Email для чеков';
|
||||
$_['entry_payment_method_label'] = 'Признак способа расчёта';
|
||||
$_['entry_payment_object_label'] = 'Признак предмета расчёта';
|
||||
$_['entry_canceled_order_status_label'] = 'Отменённые';
|
||||
$_['entry_callback_url_label'] = 'URL для уведомлений';
|
||||
|
||||
$_['entry_payment_method_full_prepayment'] = 'Полная предоплата';
|
||||
$_['entry_payment_method_prepayment'] = 'Частичная предоплата';
|
||||
$_['entry_payment_method_advance'] = 'Аванс';
|
||||
$_['entry_payment_method_full_payment'] = 'Полный расчёт';
|
||||
$_['entry_payment_method_partial_payment'] = 'Частичный расчёт и кредит';
|
||||
$_['entry_payment_method_credit'] = 'Передача в кредит';
|
||||
$_['entry_payment_method_credit_payment'] = 'Оплата кредита';
|
||||
$_['entry_payment_object_commodity'] = 'Товар';
|
||||
$_['entry_payment_object_excise'] = 'Подакцизный товар';
|
||||
$_['entry_payment_object_job'] = 'Работа';
|
||||
$_['entry_payment_object_service'] = 'Услуга';
|
||||
$_['entry_payment_object_gambling_bet'] = 'Ставка азартной игры';
|
||||
$_['entry_payment_object_gambling_prize'] = 'Выигрыш азартной игры';
|
||||
$_['entry_payment_object_lottery'] = 'Лотерейный билет';
|
||||
$_['entry_payment_object_lottery_prize'] = 'Выигрыш лотереи';
|
||||
$_['entry_payment_object_intellectual_activity'] = 'Результаты интеллектуальной деятельности';
|
||||
$_['entry_payment_object_payment'] = 'Платёж (аванс, задаток, предоплата, кредит)';
|
||||
$_['entry_payment_object_agent_commission'] = 'Агентское вознаграждение';
|
||||
$_['entry_payment_object_composite'] = 'Составной предмет расчёта';
|
||||
$_['entry_payment_object_another'] = 'Иной предмет расчёта';
|
||||
$_['entry_payment_object_property_right'] = 'Имущественное право';
|
||||
$_['entry_payment_object_sales_tax'] = 'Торговый сбор';
|
||||
$_['entry_payment_object_resort_fee'] = 'Курортный сбор';
|
||||
$_['entry_payment_object_award'] = 'Взнос в счёт оплаты, пени, штраф, вознаграждение, бонус';
|
||||
$_['entry_payment_object_non_operating'] = 'Внереализационный доход';
|
||||
$_['entry_payment_object_insurance_premium'] = 'Страховой сбор';
|
||||
|
||||
// Help
|
||||
$_['help_pending_order_status'] = 'Укажите статус заказа, который выставляется при его создании';
|
||||
$_['help_success_order_status'] = 'Укажите статус заказа, который выставляется при успешной оплате';
|
||||
@@ -51,8 +86,24 @@ $_['help_error_order_status'] = 'Укажите статус заказа, к
|
||||
$_['help_geo_zone'] = 'Географическая зона, в которой будет отображаться способ оплаты';
|
||||
$_['help_sort_order'] = 'Определяет порядок отображения платежного метода в списке методов оплаты при оформлении заказа. Чем меньше число, тем выше позиция в списке';
|
||||
|
||||
$_['help_test_mode'] = 'Имитация оплаты без реального списания средств. Режим должен совпадать с настройкой счёта в MONETA.RU';
|
||||
$_['help_fiscalization'] = 'Включайте, только если к счёту подключён кассовый сервис kassa.payanyway.ru';
|
||||
$_['help_receipt_email'] = 'Обязателен при фискализации. Подставляется в чек, только если у покупателя нет ни e-mail, ни телефона: без контакта касса чек не примет, поэтому он уйдёт на этот адрес (ФИО покупателя в чеке остаётся)';
|
||||
$_['help_canceled_order_status'] = 'Заказ в этих статусах не оплачивается: на проверочный запрос модуль отвечает отказом';
|
||||
$_['help_callback_url'] = 'Укажите этот адрес в настройках счёта MONETA.RU как Check URL и Pay URL. Он должен быть доступен из интернета';
|
||||
|
||||
// Button
|
||||
$_['button_integrity_code_toggle'] = 'Показать или скрыть';
|
||||
$_['button_copy'] = 'Скопировать';
|
||||
$_['text_copied'] = 'Скопировано';
|
||||
|
||||
// Warning
|
||||
$_['warning_ocmod_router'] = 'Модификация PayAnyWay для роутера не применена: уведомления Check URL и Pay URL методом POST не дойдут до модуля. Нажмите <a href="%s">Расширения → Модификации → Обновить</a> и проверьте лог модификаций. При методе GET в настройках счёта модификация не нужна.';
|
||||
$_['warning_receipt_email'] = 'Фискализация чеков включена, а «Email для чеков» не задан: покупателю без e-mail и телефона чек не будет пробит. Укажите адрес в настройках ниже или выключите фискализацию, если кассовый сервис не подключён.';
|
||||
|
||||
// Error
|
||||
$_['error_permission'] = 'Недостаточно прав для изменения настроек способа оплаты PayAnyWay';
|
||||
$_['error_account'] = 'Номер счёта обязателен';
|
||||
$_['error_account'] = 'Номер счёта обязателен и состоит только из цифр';
|
||||
$_['error_integrity_code'] = 'Код проверки целостности данных обязателен';
|
||||
$_['error_order_status'] = 'Выберите статус заказа';
|
||||
$_['error_receipt_email'] = 'Укажите корректный e-mail не длиннее 64 символов';
|
||||
|
||||
Reference in New Issue
Block a user