How To Create A Payment Module
Titulek
No changesPermalink
No changesObsah
Old | New | ||
---|---|---|---|
15 | public $description = 'Lorem ipsum dolor'; | 15 | public $description = 'Lorem ipsum dolor'; |
16 | public $author = 'ACME Corp.'; | 16 | public $author = 'ACME Corp.'; |
17 | public $version = '1.0'; | 17 | public $version = '1.0'; |
18 | |||
19 | public $website = 'https://www.litecart.net'; | 18 | public $website = 'https://www.litecart.net'; |
20 | public $priority = 1; | 19 | public $priority = 1; |
21 | 20 | ||
152 | return [ | 151 | return [ |
153 | [ | 152 | [ |
154 | 'key' => 'status', | 153 | 'key' => 'status', |
155 | |||
156 | 'default_value' => '0', | 154 | 'default_value' => '0', |
157 | 'title' => 'Status', | 155 | 'title' => 'Status', |
158 | 'description' => 'Enables or disables the module.', | 156 | 'description' => 'Enables or disables the module.', |
160 | ], | 158 | ], |
161 | [ | 159 | [ |
162 | 'key' => 'icon', | 160 | 'key' => 'icon', |
163 | |||
164 | 'default_value' => 'images/payment/paymentlogo.png', | 161 | 'default_value' => 'images/payment/paymentlogo.png', |
165 | 'title' => 'Icon', | 162 | 'title' => 'Icon', |
166 | 'description' => 'Web path of the icon to be displayed.', | 163 | 'description' => 'Web path of the icon to be displayed.', |
168 | ], | 165 | ], |
169 | [ | 166 | [ |
170 | 'key' => 'order_status_id', | 167 | 'key' => 'order_status_id', |
171 | |||
172 | 'default_value' => '0', | 168 | 'default_value' => '0', |
173 | 'title' => 'Order Status:', | 169 | 'title' => 'Order Status:', |
174 | 'description' => 'Give successful orders made with this payment module the following order status.', | 170 | 'description' => 'Give successful orders made with this payment module the following order status.', |
176 | ], | 172 | ], |
177 | [ | 173 | [ |
178 | 'key' => 'priority', | 174 | 'key' => 'priority', |
179 | |||
180 | 'default_value' => '0', | 175 | 'default_value' => '0', |
181 | 'title' => 'Priority', | 176 | 'title' => 'Priority', |
182 | 'description' => 'Process this module in the given priority order.', | 177 | 'description' => 'Process this module in the given priority order.', |
Edited by tim on 19 bře 2025 at 23:36