feat: add fiscalization settings, POST callbacks and fix callback issues

This commit is contained in:
2026-10-21 11:41:23 +03:00
committed by Git Moneta
parent d1ac3d989b
commit 6598b95bb8
9 changed files with 1103 additions and 210 deletions
@@ -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';