first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
<?php
stPluginHelper::addConfigValue('stPaymentType', 'stPayByNetPlugin', array('name' => 'stPayByNet', 'description' => 'Płatność przez serwis PayByNet'));
if (SF_APP == 'backend') {
stPluginHelper::addEnableModule('stPayByNetBackend', 'backend');
stPluginHelper::addRouting('stPayByNetPlugin', '/paybynet', 'stPayByNetBackend', 'index', 'backend');
stConfiguration::addModule('stPayByNetPlugin', 'group_3', 1);
}
if (SF_APP == 'frontend') {
stPluginHelper::addEnableModule('stPayByNetFrontend', 'frontend');
stPluginHelper::addRouting('stPayByNetPlugin', '/paybynet/:action/*', 'stPayByNetFrontend', 'index', 'frontend');
stSocketView::addComponent('stPayment_show_stPayByNet_info', 'stPayByNetFrontend', 'showPaymentType');
stSocketView::addComponent('under_basket_socket', 'stPayByNetFrontend', 'paymentTypeHidden');
$dispatcher->connect('stOrderActions.postExecuteSave', array('stPayByNetListener', 'postExecuteOrderSave'));
stSecurity::addCSPException('*.paybynet.com.pl');
}

View File

@@ -0,0 +1,22 @@
---
propel:
_attributes:
defaultIdMethod: native
package: plugins.stPayByNetPlugin.lib.model
st_paybynet_has_order:
_attributes:
phpName: PaybynetHasOrder
created_at:
type: timestamp
updated_at:
type: timestamp
order_id:
type: INTEGER
primaryKey: true
required: true
foreignTable: st_order
foreignReference: id
onDelete: cascade
payment_type:
type: VARCHAR
size: 255