*/ /** * Dodawania routingów */ stPluginHelper::addRouting('stPayment', '/payment/:action/*', 'stPayment', 'index', 'frontend'); stPluginHelper::addRouting('stPaymentPay', '/payment/pay/:id/:hash_code', 'stPayment', 'pay', 'frontend'); stPluginHelper::addRouting('stPaymentStatusNotification', '/payment/notification/:type/:order_id/:order_hash/:security_token', 'stPayment', 'statusNotification', 'frontend'); stPluginHelper::addRouting('stPaymentReturn', '/payment/return/:type/:order_id/:order_hash', 'stPayment', 'return', 'frontend'); stPluginHelper::addRouting('stPaymentFailure', '/payment/failure/:type/:order_id/:order_hash', 'stPayment', 'failure', 'frontend'); stNotificationConfiguration::addGroup('stPayment'); /** * Dodawanie zapisywania płatności */ $dispatcher->connect('stOrderActions.postExecuteSave', array('stPaymentListener', 'saveOrder'));