BBSNetAxept_Norway - Version 1.5.5

Version Notes

This extension uses the BBS Netaxept API.

Download this release

Release Info

Developer Magento Core Team
Extension BBSNetAxept_Norway
Version 1.5.5
Comparing to
See all releases


Code changes from version 1.5.3 to 1.5.5

app/code/community/Trollweb/BBSNetAxept/Model/Api/Bbs.php CHANGED
@@ -280,6 +280,38 @@ object(stdClass)[850]
280
  return $result;
281
  }
282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  public function Result() {
284
  if (!is_object($this->_result)) {
285
  $this->_result = new Trollweb_BBSNetAxept_Model_BBSNetterminal_Result;
280
  return $result;
281
  }
282
 
283
+ /**
284
+ * Check BBS Transaction
285
+ *
286
+ * @param String $TransactionId
287
+ * @return Trollweb_BBSNetAxept_Model_BBSNetterminal_Result
288
+ */
289
+ public function checkStatus($TransactionId) {
290
+
291
+ $result = false;
292
+ $bbsClient = new Trollweb_BBSNetAxept_Model_Api_SoapClient($this->getQueryWsdlUrl());
293
+ $params = array(
294
+ "merchantId" => $this->getMerchantId(),
295
+ "token" => $this->getMerchantToken(),
296
+ "transactionId" => trim($TransactionId),
297
+ );
298
+
299
+ try {
300
+ $soapResult = $bbsClient->Query($params);
301
+ if (is_object($soapResult->QueryResult)) {
302
+ $result = $soapResult->QueryResult->Summary->Authorized;
303
+ }
304
+ }
305
+ catch (Exception $e) {
306
+ $this->setError(true);
307
+ $this->setErrorMessage($e->faultstring);
308
+ $this->setErrorCode(99);
309
+ $result = false;
310
+ }
311
+
312
+ return $result;
313
+ }
314
+
315
  public function Result() {
316
  if (!is_object($this->_result)) {
317
  $this->_result = new Trollweb_BBSNetAxept_Model_BBSNetterminal_Result;
app/code/community/Trollweb/BBSNetAxept/Model/Cron.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * BBS NetAxept, Norge
4
+ *
5
+ * LICENSE AND USAGE INFORMATION
6
+ * It is NOT allowed to modify, copy or re-sell this file or any
7
+ * part of it. Please contact us by email at post@trollweb.no or
8
+ * visit us at www.trollweb.no/bbs if you have any questions about this.
9
+ * Trollweb is not responsible for any problems caused by this file.
10
+ *
11
+ * Visit us at http://www.trollweb.no today!
12
+ *
13
+ * @category Trollweb
14
+ * @package Trollweb_BBSNetAxept
15
+ * @copyright Copyright (c) 2009 Trollweb (http://www.trollweb.no)
16
+ * @license Single-site License
17
+ *
18
+ */
19
+
20
+ class Trollweb_BBSNetAxept_Model_Cron
21
+ {
22
+
23
+ public function checkOrders($schedule)
24
+ {
25
+ $collection = Mage::getResourceModel('sales/order_collection')
26
+ ->addAttributeToSelect('*')
27
+ ->addAttributeToFilter('status','pending_bbs');
28
+
29
+
30
+ foreach ($collection as $key => $order) {
31
+ $bbs = Mage::getModel('bbsnetaxept/withGUI')->getApi();
32
+ // Cancel all orders older than X minutes. (change in config)
33
+ $timeout = $order->getPayment()->getMethodInstance()->getPendingTimeout();
34
+ var_dump($timeout);
35
+ if (($timeout > 0) and (strtotime($order->getUpdatedAt())+($timeout*60) < time()))
36
+ {
37
+ $transid = $order->getPayment()->getBbsTransactionId()."\n";
38
+ if ($bbs->checkStatus($transid) == false) {
39
+ $order->cancel()->save();
40
+ }
41
+ }
42
+ }
43
+
44
+ }
45
+ }
app/code/community/Trollweb/BBSNetAxept/Model/WithGUI.php CHANGED
@@ -42,6 +42,15 @@ class Trollweb_BBSNetAxept_Model_WithGUI extends Mage_Payment_Model_Method_Abstr
42
  protected $_canUseForMultishipping = false;
43
  protected $_canSaveCc = false;
44
 
 
 
 
 
 
 
 
 
 
45
 
46
  /**
47
  * Get checkout session namespace
@@ -161,7 +170,8 @@ class Trollweb_BBSNetAxept_Model_WithGUI extends Mage_Payment_Model_Method_Abstr
161
  $order->load(Mage::getSingleton('checkout/session')->getLastOrderId());
162
  if ($order->getPayment()->getStatus() != self::STATUS_APPROVED) {
163
 
164
- $this->getCheckout()->setBBSTransactionId(uniqid());
 
165
 
166
  $transKey = $this->getApi()->
167
  setCurrencyCode($this->getQuote()->getStoreCurrencyCode())->
@@ -187,7 +197,7 @@ class Trollweb_BBSNetAxept_Model_WithGUI extends Mage_Payment_Model_Method_Abstr
187
  }
188
  $this->getCheckout()->setCardInfo($info);
189
  }
190
- $order->addStatusToHistory('pending_bbs','Redirected to BBS Payment.',false);
191
  $order->save();
192
  }
193
  }
@@ -202,7 +212,17 @@ class Trollweb_BBSNetAxept_Model_WithGUI extends Mage_Payment_Model_Method_Abstr
202
 
203
  public function getBBSUrl()
204
  {
205
- return $this->getConfigData('gw_url');
 
 
 
 
 
 
 
 
 
 
206
  }
207
 
208
  public function useInternalGUI()
@@ -226,8 +246,19 @@ class Trollweb_BBSNetAxept_Model_WithGUI extends Mage_Payment_Model_Method_Abstr
226
  $bbsClient = Mage::getSingleton('bbsnetaxept/api_bbs');
227
 
228
  // Merchant ID
229
- $bbsClient->setMerchantId($this->getConfigData('merchant_id'))->setMerchantToken($this->getConfigData('merchant_token'))->setLanguage($this->getConfigData('gui_language'));
230
- $bbsClient->setWsdlUrl($this->getConfigData('wsdl_url'));
 
 
 
 
 
 
 
 
 
 
 
231
  return $bbsClient;
232
  }
233
 
@@ -266,7 +297,7 @@ class Trollweb_BBSNetAxept_Model_WithGUI extends Mage_Payment_Model_Method_Abstr
266
  if (empty($newOrderStatus)) {
267
  $newOrderStatus = $order->getStatus();
268
  }
269
- $order->addStatusToHistory($newOrderStatus,'BBS Authorization successfull.',false);
270
 
271
  /**
272
  * send confirmation email to customer
42
  protected $_canUseForMultishipping = false;
43
  protected $_canSaveCc = false;
44
 
45
+ // PROD URL
46
+ const WSDL_URL_TEST = 'https://epayment-test.bbs.no/service.svc?wsdl';
47
+ const QWSDL_URL_TEST = 'https://epayment-test.bbs.no/TokenQuery.svc?wsdl';
48
+ const GW_URL_TEST = 'https://epayment-test.bbs.no/terminal/default.aspx';
49
+
50
+ // TEST URL
51
+ const WSDL_URL_PROD = 'https://epayment.bbs.no/service.svc?wsdl';
52
+ const QWSDL_URL_PROD = 'https://epayment.bbs.no/TokenQuery.svc?wsdl';
53
+ const GW_URL_PROD = 'https://epayment.bbs.no/terminal/default.aspx';
54
 
55
  /**
56
  * Get checkout session namespace
170
  $order->load(Mage::getSingleton('checkout/session')->getLastOrderId());
171
  if ($order->getPayment()->getStatus() != self::STATUS_APPROVED) {
172
 
173
+ $this->getCheckout()->setBBSTransactionId(uniqid());
174
+ $order->getPayment()->setBbsTransactionId($this->getCheckout()->getBBSTransactionId());
175
 
176
  $transKey = $this->getApi()->
177
  setCurrencyCode($this->getQuote()->getStoreCurrencyCode())->
197
  }
198
  $this->getCheckout()->setCardInfo($info);
199
  }
200
+ $order->addStatusToHistory('pending_bbs',Mage::helper('bbsnetaxept')->__('Redirected to BBS Payment'),false);
201
  $order->save();
202
  }
203
  }
212
 
213
  public function getBBSUrl()
214
  {
215
+ if ($this->getConfigData('test_mode')) {
216
+ return Trollweb_BBSNetAxept_Model_WithGUI::GW_URL_TEST;
217
+ }
218
+ else {
219
+ return Trollweb_BBSNetAxept_Model_WithGUI::GW_URL_PROD;
220
+ }
221
+ }
222
+
223
+ public function getPendingTimeout()
224
+ {
225
+ return $this->getConfigData('pending_minutes');
226
  }
227
 
228
  public function useInternalGUI()
246
  $bbsClient = Mage::getSingleton('bbsnetaxept/api_bbs');
247
 
248
  // Merchant ID
249
+ $bbsClient->setMerchantId($this->getConfigData('merchant_id'))->setLanguage($this->getConfigData('gui_language'));
250
+ if ($this->getConfigData('test_mode')) {
251
+ $bbsClient->
252
+ setMerchantToken($this->getConfigData('merchant_test_token'))->
253
+ setWsdlUrl(Trollweb_BBSNetAxept_Model_WithGUI::WSDL_URL_TEST)->
254
+ setQueryWsdlUrl(Trollweb_BBSNetAxept_Model_WithGUI::QWSDL_URL_TEST);
255
+ }
256
+ else {
257
+ $bbsClient->
258
+ setMerchantToken($this->getConfigData('merchant_token'))->
259
+ setWsdlUrl(Trollweb_BBSNetAxept_Model_WithGUI::WSDL_URL_PROD)->
260
+ setQueryWsdlUrl(Trollweb_BBSNetAxept_Model_WithGUI::QWSDL_URL_PROD);
261
+ }
262
  return $bbsClient;
263
  }
264
 
297
  if (empty($newOrderStatus)) {
298
  $newOrderStatus = $order->getStatus();
299
  }
300
+ $order->addStatusToHistory($newOrderStatus,'BBS Authorization successful',true);
301
 
302
  /**
303
  * send confirmation email to customer
app/code/community/Trollweb/BBSNetAxept/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Trollweb_BBSNetAxept>
5
- <version>1.5.3</version>
6
  <depends>
7
  <Mage_Payment />
8
  </depends>
@@ -56,7 +56,7 @@
56
  <sales>
57
  <order>
58
  <statuses>
59
- <pending_bbs type="label">
60
  <label>Pending BBS</label>
61
  </pending_bbs>
62
  </statuses>
@@ -77,6 +77,15 @@
77
  </args>
78
  </bbsnetaxept>
79
  </routers>
 
 
 
 
 
 
 
 
 
80
  </frontend>
81
 
82
 
@@ -87,10 +96,10 @@
87
  <active>0</active>
88
  <title>Kredittkort</title>
89
  <cctypes>AE,VI,MC,DI</cctypes>
90
- <gw_url>https://epayment.bbs.no/terminal/default.aspx</gw_url>
91
- <wsdl_url>https://epayment.bbs.no/service.svc?wsdl</wsdl_url>
92
  <merchant_id backend_model="adminhtml/system_config_backend_encrypted" />
93
  <merchant_token backend_model="adminhtml/system_config_backend_encrypted" />
 
 
94
  <use_gui>1</use_gui>
95
  <gui_language>no_NO</gui_language>
96
  <order_status>pending_bbs</order_status>
@@ -101,10 +110,21 @@
101
  <regcode backend_model="adminhtml/system_config_backend_encrypted" />
102
  <logo>0</logo>
103
  <redirect_text>Du vil bli sendt til en sikker side hos BBS for inntasting av kredittkort-detaljene dine når du har fullført bestillingen.</redirect_text>
 
104
 
105
  <model>bbsnetaxept/withGUI</model>
106
  </bbsnetaxept_withgui>
107
  </payment>
108
  </default>
 
 
 
 
 
 
 
 
 
 
109
 
110
  </config>
2
  <config>
3
  <modules>
4
  <Trollweb_BBSNetAxept>
5
+ <version>1.5.5</version>
6
  <depends>
7
  <Mage_Payment />
8
  </depends>
56
  <sales>
57
  <order>
58
  <statuses>
59
+ <pending_bbs translate="label" type="label">
60
  <label>Pending BBS</label>
61
  </pending_bbs>
62
  </statuses>
77
  </args>
78
  </bbsnetaxept>
79
  </routers>
80
+ <translate>
81
+ <modules>
82
+ <Trollweb_BBSNetAxept>
83
+ <files>
84
+ <default>Trollweb_BBSNetaxept.csv</default>
85
+ </files>
86
+ </Trollweb_BBSNetAxept>
87
+ </modules>
88
+ </translate>
89
  </frontend>
90
 
91
 
96
  <active>0</active>
97
  <title>Kredittkort</title>
98
  <cctypes>AE,VI,MC,DI</cctypes>
 
 
99
  <merchant_id backend_model="adminhtml/system_config_backend_encrypted" />
100
  <merchant_token backend_model="adminhtml/system_config_backend_encrypted" />
101
+ <merchant_test_token backend_model="adminhtml/system_config_backend_encrypted" />
102
+ <test_mode>0</test_mode>
103
  <use_gui>1</use_gui>
104
  <gui_language>no_NO</gui_language>
105
  <order_status>pending_bbs</order_status>
110
  <regcode backend_model="adminhtml/system_config_backend_encrypted" />
111
  <logo>0</logo>
112
  <redirect_text>Du vil bli sendt til en sikker side hos BBS for inntasting av kredittkort-detaljene dine når du har fullført bestillingen.</redirect_text>
113
+ <pending_minutes>0</pending_minutes>
114
 
115
  <model>bbsnetaxept/withGUI</model>
116
  </bbsnetaxept_withgui>
117
  </payment>
118
  </default>
119
+
120
+ <crontab>
121
+ <jobs>
122
+ <trollweb_bbsnetaxept_checkorders>
123
+ <schedule><cron_expr>*/5 * * * *</cron_expr></schedule>
124
+ <run><model>bbsnetaxept/cron::checkOrders</model></run>
125
+ </trollweb_bbsnetaxept_checkorders>
126
+ </jobs>
127
+ </crontab>
128
+
129
 
130
  </config>
app/code/community/Trollweb/BBSNetAxept/etc/system.xml CHANGED
@@ -4,11 +4,11 @@
4
  <payment>
5
  <groups>
6
  <bbsnetaxept_withgui translate="label" module="bbsnetaxept">
7
- <label>BBS Netaxept, versjon 1.5.3</label>
8
  <sort_order>670</sort_order>
9
  <show_in_default>1</show_in_default>
10
  <show_in_website>1</show_in_website>
11
- <show_in_store>0</show_in_store>
12
  <comment><![CDATA[
13
  <div class="custom-options">
14
  <div class="box">
@@ -40,7 +40,7 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
40
  <sort_order>1</sort_order>
41
  <show_in_default>1</show_in_default>
42
  <show_in_website>1</show_in_website>
43
- <show_in_store>0</show_in_store>
44
  </active>
45
 
46
  <title translate="label">
@@ -49,7 +49,7 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
49
  <sort_order>2</sort_order>
50
  <show_in_default>1</show_in_default>
51
  <show_in_website>1</show_in_website>
52
- <show_in_store>0</show_in_store>
53
  <comment><![CDATA[Tekst som vises på BBS betalingsvalget i nettbutikken.]]></comment></title>
54
 
55
  <logo translate="label">
@@ -73,27 +73,18 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
73
  <show_in_website>1</show_in_website>
74
  <show_in_store>0</show_in_store>
75
  <comment><![CDATA[Tilgjengelige korttyper på din konto. Husk at hver korttype krever avtale med BBS og kredittkortinnløser. VISA og MasterCard er vanlig for de fleste.]]></comment></cctypes>
76
-
77
- <gw_url translate="label">
78
- <label>Gateway</label>
79
- <frontend_type>text</frontend_type>
80
- <sort_order>9</sort_order>
81
- <show_in_default>1</show_in_default>
82
- <show_in_website>1</show_in_website>
83
- <show_in_store>0</show_in_store>
84
- <comment><![CDATA[Skal normalt ikke endres. Endre https://epayment.bbs.no/ til https://epayment-test.bbs.no/ for å kjøre test modus (krever TEST merchant passord).]]></comment>
85
- </gw_url>
86
-
87
- <wsdl_url translate="label">
88
- <label>WSDL</label>
89
- <frontend_type>text</frontend_type>
90
- <sort_order>10</sort_order>
91
- <show_in_default>1</show_in_default>
92
- <show_in_website>1</show_in_website>
93
- <show_in_store>0</show_in_store>
94
- <comment><![CDATA[Skal normalt ikke endres. Endre https://epayment.bbs.no/ til https://epayment-test.bbs.no/ for å kjøre test modus (krever TEST merchant passord).]]></comment>
95
- </wsdl_url>
96
-
97
  <payment_action translate="label">
98
  <label>Betalingshandling</label>
99
  <frontend_type>select</frontend_type>
@@ -125,14 +116,26 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
125
  <show_in_default>1</show_in_default>
126
  <show_in_website>1</show_in_website>
127
  <show_in_store>0</show_in_store>
128
- <comment><![CDATA[Ditt unike kunde-passord fra BBS. Fås på SMS fra BBS. Merk at BBS normalt sender både TEST og PROD passord på SMS. Du skal skrive inn PROD passordet såfremt du ikke ønsker å kjøre test.]]></comment>
129
  </merchant_token>
 
 
 
 
 
 
 
 
 
 
 
 
130
 
131
  <use_gui translate="label">
132
  <label>Bruke BBS sin betalingsside</label>
133
  <frontend_type>select</frontend_type>
134
  <source_model>adminhtml/system_config_source_yesno</source_model>
135
- <sort_order>14</sort_order>
136
  <show_in_default>1</show_in_default>
137
  <show_in_website>1</show_in_website>
138
  <show_in_store>0</show_in_store>
@@ -144,7 +147,7 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
144
  <label>Språk på BBS betalingssiden</label>
145
  <frontend_type>select</frontend_type>
146
  <source_model>bbsnetaxept/BBSNetterminal_language</source_model>
147
- <sort_order>15</sort_order>
148
  <show_in_default>1</show_in_default>
149
  <show_in_website>1</show_in_website>
150
  <show_in_store>0</show_in_store>
@@ -161,13 +164,23 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
161
  <comment><![CDATA[Meldingstekst som kunden ser når han eller hun velger betalingsalternativet BBS.]]></comment>
162
  </redirect_text>
163
 
 
 
 
 
 
 
 
 
 
 
164
  <regcode translate="label">
165
  <label>Registreringskode</label>
166
  <frontend_type>text</frontend_type>
167
  <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
168
- <sort_order>18</sort_order>
169
  <show_in_default>1</show_in_default>
170
- <show_in_website>0</show_in_website>
171
  <show_in_store>0</show_in_store>
172
  <comment><![CDATA[Din registreringskode fra Trollweb. <a href="http://www.trollweb.no/bbs/getregcode">Klikk her for å generere din registreringskode helt gartis</a>.]]></comment>
173
  </regcode>
@@ -188,7 +201,7 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
188
  <label>Ordrestatus på autoriserte ordrer</label>
189
  <frontend_type>select</frontend_type>
190
  <source_model>adminhtml/system_config_source_order_status</source_model>
191
- <sort_order>20</sort_order>
192
  <show_in_default>1</show_in_default>
193
  <show_in_website>1</show_in_website>
194
  <show_in_store>0</show_in_store>
@@ -198,7 +211,7 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
198
  <allowspecific translate="label">
199
  <label>Tillatt enkelt-land som kan bruke BBS</label>
200
  <frontend_type>allowspecific</frontend_type>
201
- <sort_order>21</sort_order>
202
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
203
  <show_in_default>1</show_in_default>
204
  <show_in_website>1</show_in_website>
@@ -208,7 +221,7 @@ Telefon <b>+47 47230804</b> (0900-1800, man-søn)<br />
208
  <specificcountry translate="label">
209
  <label>Spesifiser hvilke land som eventuelt kan bruke BBS</label>
210
  <frontend_type>multiselect</frontend_type>
211
- <sort_order>22</sort_order>
212
  <source_model>adminhtml/system_config_source_country</source_model>
213
  <show_in_default>1</show_in_default>
214
  <show_in_website>1</show_in_website>
4
  <payment>
5
  <groups>
6
  <bbsnetaxept_withgui translate="label" module="bbsnetaxept">
7
+ <label>BBS Netaxept, versjon 1.5.5</label>
8
  <sort_order>670</sort_order>
9
  <show_in_default>1</show_in_default>
10
  <show_in_website>1</show_in_website>
11
+ <show_in_store>1</show_in_store>
12
  <comment><![CDATA[
13
  <div class="custom-options">
14
  <div class="box">
40
  <sort_order>1</sort_order>
41
  <show_in_default>1</show_in_default>
42
  <show_in_website>1</show_in_website>
43
+ <show_in_store>1</show_in_store>
44
  </active>
45
 
46
  <title translate="label">
49
  <sort_order>2</sort_order>
50
  <show_in_default>1</show_in_default>
51
  <show_in_website>1</show_in_website>
52
+ <show_in_store>1</show_in_store>
53
  <comment><![CDATA[Tekst som vises på BBS betalingsvalget i nettbutikken.]]></comment></title>
54
 
55
  <logo translate="label">
73
  <show_in_website>1</show_in_website>
74
  <show_in_store>0</show_in_store>
75
  <comment><![CDATA[Tilgjengelige korttyper på din konto. Husk at hver korttype krever avtale med BBS og kredittkortinnløser. VISA og MasterCard er vanlig for de fleste.]]></comment></cctypes>
76
+
77
+ <test_mode translate="label">
78
+ <label>Test modus</label>
79
+ <frontend_type>select</frontend_type>
80
+ <source_model>adminhtml/system_config_source_yesno</source_model>
81
+ <sort_order>10</sort_order>
82
+ <show_in_default>1</show_in_default>
83
+ <show_in_website>1</show_in_website>
84
+ <show_in_store>0</show_in_store>
85
+ <comment><![CDATA[Sett denne til ja for å kjøre mot BBS sitt test system.]]></comment>
86
+ </test_mode>
87
+
 
 
 
 
 
 
 
 
 
88
  <payment_action translate="label">
89
  <label>Betalingshandling</label>
90
  <frontend_type>select</frontend_type>
116
  <show_in_default>1</show_in_default>
117
  <show_in_website>1</show_in_website>
118
  <show_in_store>0</show_in_store>
119
+ <comment><![CDATA[Ditt unike kunde-passord fra BBS. Fås på SMS fra BBS. Merk at BBS normalt sender både TEST og PROD passord på SMS. Her skal skrive inn PROD passordet.]]></comment>
120
  </merchant_token>
121
+
122
+ <merchant_test_token translate="label">
123
+ <label>Merchant Test Token</label>
124
+ <frontend_type>text</frontend_type>
125
+ <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
126
+ <sort_order>14</sort_order>
127
+ <show_in_default>1</show_in_default>
128
+ <show_in_website>1</show_in_website>
129
+ <show_in_store>0</show_in_store>
130
+ <comment><![CDATA[Ditt unike test-passord fra BBS. Fås på SMS fra BBS. Merk at BBS normalt sender både TEST og PROD passord på SMS. Du skal skrive inn TEST passordet.]]></comment>
131
+ </merchant_test_token>
132
+
133
 
134
  <use_gui translate="label">
135
  <label>Bruke BBS sin betalingsside</label>
136
  <frontend_type>select</frontend_type>
137
  <source_model>adminhtml/system_config_source_yesno</source_model>
138
+ <sort_order>15</sort_order>
139
  <show_in_default>1</show_in_default>
140
  <show_in_website>1</show_in_website>
141
  <show_in_store>0</show_in_store>
147
  <label>Språk på BBS betalingssiden</label>
148
  <frontend_type>select</frontend_type>
149
  <source_model>bbsnetaxept/BBSNetterminal_language</source_model>
150
+ <sort_order>16</sort_order>
151
  <show_in_default>1</show_in_default>
152
  <show_in_website>1</show_in_website>
153
  <show_in_store>0</show_in_store>
164
  <comment><![CDATA[Meldingstekst som kunden ser når han eller hun velger betalingsalternativet BBS.]]></comment>
165
  </redirect_text>
166
 
167
+ <pending_minutes translate="label">
168
+ <label>Betalings avbrudd</label>
169
+ <frontend_type>text</frontend_type>
170
+ <sort_order>20</sort_order>
171
+ <show_in_default>1</show_in_default>
172
+ <show_in_website>0</show_in_website>
173
+ <show_in_store>0</show_in_store>
174
+ <comment><![CDATA[Antall minutter før en ordre automatisk blir merket som avbrutt dersom kunden ikke har kommet tilbake fra BBS betalings siden. Skriv 0 for aldri å automatisk avbryte en ordre.]]></comment>
175
+ </pending_minutes>
176
+
177
  <regcode translate="label">
178
  <label>Registreringskode</label>
179
  <frontend_type>text</frontend_type>
180
  <backend_model>adminhtml/system_config_backend_encrypted</backend_model>
181
+ <sort_order>30</sort_order>
182
  <show_in_default>1</show_in_default>
183
+ <show_in_website>1</show_in_website>
184
  <show_in_store>0</show_in_store>
185
  <comment><![CDATA[Din registreringskode fra Trollweb. <a href="http://www.trollweb.no/bbs/getregcode">Klikk her for å generere din registreringskode helt gartis</a>.]]></comment>
186
  </regcode>
201
  <label>Ordrestatus på autoriserte ordrer</label>
202
  <frontend_type>select</frontend_type>
203
  <source_model>adminhtml/system_config_source_order_status</source_model>
204
+ <sort_order>40</sort_order>
205
  <show_in_default>1</show_in_default>
206
  <show_in_website>1</show_in_website>
207
  <show_in_store>0</show_in_store>
211
  <allowspecific translate="label">
212
  <label>Tillatt enkelt-land som kan bruke BBS</label>
213
  <frontend_type>allowspecific</frontend_type>
214
+ <sort_order>41</sort_order>
215
  <source_model>adminhtml/system_config_source_payment_allspecificcountries</source_model>
216
  <show_in_default>1</show_in_default>
217
  <show_in_website>1</show_in_website>
221
  <specificcountry translate="label">
222
  <label>Spesifiser hvilke land som eventuelt kan bruke BBS</label>
223
  <frontend_type>multiselect</frontend_type>
224
+ <sort_order>42</sort_order>
225
  <source_model>adminhtml/system_config_source_country</source_model>
226
  <show_in_default>1</show_in_default>
227
  <show_in_website>1</show_in_website>
app/locale/nb_NO/Trollweb_BBSNetaxept.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ "Pending BBS","Det er ikke registert noe betaling på denne ordren"
2
+ "Redirected to BBS Payment","Videresendt til BBS sin betalingsløsning"
3
+ "BBS Authorization successful","Ordrebeløpet er reservert av BBS"
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BBSNetAxept_Norway</name>
4
- <version>1.5.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.trollweb.no/bbs">GPL License</license>
7
  <channel>community</channel>
@@ -12,9 +12,9 @@
12
  Please remember that you need to sign up with both BBS and Teller. Sign up forms are available directly in the Magento Admin and Payment Gateways, under the BBS Netaxept Settings.</description>
13
  <notes>This extension uses the BBS Netaxept API.</notes>
14
  <authors><author><name>Trollweb Solutions AS</name><user>auto-converted</user><email>post@trollweb.no</email></author></authors>
15
- <date>2010-05-05</date>
16
- <time>21:08:55</time>
17
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="bbsnetaxept"><file name="form.phtml" hash="d61295f247bccb512608c1f9dec45876"/><file name="paymentinfo.phtml" hash="4f3b4e6e0d39720429c9b7f6afe87db3"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bbsnetaxept"><file name="form.phtml" hash="f2c6bb87bb25ddd68a3dddde8ed64f12"/><file name="paymentinfo.phtml" hash="6ec9c7243fdb7c67a9d3de210a56908c"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="bbsnetaxept"><file name="logo.png" hash="17dcefecee14a0231c58dd87b2e0dc5e"/><file name="technology_logo.png" hash="e0b62fb37da9fb8c1ef69390762f066b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Trollweb_BBSNetAxept.xml" hash="f3b2219f86e88ada812f5bde8ae6859c"/></dir></target><target name="magecommunity"><dir name="Trollweb"><dir name="BBSNetAxept"><dir name="Block"><file name="Form.php" hash="2e843f8b372cf86b901604676223e9ff"/><file name="PaymentInfo.php" hash="8c84a5d8a98a05bbc896733e2ca387f1"/><file name="Redirect.php" hash="dedf8e84e45f7d5e217b20704e0b1ac8"/></dir><dir name="controllers"><file name="ReturnController.php" hash="1af5a611e3c8ed282648911911c52de1"/></dir><dir name="etc"><file name="config.xml" hash="0f6b2ead88302f74c2d4ae73a47fbd91"/><file name="system.xml" hash="cb5bfdae5d87ab447be5ad8710d82144"/></dir><dir name="Helper"><file name="Data.php" hash="06e6b25c35fa45f014c51163ccec2e44"/></dir><dir name="Model"><dir name="Api"><file name="Bbs.php" hash="b29157599631d3c73b779b165373f01b"/><file name="BbsRequest.php" hash="1d89c8369032ba4ba79c89828770da56"/><file name="SoapClient.php" hash="0bea5c38b2402fe854c092389aae9a21"/></dir><dir name="BBSNetterminal"><file name="Debug.php" hash="4c938bc2a079719a111478c9d24adf77"/><file name="Language.php" hash="8bafa1d208ee1571920eebfdf98a6745"/><file name="PaymentAction.php" hash="60efa6278b77fcd56d28d81e19617ccc"/><file name="Request.php" hash="b9353f6c6ca06349928aa418cf943744"/><file name="Result.php" hash="2faf0b6cc4fb00b00cbec7a48f4dca07"/></dir><dir name="Config"><file name="Logo.php" hash="7a6d09c42821270b85d32a6f9509395b"/></dir><dir name="Entity"><file name="Setup.php" hash="6d17490981f2d9efa48ac7a0f9318a83"/></dir><file name="WithGUI.php" hash="0a879d1db2712770186578073e9f9645"/></dir><dir name="sql"><dir name="bbsnetaxept_setup"><file name="mysql4-install-0.1.0.php" hash="e84d45a9a21b253c0b3cb766079df28b"/><file name="mysql4-uninstall-0.1.0.php" hash="5393aadd53afafee1392949fe6a4511a"/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>BBSNetAxept_Norway</name>
4
+ <version>1.5.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.trollweb.no/bbs">GPL License</license>
7
  <channel>community</channel>
12
  Please remember that you need to sign up with both BBS and Teller. Sign up forms are available directly in the Magento Admin and Payment Gateways, under the BBS Netaxept Settings.</description>
13
  <notes>This extension uses the BBS Netaxept API.</notes>
14
  <authors><author><name>Trollweb Solutions AS</name><user>auto-converted</user><email>post@trollweb.no</email></author></authors>
15
+ <date>2010-05-09</date>
16
+ <time>07:52:35</time>
17
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="bbsnetaxept"><file name="form.phtml" hash="d61295f247bccb512608c1f9dec45876"/><file name="paymentinfo.phtml" hash="4f3b4e6e0d39720429c9b7f6afe87db3"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="bbsnetaxept"><file name="form.phtml" hash="f2c6bb87bb25ddd68a3dddde8ed64f12"/><file name="paymentinfo.phtml" hash="6ec9c7243fdb7c67a9d3de210a56908c"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="bbsnetaxept"><file name="logo.png" hash="17dcefecee14a0231c58dd87b2e0dc5e"/><file name="technology_logo.png" hash="e0b62fb37da9fb8c1ef69390762f066b"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Trollweb_BBSNetAxept.xml" hash="f3b2219f86e88ada812f5bde8ae6859c"/></dir></target><target name="magelocale"><dir name="nb_NO"><file name="Trollweb_BBSNetaxept.csv" hash="ac985b5dad2ad1780fbc23d85c0c4849"/></dir></target><target name="magecommunity"><dir name="Trollweb"><dir name="BBSNetAxept"><dir name="Block"><file name="Form.php" hash="2e843f8b372cf86b901604676223e9ff"/><file name="PaymentInfo.php" hash="8c84a5d8a98a05bbc896733e2ca387f1"/><file name="Redirect.php" hash="dedf8e84e45f7d5e217b20704e0b1ac8"/></dir><dir name="controllers"><file name="ReturnController.php" hash="1af5a611e3c8ed282648911911c52de1"/></dir><dir name="etc"><file name="config.xml" hash="02d28f7076b141ecbf1e59cc2796d94d"/><file name="system.xml" hash="513259309a4f7f2ec061be451ff5efdd"/></dir><dir name="Helper"><file name="Data.php" hash="06e6b25c35fa45f014c51163ccec2e44"/></dir><dir name="Model"><dir name="Api"><file name="Bbs.php" hash="3d6a7e6a6fc4799ea22954c100313d87"/><file name="BbsRequest.php" hash="1d89c8369032ba4ba79c89828770da56"/><file name="SoapClient.php" hash="0bea5c38b2402fe854c092389aae9a21"/></dir><dir name="BBSNetterminal"><file name="Debug.php" hash="4c938bc2a079719a111478c9d24adf77"/><file name="Language.php" hash="8bafa1d208ee1571920eebfdf98a6745"/><file name="PaymentAction.php" hash="60efa6278b77fcd56d28d81e19617ccc"/><file name="Request.php" hash="b9353f6c6ca06349928aa418cf943744"/><file name="Result.php" hash="2faf0b6cc4fb00b00cbec7a48f4dca07"/></dir><dir name="Config"><file name="Logo.php" hash="7a6d09c42821270b85d32a6f9509395b"/></dir><dir name="Entity"><file name="Setup.php" hash="6d17490981f2d9efa48ac7a0f9318a83"/></dir><file name="Cron.php" hash="dbe0847dbef872105f6f7bb8468ebb83"/><file name="WithGUI.php" hash="8119142d99c90fbaad3179686d5f428c"/></dir><dir name="sql"><dir name="bbsnetaxept_setup"><file name="mysql4-install-0.1.0.php" hash="e84d45a9a21b253c0b3cb766079df28b"/><file name="mysql4-uninstall-0.1.0.php" hash="5393aadd53afafee1392949fe6a4511a"/></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies/>
20
  </package>