first commit
This commit is contained in:
20
plugins/stPayByNetPlugin/config/config.php
Normal file
20
plugins/stPayByNetPlugin/config/config.php
Normal 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');
|
||||
}
|
||||
22
plugins/stPayByNetPlugin/config/schema.yml
Normal file
22
plugins/stPayByNetPlugin/config/schema.yml
Normal 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
|
||||
Reference in New Issue
Block a user