Answer the question
In order to leave comments, you need to log in
How to set up automatic order status change in minishop when paying?
Website created on ModX Revo. The site must provide a paid subscription to its closed sections.
The following components are connected:
Answer the question
In order to leave comments, you need to log in
Notification by the system should be about successful payment, usually such a file comes with the payment module for modx, in your case mspYaCassa.
Look in /core/components/minishop2/custom/payment/*
And so you need to extend the mspaymenthandler.class.php class, in which the receive() method should contain code like
switch ($params['Status']) {
case 'CONFIRMED':
$this->changeOrderStatus($order, 2);
break;
case 'REJECTED':
$this->changeOrderStatus($order, 4);
break;
default:
break;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question