HeidelpayCDEdition - Version 16.2.9

Version Notes

- change credit and debit card payment process to iframe chekount
- bugfix for report shipping to Heidelpay observer
- bugfix if iban is in lower case

Download this release

Release Info

Developer Heidelberger Payment GmbH
Extension HeidelpayCDEdition
Version 16.2.9
Comparing to
See all releases


Code changes from version 15.10.7 to 16.2.9

app/code/community/HeidelpayCD/Edition/Block/Info/Invoice.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class HeidelpayCD_Edition_Block_Info_Invoice extends Mage_Payment_Block_Info
3
+ {
4
+ public function toPdf()
5
+ {
6
+ $this->setTemplate('hcd/info/pdf/invoice.phtml');
7
+ return $this->toHtml();
8
+ }
9
+ }
app/code/community/HeidelpayCD/Edition/Helper/Payment.php CHANGED
@@ -222,11 +222,61 @@ class HeidelpayCD_Edition_Helper_Payment extends Mage_Core_Helper_Abstract
222
  Mage::getSingleton('core/translate')->setLocale($locale)->init('frontend', true);
223
  };
224
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
225
 
226
  $message = (!empty($message)) ? $message : $data['PROCESSING_RETURN'];
227
 
228
  $quoteID = ($order->getLastQuoteId() === false) ? $order->getQuoteId() : $order->getLastQuoteId() ; // last_quote_id workaround for trusted shop buyerprotection
229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
  if ($data['PROCESSING_RESULT'] == 'NOK'){
231
  if ($order->canCancel()) {
232
  $order->cancel();
@@ -239,10 +289,7 @@ class HeidelpayCD_Edition_Helper_Payment extends Mage_Core_Helper_Abstract
239
  } elseif ( ( $PaymentCode[1] == 'CP' or $PaymentCode[1] == 'DB' or $PaymentCode[1] == 'FI' or $PaymentCode[1] == 'RC')
240
  and ( $data['PROCESSING_RESULT'] == 'ACK' and $data['PROCESSING_STATUS_CODE'] != 80 )) {
241
 
242
- /**
243
- * Do nothing if status is allready successfull
244
- */
245
- if ($order->getStatus() == $order->getPayment()->getMethodInstance()->getStatusSuccess() ) return ;
246
 
247
 
248
  $message = (isset($data['ACCOUNT_BRAND']) and $data['ACCOUNT_BRAND'] == 'BILLSAFE') ? 'BillSafe Id: '.$data['CRITERION_BILLSAFE_REFERENCE'] : 'Heidelpay ShortID: '.$data['IDENTIFICATION_SHORTID'];
222
  Mage::getSingleton('core/translate')->setLocale($locale)->init('frontend', true);
223
  };
224
 
225
+ // handle chageback notifications for cc, dc and dd
226
+ if ($PaymentCode[1] == 'CB') {
227
+
228
+ $this->log('Chargeback');
229
+
230
+ if ($PaymentCode[0] == 'DD') {
231
+ // message block for direct debit chargebacks
232
+ $message = Mage::helper('hcd')->__('debit failed');
233
+ } else {
234
+ // message block for credit and debit cart chargebacks
235
+ $message = Mage::helper('hcd')->__('chargeback');
236
+ }
237
+ if ($order->hasInvoices()) {
238
+ $invIncrementIDs = array();
239
+ foreach ($order->getInvoiceCollection() as $inv) {
240
+ $this->log('Invoice Number '.(string)$inv->getIncrementId());
241
+ $inv->setState(Mage_Sales_Model_Order_Invoice::STATE_OPEN);
242
+ $inv->setIsPaid(false);
243
+ $inv->save();
244
+ }
245
+ $order->setIsInProcess(false);
246
+ }
247
+
248
+ $order->setState( $order->getPayment()->getMethodInstance()->getStatusPendig(false),
249
+ true,
250
+ $message );
251
+
252
+ Mage::dispatchEvent('heidelpay_after_map_status_chargeback', array('order' => $order));
253
+ $this->log('Is this order protected ? '.(string)$order->isStateProtected() );
254
+ $order->save();
255
+ return;
256
+ }
257
+
258
 
259
  $message = (!empty($message)) ? $message : $data['PROCESSING_RETURN'];
260
 
261
  $quoteID = ($order->getLastQuoteId() === false) ? $order->getQuoteId() : $order->getLastQuoteId() ; // last_quote_id workaround for trusted shop buyerprotection
262
 
263
+ /**
264
+ * Do nothing if status is allready successfull
265
+ */
266
+ if ($order->getStatus() == $order->getPayment()->getMethodInstance()->getStatusSuccess() ) return ;
267
+ /**
268
+ * If an order has been canceled, cloesed or complete do not change order status
269
+ */
270
+ if ($order->getStatus() == Mage_Sales_Model_Order::STATE_CANCELED or
271
+ $order->getStatus() == Mage_Sales_Model_Order::STATE_CLOSED or
272
+ $order->getStatus() == Mage_Sales_Model_Order::STATE_COMPLETE
273
+ ) {
274
+
275
+ // you can use this event for example to get a notification when a canceled order has been paid
276
+ Mage::dispatchEvent('heidelpay_map_status_cancel', array('order' => $order, 'data' => $data));
277
+ return ;
278
+ }
279
+
280
  if ($data['PROCESSING_RESULT'] == 'NOK'){
281
  if ($order->canCancel()) {
282
  $order->cancel();
289
  } elseif ( ( $PaymentCode[1] == 'CP' or $PaymentCode[1] == 'DB' or $PaymentCode[1] == 'FI' or $PaymentCode[1] == 'RC')
290
  and ( $data['PROCESSING_RESULT'] == 'ACK' and $data['PROCESSING_STATUS_CODE'] != 80 )) {
291
 
292
+
 
 
 
293
 
294
 
295
  $message = (isset($data['ACCOUNT_BRAND']) and $data['ACCOUNT_BRAND'] == 'BILLSAFE') ? 'BillSafe Id: '.$data['CRITERION_BILLSAFE_REFERENCE'] : 'Heidelpay ShortID: '.$data['IDENTIFICATION_SHORTID'];
app/code/community/HeidelpayCD/Edition/Model/Observer.php CHANGED
@@ -31,15 +31,18 @@ class HeidelpayCD_Edition_Model_Observer {
31
 
32
  }
33
 
34
- public function reportShippingToHeidelpay($observer) {
35
- $shipment = $observer->getEvent()->getShipment();
36
- $orderIncrementId = Mage::app()->getRequest()->getParam('order_id');
37
- Mage::log('$orderIncrementId '.$orderIncrementId);
38
- $order = Mage::getModel('sales/order');
39
- $order->loadByAttribute('entity_id', (int)$orderIncrementId);
40
 
41
- $this->log('save shipping');
42
 
 
 
 
 
 
 
43
  $payment = $order->getPayment()->getMethodInstance();
44
 
45
  $paymentCode = $payment->getCode();
@@ -101,22 +104,11 @@ class HeidelpayCD_Edition_Model_Observer {
101
  Mage::getSingleton('core/session')->addSuccess(Mage::helper('hcd')->__('Successfully report delivery to Heidelpay.'));
102
  }
103
 
104
-
105
-
106
-
107
  };
108
 
109
  }
110
 
111
-
112
- /*
113
- Mage::getSingleton('core/session')->addError('Versand nicht möglich 123');
114
- $shipment->_dataSaveAllowed = false;
115
- Mage::app()->getResponse()->setRedirect($_SERVER['HTTP_REFERER']);
116
- Mage::app()->getResponse()->sendResponse();
117
- exit();
118
- */
119
-
120
  }
121
 
122
 
31
 
32
  }
33
 
34
+ public function saveInvoice($observer) {
35
+
36
+ $this->log('saveInvoice '.print_r($observer->debug(),1));
 
 
 
37
 
38
+ $this->log('saveInvoice '.print_r($observer->getOrder()->debug(),1));
39
 
40
+ }
41
+
42
+ public function reportShippingToHeidelpay($observer) {
43
+ $shipment = $observer->getEvent()->getShipment();
44
+ $order = $shipment->getOrder();
45
+ if (empty($order)) return $this;
46
  $payment = $order->getPayment()->getMethodInstance();
47
 
48
  $paymentCode = $payment->getCode();
104
  Mage::getSingleton('core/session')->addSuccess(Mage::helper('hcd')->__('Successfully report delivery to Heidelpay.'));
105
  }
106
 
 
 
 
107
  };
108
 
109
  }
110
 
111
+
 
 
 
 
 
 
 
 
112
  }
113
 
114
 
app/code/community/HeidelpayCD/Edition/Model/Payment/Abstract.php CHANGED
@@ -15,7 +15,7 @@ class HeidelpayCD_Edition_Model_Payment_Abstract extends Mage_Payment_Model_Meth
15
  protected $_canCapturePartial = false;
16
  protected $_canRefund = true;
17
  protected $_canRefundInvoicePartial = true;
18
- protected $_canVoid = false;
19
  protected $_canUseInternal = false;
20
  protected $_canUseCheckout = true;
21
  protected $_canUseForMultishipping = false;
@@ -182,6 +182,18 @@ class HeidelpayCD_Edition_Model_Payment_Abstract extends Mage_Payment_Model_Meth
182
  $this->log("Heidelpay Payment Code : ".$this->_code);
183
  $config = $this->getMainConfig($this->_code);
184
  if ($isRegistration === true)$config['PAYMENT.TYPE'] = 'RG';
 
 
 
 
 
 
 
 
 
 
 
 
185
  $frontend = $this->getFrontend($ordernr);
186
  if ($isRegistration === true) $frontend['FRONTEND.SUCCESS_URL'] = Mage::getUrl('hcd/', array('_secure' => true));
187
  if ($isRegistration === true) $frontend['CRITERION.SHIPPPING_HASH'] = $this->getShippingHash();
@@ -273,9 +285,12 @@ class HeidelpayCD_Edition_Model_Payment_Abstract extends Mage_Payment_Model_Meth
273
  if($this->getCustomerData($this->_code, $billing->getCustomerId())) {
274
  $paymentData = $this->getCustomerData($this->_code, $billing->getCustomerId());
275
 
276
- $this->log('getUser Customer: '. print_r($paymentData,1), 'DEBUG');
277
 
 
278
 
 
 
 
279
 
280
  // remove SHIPPPING_HASH from parameters
281
  if (isset($paymentData['payment_data']['SHIPPPING_HASH']))
15
  protected $_canCapturePartial = false;
16
  protected $_canRefund = true;
17
  protected $_canRefundInvoicePartial = true;
18
+ protected $_canVoid = true;
19
  protected $_canUseInternal = false;
20
  protected $_canUseCheckout = true;
21
  protected $_canUseForMultishipping = false;
182
  $this->log("Heidelpay Payment Code : ".$this->_code);
183
  $config = $this->getMainConfig($this->_code);
184
  if ($isRegistration === true)$config['PAYMENT.TYPE'] = 'RG';
185
+ if ($isRegistration === true)$basketData['PRESENTATION.CURRENCY'] = $this->getQuote()->getQuoteCurrencyCode();
186
+
187
+ // add parameters for pci 3 iframe
188
+
189
+ if ($this->_code == 'hcdcc' or $this->_code == 'hcddc' ) {
190
+ $url = explode( '/', Mage::getUrl('/', array('_secure' => true)));
191
+ $criterion['FRONTEND.PAYMENT_FRAME_ORIGIN'] = $url[0].'//'.$url[2];
192
+ $criterion['FRONTEND.CSS_PATH'] = Mage::getDesign()->getSkinUrl('css/'.$this->_code.'_payment_frame.css', array('_secure' => true));
193
+ // set frame to sync modus if frame is used in bevor order mode (this is the registration case)
194
+ $criterion['FRONTEND.PREVENT_ASYNC_REDIRECT'] = ($isRegistration === true) ? 'TRUE' : 'FALSE';
195
+ }
196
+
197
  $frontend = $this->getFrontend($ordernr);
198
  if ($isRegistration === true) $frontend['FRONTEND.SUCCESS_URL'] = Mage::getUrl('hcd/', array('_secure' => true));
199
  if ($isRegistration === true) $frontend['CRITERION.SHIPPPING_HASH'] = $this->getShippingHash();
285
  if($this->getCustomerData($this->_code, $billing->getCustomerId())) {
286
  $paymentData = $this->getCustomerData($this->_code, $billing->getCustomerId());
287
 
 
288
 
289
+ $this->log('getUser Customer: '. print_r($paymentData,1), 'DEBUG');
290
 
291
+ if (isset($paymentData['payment_data']['ACCOUNT.IBAN'])) {
292
+ $paymentData['payment_data']['ACCOUNT.IBAN'] = strtoupper($paymentData['payment_data']['ACCOUNT.IBAN']);
293
+ }
294
 
295
  // remove SHIPPPING_HASH from parameters
296
  if (isset($paymentData['payment_data']['SHIPPPING_HASH']))
app/code/community/HeidelpayCD/Edition/Model/Payment/Hcddd.php CHANGED
@@ -1,104 +1,105 @@
1
- <?php
2
- class HeidelpayCD_Edition_Model_Payment_Hcddd extends HeidelpayCD_Edition_Model_Payment_Abstract
3
- {
4
- protected $_code = 'hcddd';
5
- protected $_canCapture = true;
6
- protected $_canCapturePartial = true;
7
- // protected $_infoBlockType = 'hcd/info_debit';
8
- protected $_formBlockType = 'hcd/form_debit';
9
-
10
- public function getFormBlockType(){
11
- return $this->_formBlockType;
12
- }
13
-
14
- public function validate(){
15
- parent::validate();
16
- $payment = array();
17
- $params = array();
18
- $payment = Mage::app()->getRequest()->getPOST('payment');
19
-
20
- if(isset($payment['method']) and $payment['method'] == $this->_code) {
21
-
22
- if(empty($payment[$this->_code.'_holder']))
23
- Mage::throwException($this->_getHelper()->__('Please specify a account holder'));
24
- if(empty($payment[$this->_code.'_iban']))
25
- Mage::throwException($this->_getHelper()->__('Please specify a iban or account'));
26
- if(empty($payment[$this->_code.'_bic']))
27
- Mage::throwException($this->_getHelper()->__('Please specify a bic or bank code'));
28
-
29
- $params['ACCOUNT.HOLDER'] = $payment[$this->_code.'_holder'];
30
-
31
- if (preg_match('#^[\d]#',$payment[$this->_code.'_iban'])) {
32
- $params['ACCOUNT.NUMBER'] = $payment[$this->_code.'_iban'];
33
- } else {
34
- $params['ACCOUNT.IBAN'] = $payment[$this->_code.'_iban'];
35
- };
36
-
37
- if (preg_match('#^[\d]#',$payment[$this->_code.'_bic'])) {
38
- $params['ACCOUNT.BANK'] = $payment[$this->_code.'_bic'];
39
- $params['ACCOUNT.COUNTRY'] = $this->getQuote()->getBillingAddress()->getCountry();
40
- } else {
41
- $params['ACCOUNT.BIC'] = $payment[$this->_code.'_bic'];
42
- };
43
-
44
-
45
- $this->saveCustomerData($params);
46
-
47
- return $this;
48
- }
49
-
50
- return $this;
51
- }
52
-
53
- public function showPaymentInfo($payment_data) {
54
-
55
- $load_snippet = $this->_getHelper()->__("Direct Debit Info Text");
56
-
57
- $repl = array(
58
- '{AMOUNT}' => $payment_data['CLEARING_AMOUNT'],
59
- '{CURRENCY}' => $payment_data['CLEARING_CURRENCY'],
60
- '{Iban}' => $payment_data['ACCOUNT_IBAN'],
61
- '{Bic}' => $payment_data['ACCOUNT_BIC'],
62
- '{Ident}' => $payment_data['ACCOUNT_IDENTIFICATION'],
63
- '{CreditorId}' => $payment_data['IDENTIFICATION_CREDITOR_ID'],
64
- );
65
-
66
- $load_snippet= strtr( $load_snippet , $repl);
67
-
68
-
69
- return $load_snippet;
70
-
71
- }
72
-
73
- /*
74
- public function getUser($order) {
75
- $account = array();
76
- $params = array();
77
- $params = parent::getUser($order);
78
-
79
-
80
- $usersession = $this->getCheckout();
81
-
82
- $account = $usersession->getHcddata();
83
-
84
- $params['ACCOUNT.HOLDER'] = $account['hgwdd_holder'];
85
-
86
- if (is_int($account['hgwdd_iban'])) {
87
- $params['ACCOUNT.NUMBER'] = $account['hgwdd_iban'];
88
- } else {
89
- $params['ACCOUNT.IBAN'] = $account['hgwdd_iban'];
90
- };
91
-
92
- if (is_int($account['hgwdd_bic'])) {
93
- $params['ACCOUNT.BANK'] = $account['hgwdd_iban'];
94
- } else {
95
- $params['ACCOUNT.BIC'] = $account['hgwdd_iban'];
96
- };
97
-
98
- parent::log('Account data : '. print_r($account,1), 'DEBUG');
99
-
100
- return $params ;
101
-
102
- }
103
- */
 
104
  }
1
+ <?php
2
+ class HeidelpayCD_Edition_Model_Payment_Hcddd extends HeidelpayCD_Edition_Model_Payment_Abstract
3
+ {
4
+ protected $_code = 'hcddd';
5
+ protected $_canCapture = true;
6
+ protected $_canCapturePartial = true;
7
+ // protected $_infoBlockType = 'hcd/info_debit';
8
+ protected $_formBlockType = 'hcd/form_debit';
9
+
10
+ public function getFormBlockType(){
11
+ return $this->_formBlockType;
12
+ }
13
+
14
+ public function validate(){
15
+ parent::validate();
16
+ $payment = array();
17
+ $params = array();
18
+ $payment = Mage::app()->getRequest()->getPOST('payment');
19
+
20
+ if(isset($payment['method']) and $payment['method'] == $this->_code) {
21
+
22
+ if(empty($payment[$this->_code.'_holder']))
23
+ Mage::throwException($this->_getHelper()->__('Please specify a account holder'));
24
+ if(empty($payment[$this->_code.'_iban']))
25
+ Mage::throwException($this->_getHelper()->__('Please specify a iban or account'));
26
+ if(empty($payment[$this->_code.'_bic'])){
27
+ if(!preg_match('/^(D|d)(E|e)/', $payment[$this->_code.'_iban'])){
28
+ Mage::throwException($this->_getHelper()->__('Please specify a bic or bank code'));
29
+ }
30
+ }
31
+
32
+ $params['ACCOUNT.HOLDER'] = $payment[$this->_code.'_holder'];
33
+
34
+ if (preg_match('#^[\d]#',$payment[$this->_code.'_iban'])) {
35
+ $params['ACCOUNT.NUMBER'] = $payment[$this->_code.'_iban'];
36
+ } else {
37
+ $params['ACCOUNT.IBAN'] = $payment[$this->_code.'_iban'];
38
+ };
39
+
40
+ if (preg_match('#^[\d]#',$payment[$this->_code.'_bic'])) {
41
+ $params['ACCOUNT.BANK'] = $payment[$this->_code.'_bic'];
42
+ $params['ACCOUNT.COUNTRY'] = $this->getQuote()->getBillingAddress()->getCountry();
43
+ } else {
44
+ $params['ACCOUNT.BIC'] = $payment[$this->_code.'_bic'];
45
+ }
46
+ $this->saveCustomerData($params);
47
+
48
+ return $this;
49
+ }
50
+
51
+ return $this;
52
+ }
53
+
54
+ public function showPaymentInfo($payment_data) {
55
+
56
+ $load_snippet = $this->_getHelper()->__("Direct Debit Info Text");
57
+
58
+ $repl = array(
59
+ '{AMOUNT}' => $payment_data['CLEARING_AMOUNT'],
60
+ '{CURRENCY}' => $payment_data['CLEARING_CURRENCY'],
61
+ '{Iban}' => $payment_data['ACCOUNT_IBAN'],
62
+ '{Bic}' => $payment_data['ACCOUNT_BIC'],
63
+ '{Ident}' => $payment_data['ACCOUNT_IDENTIFICATION'],
64
+ '{CreditorId}' => $payment_data['IDENTIFICATION_CREDITOR_ID'],
65
+ );
66
+
67
+ $load_snippet= strtr( $load_snippet , $repl);
68
+
69
+
70
+ return $load_snippet;
71
+
72
+ }
73
+
74
+ /*
75
+ public function getUser($order) {
76
+ $account = array();
77
+ $params = array();
78
+ $params = parent::getUser($order);
79
+
80
+
81
+ $usersession = $this->getCheckout();
82
+
83
+ $account = $usersession->getHcddata();
84
+
85
+ $params['ACCOUNT.HOLDER'] = $account['hgwdd_holder'];
86
+
87
+ if (is_int($account['hgwdd_iban'])) {
88
+ $params['ACCOUNT.NUMBER'] = $account['hgwdd_iban'];
89
+ } else {
90
+ $params['ACCOUNT.IBAN'] = $account['hgwdd_iban'];
91
+ };
92
+
93
+ if (is_int($account['hgwdd_bic'])) {
94
+ $params['ACCOUNT.BANK'] = $account['hgwdd_iban'];
95
+ } else {
96
+ $params['ACCOUNT.BIC'] = $account['hgwdd_iban'];
97
+ };
98
+
99
+ parent::log('Account data : '. print_r($account,1), 'DEBUG');
100
+
101
+ return $params ;
102
+
103
+ }
104
+ */
105
  }
app/code/community/HeidelpayCD/Edition/Model/Payment/Hcdiv.php CHANGED
@@ -3,6 +3,7 @@ class HeidelpayCD_Edition_Model_Payment_Hcdiv extends HeidelpayCD_Edition_Model_
3
  {
4
  protected $_code = 'hcdiv';
5
 
 
6
 
7
 
8
  }
3
  {
4
  protected $_code = 'hcdiv';
5
 
6
+ protected $_infoBlockType = 'hcd/info_invoice';
7
 
8
 
9
  }
app/code/community/HeidelpayCD/Edition/controllers/IndexController.php CHANGED
@@ -300,7 +300,7 @@ class HeidelpayCD_Edition_IndexController extends Mage_Core_Controller_Front_Act
300
 
301
  }
302
 
303
-
304
  // if order status is cancel redirect to cancel page
305
  if ($order->getStatus() == $payment->getStatusError()) {
306
  $this->_redirect('hcd/index/error', array('_forced_secure' => true, '_store_to_url' => true, '_nosid' => true));
@@ -312,7 +312,7 @@ class HeidelpayCD_Edition_IndexController extends Mage_Core_Controller_Front_Act
312
  $this->_redirect('hcd/index/success', array('_forced_secure' => true, '_store_to_url' => true, '_nosid' => true,'no_mail' => true));
313
  return;
314
  }
315
-
316
 
317
 
318
  $data = $payment->getHeidelpayUrl(false , $BasketId, $RefId);
@@ -341,12 +341,10 @@ class HeidelpayCD_Edition_IndexController extends Mage_Core_Controller_Front_Act
341
  $this->_redirectUrl($data['FRONTEND_REDIRECT_URL']);
342
  }
343
  $this->loadLayout();
344
- $this->log('RedirectUrl ' .$data['FRONTEND_REDIRECT_URL'] );
345
  $this->log('CCHolder ' .$payment->getCustomerName() );
346
- $this->getLayout()->getBlock('hcd_index')->setHcdUrl($data['FRONTEND_REDIRECT_URL']);
347
  $this->getLayout()->getBlock('hcd_index')->setHcdCode($payment->getCode());
348
- $this->getLayout()->getBlock('hcd_index')->setHcdBrands($data['CONFIG_BRANDS']);
349
- $this->getLayout()->getBlock('hcd_index')->setHcdHolder($payment->getCustomerName(true));
350
  } else {
351
  Mage::getModel('hcd/transaction')->saveTransactionData($data);
352
  Mage::getSingleton('core/session')->setHcdError($data['PROCESSING_RETURN']);
@@ -511,6 +509,8 @@ class HeidelpayCD_Edition_IndexController extends Mage_Core_Controller_Front_Act
511
 
512
  if ($PaymentCode[1] == 'RG') {
513
  if ($data['PROCESSING_RESULT'] == 'NOK'){
 
 
514
  $url = Mage::getUrl('hcd/index/error', array('_forced_secure' => true, '_store_to_url' => true, '_nosid' => true, 'HPError' => $data['PROCESSING_RETURN_CODE']));
515
  }else {
516
 
@@ -695,7 +695,7 @@ class HeidelpayCD_Edition_IndexController extends Mage_Core_Controller_Front_Act
695
  $this->log('PaymentCode '.$paymentCode);
696
 
697
  $this->log($type ." ". $methode);
698
- if ($methode == 'RC' or $methode == 'CP' or $methode == 'DB' or ($methode == 'FI' and $paymentCode == 'hcdbs' )) {
699
  Mage::helper('hcd/payment')->mapStatus (
700
  $xmlData,
701
  $order
300
 
301
  }
302
 
303
+ /*
304
  // if order status is cancel redirect to cancel page
305
  if ($order->getStatus() == $payment->getStatusError()) {
306
  $this->_redirect('hcd/index/error', array('_forced_secure' => true, '_store_to_url' => true, '_nosid' => true));
312
  $this->_redirect('hcd/index/success', array('_forced_secure' => true, '_store_to_url' => true, '_nosid' => true,'no_mail' => true));
313
  return;
314
  }
315
+ */
316
 
317
 
318
  $data = $payment->getHeidelpayUrl(false , $BasketId, $RefId);
341
  $this->_redirectUrl($data['FRONTEND_REDIRECT_URL']);
342
  }
343
  $this->loadLayout();
344
+ $this->log('RedirectUrl ' .$data['FRONTEND_PAYMENT_FRAME_URL'] );
345
  $this->log('CCHolder ' .$payment->getCustomerName() );
346
+ $this->getLayout()->getBlock('hcd_index')->setHcdUrl($data['FRONTEND_PAYMENT_FRAME_URL']);
347
  $this->getLayout()->getBlock('hcd_index')->setHcdCode($payment->getCode());
 
 
348
  } else {
349
  Mage::getModel('hcd/transaction')->saveTransactionData($data);
350
  Mage::getSingleton('core/session')->setHcdError($data['PROCESSING_RETURN']);
509
 
510
  if ($PaymentCode[1] == 'RG') {
511
  if ($data['PROCESSING_RESULT'] == 'NOK'){
512
+ $message = Mage::helper('hcd/payment')->handleError($data['PROCESSING_RETURN'],$data['PROCESSING_RETURN_CODE']);
513
+ $checkout = $this->getCheckout()->addError($message);
514
  $url = Mage::getUrl('hcd/index/error', array('_forced_secure' => true, '_store_to_url' => true, '_nosid' => true, 'HPError' => $data['PROCESSING_RETURN_CODE']));
515
  }else {
516
 
695
  $this->log('PaymentCode '.$paymentCode);
696
 
697
  $this->log($type ." ". $methode);
698
+ if ($methode == 'CB' or $methode == 'RC' or $methode == 'CP' or $methode == 'DB' or ($methode == 'FI' and $paymentCode == 'hcdbs' )) {
699
  Mage::helper('hcd/payment')->mapStatus (
700
  $xmlData,
701
  $order
app/code/community/HeidelpayCD/Edition/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <HeidelpayCD_Edition>
5
- <version>15.10.7</version>
6
  </HeidelpayCD_Edition>
7
  </modules>
8
  <global>
@@ -27,13 +27,13 @@
27
  </customer>
28
  </entities>
29
  </hcd_resource>
30
- <!--
31
  <sales>
32
  <rewrite>
33
  <order_pdf_invoice>HeidelpayCD_Edition_Model_Order_Pdf_Invoice</order_pdf_invoice>
34
  </rewrite>
35
- </sales>
36
- -->
37
  </models>
38
  <blocks>
39
  <hcd>
@@ -87,6 +87,16 @@
87
  </reportShippingToHeidelpay>
88
  </observers>
89
  </sales_order_shipment_save_before>
 
 
 
 
 
 
 
 
 
 
90
  </events>
91
  <template>
92
  <email>
@@ -223,7 +233,8 @@
223
  <sort_order>1</sort_order>
224
  <min_amount>0</min_amount>
225
  <max_amount>0</max_amount>
226
- <allowspecific>0</allowspecific>
 
227
  </hcdsu>
228
  <hcdgp>
229
  <group>hcd</group>
2
  <config>
3
  <modules>
4
  <HeidelpayCD_Edition>
5
+ <version>16.2.9</version>
6
  </HeidelpayCD_Edition>
7
  </modules>
8
  <global>
27
  </customer>
28
  </entities>
29
  </hcd_resource>
30
+ <!--
31
  <sales>
32
  <rewrite>
33
  <order_pdf_invoice>HeidelpayCD_Edition_Model_Order_Pdf_Invoice</order_pdf_invoice>
34
  </rewrite>
35
+ </sales>
36
+ -->
37
  </models>
38
  <blocks>
39
  <hcd>
87
  </reportShippingToHeidelpay>
88
  </observers>
89
  </sales_order_shipment_save_before>
90
+ <!--
91
+ <sales_order_invoice_save_after>
92
+ <observers>
93
+ <saveInvoice>
94
+ <class>hcd/observer</class>
95
+ <method>saveInvoice</method>
96
+ </saveInvoice>
97
+ </observers>
98
+ </sales_order_invoice_save_after>
99
+ -->
100
  </events>
101
  <template>
102
  <email>
233
  <sort_order>1</sort_order>
234
  <min_amount>0</min_amount>
235
  <max_amount>0</max_amount>
236
+ <allowspecific>1</allowspecific>
237
+ <specificcountry>BE,DE,IT,NL,AT,SI,ES</specificcountry>
238
  </hcdsu>
239
  <hcdgp>
240
  <group>hcd</group>
app/code/community/HeidelpayCD/Edition/etc/system.xml CHANGED
@@ -112,8 +112,7 @@
112
  <sections>
113
  <payment>
114
  <groups id="hcd" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
115
- <label>Heidelpay</label>
116
- <hcdcc translate="label">
117
  <label>Heidelpay Credit Card (hcd)</label>
118
  <frontend_type>text</frontend_type>
119
  <sort_order>50</sort_order>
@@ -1346,6 +1345,7 @@
1346
  </specificcountry>
1347
  </fields>
1348
  </hcdpf>
 
1349
  <hcdyt translate="label">
1350
  <label>Heidelpay Yapital (hcd)</label>
1351
  <frontend_type>text</frontend_type>
@@ -1431,7 +1431,7 @@
1431
  <show_in_store>1</show_in_store>
1432
  </specificcountry>
1433
  </fields>
1434
- </hcdyt>
1435
  <hcdmpa translate="label">
1436
  <label>Heidelpay MasterPass (hcd)</label>
1437
  <frontend_type>text</frontend_type>
112
  <sections>
113
  <payment>
114
  <groups id="hcd" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
115
+ <hcdcc translate="label">
 
116
  <label>Heidelpay Credit Card (hcd)</label>
117
  <frontend_type>text</frontend_type>
118
  <sort_order>50</sort_order>
1345
  </specificcountry>
1346
  </fields>
1347
  </hcdpf>
1348
+ <!-- REMOVED
1349
  <hcdyt translate="label">
1350
  <label>Heidelpay Yapital (hcd)</label>
1351
  <frontend_type>text</frontend_type>
1431
  <show_in_store>1</show_in_store>
1432
  </specificcountry>
1433
  </fields>
1434
+ </hcdyt> -->
1435
  <hcdmpa translate="label">
1436
  <label>Heidelpay MasterPass (hcd)</label>
1437
  <frontend_type>text</frontend_type>
app/design/adminhtml/default/default/template/hcd/Info/pdf/invoice.phtml ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ //load transactions data
4
+ $data = array(
5
+ 'IDENTIFICATION_SHORTID' => '',
6
+ 'CONNECTOR_ACCOUNT_HOLDER' => '',
7
+ 'CONNECTOR_ACCOUNT_IBAN' => '',
8
+ 'CONNECTOR_ACCOUNT_BIC' => ''
9
+
10
+ );
11
+
12
+ $TransactionId = ($this->getMethod()->getInfoInstance()->getLastTransId() === false) ? false : $this->getMethod()->getInfoInstance()->getLastTransId() ;
13
+
14
+ if ($TransactionId !== False)
15
+ $data = Mage::getModel('hcd/transaction')->loadLastTransactionDataByUniqeId((string)$TransactionId);
16
+
17
+ // titel
18
+ echo $this->escapeHtml($this->getMethod()->getTitle()); ?>
19
+ {{pdf_row_separator}}
20
+ <?php echo $this->__('Holder') . " : " . $this->escapeHtml($data['CONNECTOR_ACCOUNT_HOLDER']) ?>
21
+ {{pdf_row_separator}}
22
+ <?php echo $this->__('IBAN') . " : " . $this->escapeHtml($data['CONNECTOR_ACCOUNT_IBAN']) ?>
23
+ {{pdf_row_separator}}
24
+ <?php echo $this->__('BIC') . " : " . $this->escapeHtml($data['CONNECTOR_ACCOUNT_BIC']) ?>
25
+ {{pdf_row_separator}}
26
+ <?php echo $this->__('Identification'). " : " . $this->escapeHtml($data['IDENTIFICATION_SHORTID']) ?>
27
+
app/design/frontend/base/default/layout/hcd.xml CHANGED
@@ -21,6 +21,10 @@
21
  <reference name="content">
22
  <block type="hcd/index" name="hcd_index" template="hcd/index.phtml"/>
23
  </reference>
 
 
 
 
24
 
25
  </hcd_index_index>
26
 
21
  <reference name="content">
22
  <block type="hcd/index" name="hcd_index" template="hcd/index.phtml"/>
23
  </reference>
24
+ <reference name="head">
25
+ <action method="addCss"><name>css/heidelpaycd.css</name></action>
26
+ <action method="addJS"><name>hcd/heidelpaypci3.js</name></action>
27
+ </reference>
28
 
29
  </hcd_index_index>
30
 
app/design/frontend/base/default/template/hcd/Info/pdf/invoice.phtml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <div >
2
+ Konto: Test123
3
+ IBAN: DEPASOFSAPFPEWjsfkds
4
+ BIC: sporfkposf
5
+ Verw: kacdas�d�awdewq
6
+ </div>
app/design/frontend/base/default/template/hcd/form/creditcard.phtml CHANGED
@@ -45,54 +45,10 @@ $recognation = Mage::getStoreConfig($path.'recognition', $storeId);
45
  if ($recognation != 0) {
46
 
47
  ?>
48
- <div id="<?php echo $_code ?>_hpform" <?php echo (isset($userData['payment_data']['ACCOUNT_NUMBER'])) ? 'style="display: none"': ''; ?>>
49
- <input type="hidden" name="<?php echo $_code ?>_URL" id="<?php echo $_code ?>_URL" value="<?php echo $data['FRONTEND_REDIRECT_URL'] ?>"/>
50
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card brand') ?></label>
51
- <div class="input-box">
52
- <select class="input-text <?php echo $_code ?>_ACCOUNT_BRAND" id="cardBrand" style="width: 250px">
53
- <?php
54
- foreach (json_decode($data['CONFIG_BRANDS'], true) AS $value => $brand) {
55
- echo '<option value='.$value.' >'.$brand.'</option>' ;
56
- }
57
- ?>
58
- </select>
59
- </div>
60
-
61
-
62
 
63
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card number') ?></label>
64
- <div class="input-box">
65
- <input type="text" class="input-text <?php echo $_code ?>_ACCOUNT_NUMBER required-entry" value="<?php echo (isset($userData['payment_data']['ACCOUNT_NUMBER'])) ? '*****' : ''; ?>" id="cardNumber" />
66
- </div>
67
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card holder') ?></label>
68
- <div class="input-box">
69
- <input type="text" class="input-text <?php echo $_code ?>_ACCOUNT_HOLDER required-entry" id="cardHolder" value="<?php echo $data['NAME_GIVEN'].' '.$data['NAME_FAMILY'] ;?>" /><br />
70
- </div>
71
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card expiry') ?></label>
72
- <div class="input-box">
73
-
74
- <select class="input-text <?php echo $_code ?>_ACCOUNT_EXPIRY_MONTH" id="accountExpiryMonth" style="width: 150px" >
75
- <option><?php echo $this->__('month') ?></option>
76
- <?php for ($i = 1; $i <=12 ; $i++ ) {
77
- echo '<option value="'.$i.'">'.$i.'</option>';
78
- }
79
- ?>
80
- </select>
81
- <select class="input-text <?php echo $_code ?>_ACCOUNT_EXPIRY_YEAR" id="accountExpiryYear" style="width: 150px">
82
- <option><?php echo $this->__('year') ?></option>
83
- <?php $year = date('Y');
84
- $to = $year + 10;
85
- for ($k = $year; $k <=$to; $k++ ) {
86
- echo '<option value="'.$k.'">'.$k.'</option>';
87
- }
88
- ?>
89
- </select>
90
- </div>
91
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Verification number') ?></label>
92
- <div class="input-box">
93
- <input type="text" class="input-text <?php echo $_code ?>_ACCOUNT_VERIFICATION required-entry" id="verification" value="<?php echo (isset($userData['payment_data']['ACCOUNT_NUMBER'])) ? '*****' : ''; ?>"/>
94
  </div>
95
- </div>
96
 
97
  <?php } ?>
98
  <div class="hcd-payment-desc">
45
  if ($recognation != 0) {
46
 
47
  ?>
48
+ <div id="<?php echo $_code ?>_hpform" <?php echo (isset($userData['payment_data']['ACCOUNT_NUMBER'])) ? 'style="display: none"': ''; ?>>
 
 
 
 
 
 
 
 
 
 
 
 
 
49
 
50
+ <iframe id="<?php echo $_code ?>_payment_frame" class="<?php echo $_code ?>_payment_frame" src="<?php echo trim($data['FRONTEND_PAYMENT_FRAME_URL']) ?>"></iframe>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  </div>
 
52
 
53
  <?php } ?>
54
  <div class="hcd-payment-desc">
app/design/frontend/base/default/template/hcd/form/debit.phtml CHANGED
@@ -1,46 +1,55 @@
1
- <?php $_code=$this->getMethodCode();
2
-
3
- $path = "payment/".$_code."/";
4
- $storeId = Mage::app()->getStore()->getId();
5
- $recognation = Mage::getStoreConfig($path.'recognition', $storeId);
6
- /*
7
- * Look for customer recognation
8
- */
9
-
10
- $hash = $this->getMethod()->getShippingHash();
11
- $userData = array();
12
-
13
- $cId = $this->getMethod()->getCustomerId();
14
-
15
- if ( $recognation == 1 and $cId != 0) { // only if shipping address is unchanged
16
- $hash = $this->getMethod()->getShippingHash();
17
- $userData = $this->getMethod()->getCustomerData();
18
- if (array_key_exists('payment_data', $userData)) {
19
- if ( $userData['payment_data']['SHIPPPING_HASH'] != $hash)
20
- $userData = array();
21
- }
22
- } elseif ($recognation == 2 and $cId != 0) // allways
23
- $userData = $this->getMethod()->getCustomerData();
24
-
25
- ?>
26
-
27
- <div class="form-list hcd-payment-info" id="payment_form_<?php echo $_code ?>" style="display: none;">
28
- <div class="input-box">
29
- <label for="<?php echo $_code ?>_holder" class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Owner') ?></label>
30
-
31
- <input type="text" title="<?php echo $this->__('Owner:') ?>" class="input-text required-entry" id="<?php echo $_code ?>_holder" name="payment[<?php echo $_code ?>_holder]" value="<?php echo $this->htmlEscape((isset( $userData['payment_data']['ACCOUNT.HOLDER'])) ? $userData['payment_data']['ACCOUNT.HOLDER'] :$this->getMethod()->getCustomerName()) ?>" />
32
- </div>
33
- <div class="input-box" >
34
- <label for="<?php echo $_code ?>_iban" class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Account number or iban') ?></label>
35
-
36
- <input type="text" title="<?php echo $this->__('Account number or iban') ?>" class="input-text required-entry validate-alphanum" id="<?php echo $_code ?>_iban" name="payment[<?php echo $_code ?>_iban]" value="<?php if (isset($userData['payment_data']['ACCOUNT.IBAN'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.IBAN']) ; if (isset($userData['payment_data']['ACCOUNT.NUMBER'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.NUMBER']) ; ?>" size="25">
37
- </div>
38
- <div class="input-box">
39
- <label for="<?php echo $_code ?>_bic" class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Bank code or bic') ?></label>
40
- <input type="text" title="<?php echo $this->__('Bank code or bic:') ?>" class="input-text required-entry validate-alphanum" id="<?php echo $_code ?>_bic" name="payment[<?php echo $_code ?>_bic]" value="<?php if (isset($userData['payment_data']['ACCOUNT.BIC'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.BIC']) ; if (isset($userData['payment_data']['ACCOUNT.BANK'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.BANK']) ; ?>" size="25"/>
41
- </div>
42
- <div class="hcd-payment-desc">
43
- <?php echo $this->__('Desc'.$_code);?>
44
- </div>
45
-
 
 
 
 
 
 
 
 
 
46
  </div>
1
+ <?php $_code=$this->getMethodCode();
2
+
3
+ $path = "payment/".$_code."/";
4
+ $storeId = Mage::app()->getStore()->getId();
5
+ $recognation = Mage::getStoreConfig($path.'recognition', $storeId);
6
+ /*
7
+ * Look for customer recognation
8
+ */
9
+
10
+ $hash = $this->getMethod()->getShippingHash();
11
+ $userData = array();
12
+
13
+ $cId = $this->getMethod()->getCustomerId();
14
+
15
+ if ( $recognation == 1 and $cId != 0) { // only if shipping address is unchanged
16
+ $hash = $this->getMethod()->getShippingHash();
17
+ $userData = $this->getMethod()->getCustomerData();
18
+ if (array_key_exists('payment_data', $userData)) {
19
+ if ( $userData['payment_data']['SHIPPPING_HASH'] != $hash)
20
+ $userData = array();
21
+ }
22
+ } elseif ($recognation == 2 and $cId != 0) // allways
23
+ $userData = $this->getMethod()->getCustomerData();
24
+
25
+ ?>
26
+
27
+ <div class="form-list hcd-payment-info" id="payment_form_<?php echo $_code ?>" style="display: none;">
28
+ <div class="input-box">
29
+ <label for="<?php echo $_code ?>_holder" class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Owner') ?></label>
30
+
31
+ <input type="text" title="<?php echo $this->__('Owner:') ?>" class="input-text required-entry" id="<?php echo $_code ?>_holder" name="payment[<?php echo $_code ?>_holder]" value="<?php echo $this->htmlEscape((isset( $userData['payment_data']['ACCOUNT.HOLDER'])) ? $userData['payment_data']['ACCOUNT.HOLDER'] :$this->getMethod()->getCustomerName()) ?>" />
32
+ </div>
33
+ <div class="input-box" >
34
+ <label for="<?php echo $_code ?>_iban" class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Account number or iban') ?></label>
35
+
36
+ <input onkeyup="Heidelpay.checkIban.getInstance().check(this);" type="text" title="<?php echo $this->__('Account number or iban') ?>" class="input-text required-entry validate-alphanum" id="<?php echo $_code ?>_iban" name="payment[<?php echo $_code ?>_iban]" value="<?php if (isset($userData['payment_data']['ACCOUNT.IBAN'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.IBAN']) ; if (isset($userData['payment_data']['ACCOUNT.NUMBER'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.NUMBER']) ; ?>" size="25">
37
+ </div>
38
+ <?php
39
+ if(isset($userData['payment_data']['ACCOUNT.IBAN'])){
40
+ if(preg_match('/^(D|d)(E|e)/', $userData['payment_data']['ACCOUNT.IBAN'])){
41
+ $display = 'style="display: none;"';
42
+ }else{
43
+ $display = '';
44
+ }
45
+ }
46
+ ?>
47
+ <div class="input-box" <?php print $display; ?>>
48
+ <label for="<?php echo $_code ?>_bic" class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Bank code or bic') ?></label>
49
+ <input type="text" title="<?php echo $this->__('Bank code or bic:') ?>" class="input-text required-entry validate-alphanum" id="<?php echo $_code ?>_bic" name="payment[<?php echo $_code ?>_bic]" value="<?php if (isset($userData['payment_data']['ACCOUNT.BIC'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.BIC']) ; if (isset($userData['payment_data']['ACCOUNT.BANK'])) echo $this->htmlEscape($userData['payment_data']['ACCOUNT.BANK']) ; ?>" size="25"/>
50
+ </div>
51
+ <div class="hcd-payment-desc">
52
+ <?php echo $this->__('Desc'.$_code);?>
53
+ </div>
54
+
55
  </div>
app/design/frontend/base/default/template/hcd/index.phtml CHANGED
@@ -1,68 +1,25 @@
1
  <div class="block block-list block-compare">
2
  <div class="block-title"><strong><span><?php echo $this->__('Please confirm your payment:')?></span></strong></div>
3
  <div style="margin: 10px" class="block-hcd-payment ">
4
- <?php if ($this->getHcdUrl() !== false) { ?>
5
- <form method="post" action="<?php echo trim($this->getHcdUrl()) ?>" id="hcd" autocomplete="off">
6
- <p>
7
  <?php /* Only for creditcard and debitcard */
8
 
9
  if ($this->getHcdCode() == "hcdcc" or
10
  $this->getHcdCode() == "hcddc") {
11
  ?>
12
- <span class="input-box">
13
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card brand') ?></label><br />
14
- <select id="cardBrand" class="input-text validate-select" name="ACCOUNT.BRAND">
15
- <?php
16
- foreach (json_decode($this->getHcdBrands(), true) AS $value => $brand)
17
- echo '<option value='.$value.' >'.$brand.'</option>' ;
18
- ?>
19
- </select><br />
20
- </span>
21
- <span class="input-box">
22
-
23
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card number') ?></label><br />
24
- <input type="text" class="input-text required-entry" value="" id="cardNumber" name="ACCOUNT.NUMBER"><br />
25
- </span>
26
- <span class="input-box">
27
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card holder') ?></label><br />
28
- <input type="input" class="input-text required-entry" value="<?php echo $this->htmlEscape($this->getHcdHolder()) ?>" id="cardHolder" name="ACCOUNT.HOLDER"><br />
29
- </span>
30
- <span class="input-box">
31
- <label class="required hcd-singleline-label"><em>*</em><?php echo $this->__('Card expiry') ?></label><br />
32
- <select class="input-text validate-select" name="ACCOUNT.EXPIRY_MONTH">
33
- <option><?php echo $this->__('month') ?></option>
34
- <?php for ($i = 1; $i <=12 ; $i++ )
35
- echo '<option>'.$i.'</option>';
36
- ?>
37
- </select>
38
- <select class="input-text validate-select" name="ACCOUNT.EXPIRY_YEAR">
39
- <option><?php echo $this->__('year') ?></option>
40
- <?php $year = date('Y');
41
- $to = $year + 10 ;
42
- echo $year . ' ' .$to ;
43
- for ($k = $year; $k <=$to; $k++ )
44
- echo '<option>'.$k.'</option>';
45
- ?>
46
- </select><br />
47
- </span>
48
- <span class="input-box">
49
- <label><?php echo $this->__('Verification number') ?></label><br />
50
- <input type="text" class="input-text validate-cc-cvn" value="" id="verification" name="ACCOUNT.VERIFICATION" style="width: 150px"><br />
51
- </span>
52
  <?php }; /* end creditcard and debitcard */ ?>
53
  <br /><br />
54
  <button id="button_hcd" class="button" title="<?php echo $this->__('pay now') ?>" type="submit">
55
  <span>
56
- <span><?php echo $this->__('pay now') ?></span>
57
  </span>
58
  </button>
59
- </p>
60
- </form>
61
- <script type="text/javascript">
62
- //< ![CDATA[
63
- var customForm = new VarienForm('hcd');
64
- //]]>
65
- </script>
66
  <?php }; ?>
 
67
  </div>
68
  </div>
1
  <div class="block block-list block-compare">
2
  <div class="block-title"><strong><span><?php echo $this->__('Please confirm your payment:')?></span></strong></div>
3
  <div style="margin: 10px" class="block-hcd-payment ">
4
+ <form method="post" action="#" id="hcdForm" autocomplete="off">
5
+ <?php if ($this->getHcdUrl() !== false) { ?>
 
6
  <?php /* Only for creditcard and debitcard */
7
 
8
  if ($this->getHcdCode() == "hcdcc" or
9
  $this->getHcdCode() == "hcddc") {
10
  ?>
11
+ <iframe id="paymentFrame" class="<?php echo $this->getHcdCode() ?>_payment_frame" src="<?php echo trim($this->getHcdUrl()) ?>"></iframe>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  <?php }; /* end creditcard and debitcard */ ?>
13
  <br /><br />
14
  <button id="button_hcd" class="button" title="<?php echo $this->__('pay now') ?>" type="submit">
15
  <span>
16
+ <span class="heidelpay-pay-now"><?php echo $this->__('pay now') ?></span>
17
  </span>
18
  </button>
19
+ <span id="heidelpay-please-wait" style="display: none;">
20
+ <img src="<?php echo $this->getSkinUrl('images/opc-ajax-loader.gif') ?>" alt="<?php echo $this->__('Please wait ...') ?>" title="<?php echo $this->__('Please wait ...') ?>" class="v-middle" /> <?php echo $this->__('Please wait ...') ?>
21
+ </span>
 
 
 
 
22
  <?php }; ?>
23
+ </form>
24
  </div>
25
  </div>
app/locale/de_DE/HeidelpayCD_Edition.csv CHANGED
@@ -55,7 +55,7 @@
55
  "Direct Debit","Lastschrift"
56
  "SOFORT &Üuml;berweisung","SOFORT &Üuml;berweisung"
57
  "Giropay","Giropay"
58
- "Pay Pal","Pay Pal"
59
  "EPS","EPS"
60
  "iDeal","iDeal"
61
  "Prepayment","Vorkasse"
@@ -102,6 +102,9 @@
102
  "General Settings Heidelpay","Heidelpay Einstellungen"
103
  "about Heidelpay","&Uuml;ber Heidelpay"
104
  "about MasterPass","&uuml;ber MasterPass"
 
 
 
105
 
106
  "Heidelpay Credit Card (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Kreditkarte"
107
  "Heidelpay Direct Debit (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Lastschrift"
@@ -127,6 +130,8 @@
127
  "Bankcode","BLZ"
128
  "IBAN","IBAN"
129
  "BIC","BIC"
 
 
130
  "Owner","Inhaber"
131
  "Change at MasterPass","&Auml;ndern bei MasterPass"
132
  "Please enter account no.","Bitte Konto angeben."
@@ -175,3 +180,5 @@
175
  "HPError-800.100.171","Bitte w&auml;hlen Sie eine andere Zahlart"
176
  "HPError-800.300.101","Bitte w&auml;hlen Sie eine andere Zahlart"
177
 
 
 
55
  "Direct Debit","Lastschrift"
56
  "SOFORT &Üuml;berweisung","SOFORT &Üuml;berweisung"
57
  "Giropay","Giropay"
58
+ "Pay Pal","PayPal"
59
  "EPS","EPS"
60
  "iDeal","iDeal"
61
  "Prepayment","Vorkasse"
102
  "General Settings Heidelpay","Heidelpay Einstellungen"
103
  "about Heidelpay","&Uuml;ber Heidelpay"
104
  "about MasterPass","&uuml;ber MasterPass"
105
+ "Please wait ...","Bitte warten ..."
106
+ "chargeback","Chargeback"
107
+ "debit failed","Lastschriftabbuchung fehlgeschlagen"
108
 
109
  "Heidelpay Credit Card (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Kreditkarte"
110
  "Heidelpay Direct Debit (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Lastschrift"
130
  "Bankcode","BLZ"
131
  "IBAN","IBAN"
132
  "BIC","BIC"
133
+ "Holder","Kontoinhaber"
134
+ "Identification","Verwendungszweck"
135
  "Owner","Inhaber"
136
  "Change at MasterPass","&Auml;ndern bei MasterPass"
137
  "Please enter account no.","Bitte Konto angeben."
180
  "HPError-800.100.171","Bitte w&auml;hlen Sie eine andere Zahlart"
181
  "HPError-800.300.101","Bitte w&auml;hlen Sie eine andere Zahlart"
182
 
183
+
184
+
app/locale/en_US/HeidelpayCD_Edition.csv CHANGED
@@ -55,7 +55,7 @@
55
  "Direct Debit","Direct Debit"
56
  "SOFORT &Üuml;berweisung","SOFORT &Üuml;berweisung"
57
  "Giropay","Giropay"
58
- "Pay Pal","Pay Pal"
59
  "EPS","EPS"
60
  "iDeal","iDeal"
61
  "Prepayment","Prepayment"
@@ -101,6 +101,9 @@
101
  "General Settings Heidelpay","General Settings Heidelpay"
102
  "about Heidelpay","about Heidelpay"
103
  "about MasterPass","about MasterPass"
 
 
 
104
 
105
  "Heidelpay Credit Card (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Credit Card"
106
  "Heidelpay Direct Debit (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Direct Debit"
@@ -126,6 +129,8 @@
126
  "Bankcode","Bankcode"
127
  "IBAN","IBAN"
128
  "BIC","BIC"
 
 
129
  "Owner","Owner"
130
  "Change at MasterPass":"Change at MasterPass"
131
  "Please enter account no.","Please enter account no."
55
  "Direct Debit","Direct Debit"
56
  "SOFORT &Üuml;berweisung","SOFORT &Üuml;berweisung"
57
  "Giropay","Giropay"
58
+ "Pay Pal","PayPal"
59
  "EPS","EPS"
60
  "iDeal","iDeal"
61
  "Prepayment","Prepayment"
101
  "General Settings Heidelpay","General Settings Heidelpay"
102
  "about Heidelpay","about Heidelpay"
103
  "about MasterPass","about MasterPass"
104
+ "Please wait ...","Please wait ..."
105
+ "chargeback","chargeback"
106
+ "debit failed","debit failed"
107
 
108
  "Heidelpay Credit Card (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Credit Card"
109
  "Heidelpay Direct Debit (hcd)","<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAAXNSR0IArs4c6QAAADBQTFRFODg43d3dt7e3KCgoREREU1NTAQEBEhIS////scfeeXl57OzsqKioXV1dk5OTnZ2dfmcBJgAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDgsIBJoD8v4AAABKSURBVAjXY5gJBQwzOsCgE53RCmM0AxknQIwGIMOiOyxBA8TgcFson9YCZIRzdHT0JQAZZSA1y4CMIhCjDaQGxOjtxGkFkAFzBgC9LkKOoh4LJgAAAABJRU5ErkJggg==' style='margin-right: 5px'/> Heidelpay CD-Edition Direct Debit"
129
  "Bankcode","Bankcode"
130
  "IBAN","IBAN"
131
  "BIC","BIC"
132
+ "Holder","Holder"
133
+ "Identification","Please use the descriptor"
134
  "Owner","Owner"
135
  "Change at MasterPass":"Change at MasterPass"
136
  "Please enter account no.","Please enter account no."
js/hcd/heidelpaycd.js CHANGED
@@ -1,132 +1,137 @@
1
- /*
2
- Released under the GNU General Public License (Version 2)
3
- [http://www.gnu.org/licenses/gpl-2.0.html]
4
- */
5
-
6
- //<![CDATA[
7
- var Heidelpay = {} ;
8
-
9
- console.log('Heidelpay CD-Edition');
10
-
11
- Heidelpay.Registration = Class.create({
12
-
13
-
14
- initialize: function() {
15
- document.observe('dom:loaded', this.register.bind(this));
16
- Ajax.Responders.register(this);
17
- },
18
- register: function () {
19
- if (!window.review || review.overriddenOnSave || review.overriddenOnComplete) {
20
- return this;
21
- }
22
-
23
- var actPayment = $$('input:checked[type=radio][name=\'payment[method]\']')[0].id.replace(/p_method_/,"");
24
-
25
- review.overriddenOnComplete = function (transport) {
26
- return true;
27
- }
28
-
29
- review.overriddenOnSave = function (transport) {
30
-
31
- //checkout.setLoadWaiting('payment');
32
-
33
- var url = $(actPayment+'_URL').value;
34
-
35
- //console.log('Heidelpay URL '+url);
36
-
37
- var form = new Element('form', {
38
- style:'display:none',
39
- action: url ,
40
- method: "POST"
41
- });
42
- $(document.body).insert(form);
43
-
44
- var data = {
45
- ACCOUNT_BRAND: $$("." + actPayment + "_ACCOUNT_BRAND")[0].value ,
46
- ACCOUNT_NUMBER: $$("." + actPayment +"_ACCOUNT_NUMBER")[0].value,
47
- ACCOUNT_HOLDER: $$("." + actPayment + "_ACCOUNT_HOLDER")[0].value,
48
- ACCOUNT_EXPIRY_MONTH: $$("." + actPayment + "_ACCOUNT_EXPIRY_MONTH")[0].value,
49
- ACCOUNT_EXPIRY_YEAR: $$("." + actPayment + "_ACCOUNT_EXPIRY_YEAR")[0].value,
50
- ACCOUNT_VERIFICATION: $$("." + actPayment + "_ACCOUNT_VERIFICATION")[0].value
51
- };
52
-
53
- for ( var key in data ) {
54
- form.insert(
55
- {bottom: new Element(
56
- 'input',
57
- {type: 'text', name: key.replace(/_/,"."), value: data[key] }
58
- )}
59
- );
60
-
61
- };
62
-
63
- /*form.insert(
64
- {bottom: new Element(
65
- 'input',
66
- {type: 'submit', name: 'submit', value: 'submit' }
67
- )}
68
- );
69
- */
70
- //checkout.setLoadWaiting('payment');
71
- form.submit();
72
-
73
- return true;
74
-
75
- }
76
-
77
- if ( actPayment == 'hcdcc' || actPayment == 'hcddc' ) {
78
- var newreg = $$('input:checked[type=radio][name=\''+actPayment+'_use_again\']')[0].value ;
79
- if ( newreg == 1) {
80
- review.onSave = review.overriddenOnSave.bind(review);
81
- review.onComplete = review.overriddenOnComplete.bind(review);
82
-
83
- }
84
- }
85
- },
86
- onComplete: function () {
87
- this.register.defer();
88
- },
89
-
90
-
91
- });
92
-
93
- new Heidelpay.Registration();
94
-
95
-
96
- Heidelpay.toggle = Class.create({
97
- hpform: function ( actPayment, change ) {
98
-
99
- var replace = '';
100
-
101
- $(actPayment + "_hpform").toggle() ;
102
-
103
- if (change == 'false') replace = '***';
104
-
105
- $$("." + actPayment +"_ACCOUNT_NUMBER")[0].value = replace;
106
- $$("." + actPayment + "_ACCOUNT_VERIFICATION")[0].value = replace;
107
-
108
- },
109
- button: function (url) {
110
-
111
-
112
- $$('.btn-hcdmpa').each(Element.toggle);
113
-
114
- $$(".btn-checkout").each(Element.toggle);
115
-
116
- $$(".masterpass-please-wait").each(Element.toggle);
117
-
118
- window.location.href = url ;
119
-
120
- }
121
- });
122
-
123
-
124
- Heidelpay.toggle.getInstance = function () {
125
- if (!this.instance) {
126
- this.instance = new this();
127
- }
128
- return this.instance;
129
- };
130
-
131
-
 
 
 
 
 
132
  //]]>
1
+ /*
2
+ Released under the GNU General Public License (Version 2)
3
+ [http://www.gnu.org/licenses/gpl-2.0.html]
4
+ */
5
+
6
+ //<![CDATA[
7
+ var Heidelpay = {};
8
+ console.log('Heidelpay CD-Edition');
9
+
10
+ Heidelpay.Registration = Class.create({
11
+
12
+ initialize: function() {
13
+ this.once = 1;
14
+ document.observe('dom:loaded', this.register.bind(this));
15
+ Ajax.Responders.register(this);
16
+ },
17
+ register: function () {
18
+
19
+ if (checkout.currentStep == 'payment') {
20
+ Heidelpay.toggle.getInstance().resetOnce();
21
+ }
22
+
23
+
24
+ if (!window.review || review.overriddenOnSave || review.overriddenOnComplete) {
25
+ return this;
26
+ }
27
+
28
+
29
+ var actPayment = $$('input:checked[type=radio][name=\'payment[method]\']')[0].id.replace(/p_method_/,"");
30
+
31
+ if ( actPayment == 'hcdcc' || actPayment == 'hcddc' ) {
32
+ var newreg = $$('input:checked[type=radio][name=\''+actPayment+'_use_again\']')[0].value ;
33
+ if ( Heidelpay.toggle.getInstance().getOnce() == 0) {
34
+ var newreg = $$('input:checked[type=radio][name=\''+actPayment+'_use_again\']')[0].value ;
35
+ if ( newreg == 1 && checkout.currentStep == 'review') {
36
+ var url = $(actPayment+'_payment_frame').readAttribute('src');
37
+ var arr = url.split("/");
38
+ var targetOrigin = arr[0] + "//" + arr[2];
39
+ var paymentFrameIframe = $(actPayment+'_payment_frame');
40
+ var data = {};
41
+ checkout.setLoadWaiting('review');
42
+ paymentFrameIframe.contentWindow.postMessage(JSON.stringify(data), targetOrigin);
43
+
44
+ if (window.addEventListener){ // W3C DOM
45
+ window.addEventListener('message', receiveMessage);
46
+ }else if (window.attachEvent) { // IE DOM
47
+ window.attachEvent('onmessage', receiveMessage);
48
+ }
49
+ Heidelpay.toggle.getInstance().setOnce();
50
+ }
51
+
52
+ }
53
+ }
54
+
55
+ },
56
+ onComplete: function () {
57
+ this.register.defer();
58
+ },
59
+
60
+ });
61
+
62
+ new Heidelpay.Registration();
63
+
64
+ Heidelpay.toggle = Class.create({
65
+ initialize: function() {
66
+ this.once = 0;
67
+ },
68
+ getOnce: function() {
69
+ return this.once ;
70
+ },
71
+ setOnce: function() {
72
+ this.once++
73
+ },
74
+ resetOnce: function() {
75
+ this.once = 0;
76
+ },
77
+
78
+ hpform: function ( actPayment, change ) {
79
+ var replace = '';
80
+ $(actPayment + "_hpform").toggle() ;
81
+ },
82
+ button: function (url) {
83
+ $$('.btn-hcdmpa').each(Element.toggle);
84
+ $$(".btn-checkout").each(Element.toggle);
85
+ $$(".masterpass-please-wait").each(Element.toggle);
86
+
87
+ window.location.href = url ;
88
+ }
89
+ });
90
+
91
+ Heidelpay.toggle.getInstance = function () {
92
+ if (!this.instance) {
93
+ this.instance = new this();
94
+ }
95
+ return this.instance;
96
+ };
97
+
98
+ Heidelpay.checkIban = Class.create({
99
+ check: function(elem){
100
+ var value = $(elem).getValue();
101
+ var iban_id = $(elem).identify();
102
+ var prefix = iban_id.split('_',1);
103
+ var bic_id = prefix[0] + '_bic';
104
+
105
+ if($(bic_id) != undefined){
106
+ if(value.match(/^(D|d)(E|e)/)){
107
+ $(bic_id).up().hide();
108
+ $(bic_id).disable();
109
+ }else{
110
+ $(bic_id).up().show();
111
+ $(bic_id).enable();
112
+ }
113
+ }
114
+ }
115
+ });
116
+
117
+ Heidelpay.checkIban.getInstance = function(){
118
+ if(!this.instance){
119
+ this.instance = new this();
120
+ }
121
+ return this.instance;
122
+ }
123
+
124
+ function receiveMessage(e) {
125
+
126
+ var recMsg = JSON.parse(e.data);
127
+ //console.log(e.data);
128
+ if (recMsg["POST.VALIDATION"] == "NOK" || recMsg["PROCESSING.RESULT"] == 'NOK') {
129
+ checkout.setLoadWaiting(false);
130
+ checkout.back();
131
+ Heidelpay.toggle.getInstance().resetOnce();
132
+ } else {
133
+ checkout.setLoadWaiting(false);
134
+ }
135
+
136
+ }
137
  //]]>
js/hcd/heidelpaypci3.js ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.observe('dom:loaded', function(){
2
+ // Get the target origin from the FRONTEND.PAYMENT_FRAME_URL parameter
3
+ var targetOrigin = getDomainFromUrl($('paymentFrame').readAttribute('src'));
4
+
5
+ // ### Sending postMessages ###
6
+
7
+
8
+
9
+ var paymentFrameForm = $('hcdForm');
10
+ var paymentFrameIframe = $('paymentFrame');
11
+
12
+ // Add an event listener that will execute the sendMessage() function
13
+ // when the send button is clicked.
14
+ if (paymentFrameForm.addEventListener){ // W3C DOM
15
+ paymentFrameForm.addEventListener('submit', sendMessage);
16
+ }else if (paymentFrameForm.attachEvent) { // IE DOM
17
+ paymentFrameForm.attachEvent('onsubmit', sendMessage);
18
+ }
19
+
20
+ // A function to handle sending messages.
21
+ function sendMessage(e) {
22
+ // Prevent any default browser behaviour.
23
+ $('button_hcd').toggle();
24
+ $('heidelpay-please-wait').toggle();
25
+
26
+ if(e.preventDefault) {
27
+ e.preventDefault();
28
+ } else {
29
+ e.returnValue = false;
30
+ }
31
+
32
+ // save the form data in an object
33
+ var data = {};
34
+
35
+ /*
36
+ for (var i = 0, len = paymentFrameForm.length; i < len; ++i) {
37
+ var input = paymentFrameForm[i];
38
+ if (input.name) {
39
+ data[input.name] = input.value;
40
+ }
41
+ }
42
+ */
43
+
44
+ // Send a json message with the form data to the iFrame receiver window.
45
+ paymentFrameIframe.contentWindow.postMessage(JSON.stringify(data), targetOrigin);
46
+ }
47
+
48
+ // ### Utils ###
49
+
50
+ // extract protocol, domain and port from url
51
+ function getDomainFromUrl(url) {
52
+ var arr = url.split("/");
53
+ return arr[0] + "//" + arr[2];
54
+ }
55
+
56
+
57
+ // Setup an event listener that calls receiveMessage() when the window
58
+ // receives a new MessageEvent.
59
+ if (window.addEventListener){ // W3C DOM
60
+ window.addEventListener('message', receiveMessage);
61
+ }else if (window.attachEvent) { // IE DOM
62
+ window.attachEvent('onmessage', receiveMessage);
63
+ }
64
+
65
+ // ### Receiving postMessages ###
66
+
67
+ function receiveMessage(e) {
68
+
69
+ // Check to make sure that this message came from the correct domain.
70
+ if (e.origin !== targetOrigin){
71
+ return;
72
+ }
73
+ var recMsg = JSON.parse(e.data);
74
+ if (recMsg["POST.VALIDATION"] == "NOK") {
75
+ $('button_hcd').toggle();
76
+ $('heidelpay-please-wait').toggle();
77
+ }
78
+
79
+ }
80
+
81
+ });
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HeidelpayCDEdition</name>
4
- <version>15.10.7</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -39,11 +39,13 @@ Telefon: +49 (0) 6221 / 65 170-20&lt;br /&gt;&#xD;
39
  E-Mail: sales@heidelpay.de&lt;br /&gt;&#xD;
40
  Internet: www.heidelpay.de&lt;br /&gt;&#xD;
41
  </description>
42
- <notes>- bugfix masterpass alway activ</notes>
 
 
43
  <authors><author><name>Heidelberger Payment GmbH</name><user>Heidelpay</user><email>magento@heidelpay.de</email></author></authors>
44
- <date>2015-10-07</date>
45
- <time>11:37:30</time>
46
- <contents><target name="magecommunity"><dir name="HeidelpayCD"><dir name="Edition"><dir name="Block"><file name="Abstract.php" hash="e589f421bf86a643921b11d75fcbb8fb"/><file name="Button.php" hash="64dfc3786020559d2c8e2377d5c8281f"/><dir name="Form"><file name="Creditcard.php" hash="eca2833e42df4e57485afb8aeb0d6a0f"/><file name="Debit.php" hash="fb2ecd8695d813e34e4ab6b6501d359e"/><file name="Desconly.php" hash="912dd8ab02ccc24b7121d6f05255c15d"/><file name="Eps.php" hash="8698a923d04580654cacecfff64268c8"/><file name="Giropay.php" hash="aba0b69429706944ae1ac4466ab9ce3b"/><file name="Ideal.php" hash="a31bd92c30af0718e6f4347f14eba963"/><file name="Masterpass.php" hash="7fb40e7effa042586ae5ac057f12e1a9"/><file name="Postfinance.php" hash="b3a91389b3fb235eb113a919161d2476"/></dir><file name="Index.php" hash="e13d55a3c5aa1ed0ab680ae378131eee"/><dir name="Info"><file name="Debit.php" hash="888f8a1c1aaaf6974131970969caa5f2"/><file name="Masterpass.php" hash="562c524745e0b89ea600435e38e6ce09"/></dir><dir name="Onepage"><file name="Billing.php" hash="fa35f5b8eda774a881999ebcc53ac52a"/><file name="Progress.php" hash="a717a71fd538c8fc5aa2b90de717e9ca"/><file name="Shipping.php" hash="99151e8d86b19160b633a91f0939aad6"/></dir><file name="Onepage.php" hash="51630e0804b42fead2cda80e013d5dbf"/><file name="Success.php" hash="97b586c0d2c5b16c53608b3e41f35b79"/></dir><dir name="Helper"><file name="Data.php" hash="f48ce588d187b2b890a48b8b044830c8"/><file name="Payment.php" hash="4c9e8809cac825de8ab77c3c6555e6ec"/></dir><dir name="Model"><file name="Customer.php" hash="4e65287a3d6a171444614ed580635147"/><dir name="Mysql4"><dir name="Customer"><file name="Collection.php" hash="9fa63b33278570af246ca8cb1cfc706e"/></dir><file name="Customer.php" hash="952d0c21f063e34b0c767968c85184d7"/><dir name="Transaction"><file name="Collection.php" hash="aade54e4bced143dc773a256f27418cd"/></dir><file name="Transaction.php" hash="d3c544e838b9b8f39efaad4caa5d83c2"/></dir><file name="Observer.php" hash="a56a4432ceef018e53da23d1523b9243"/><dir name="Order"><dir name="Pdf"><file name="Invoice.php" hash="f8222c1be3bfa9d20d52c33cfccf9a67"/></dir></dir><dir name="Payment"><file name="Abstract.php" hash="a756f82b0e291bf096a8467956b9af27"/><file name="Hcdbs.php" hash="90639d3a5099fb432750655de7d5a51a"/><file name="Hcdcc.php" hash="7ef1159ce558a399c9e12f6eebd3885f"/><file name="Hcddc.php" hash="6db05d99cd374e873866522a07a82b6a"/><file name="Hcddd.php" hash="f337a26f367ed9e5fcf8e25f73ac6fd7"/><file name="Hcdeps.php" hash="6caef61817c39c62176d0213ae309e56"/><file name="Hcdgp.php" hash="3fb1d66a07d70d744de2539758ab5197"/><file name="Hcdide.php" hash="260bbb90e918f884045a459ad346af30"/><file name="Hcdiv.php" hash="065562ea683f083a157720fa73cc65a7"/><file name="Hcdmk.php" hash="c5c618e46541ba6f23f338a2b6fbe6c5"/><file name="Hcdmpa.php" hash="5b82deca77df55c01d8198c8ed079280"/><file name="Hcdpal.php" hash="eab547d1d8f3d56203b66a6e165bb767"/><file name="Hcdpf.php" hash="c06b78f4e07001b8e838b88037ee0e63"/><file name="Hcdpp.php" hash="0dda37098aceb80ed6f0e774550ac2c9"/><file name="Hcdsu.php" hash="41b884aff43ada409a9d16e7a0f29b97"/><file name="Hcdyt.php" hash="3b378f1f52419788cc8b6aaa7fefde1b"/></dir><dir name="Resource"><file name="Encryption.php" hash="edbc116ce3c9dc815a658beb4ac7705a"/><file name="Setup.php" hash="74d6669d6d2273dd241a5064c85c1e78"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Bookingmode.php" hash="a83d2adbb54a69c0afd7ef87857672ee"/><file name="Recognition.php" hash="bec39a1786cca41140c590b86b864850"/><file name="Returnurl.php" hash="626518f91f8b0632211ac85fb658fdd7"/></dir></dir></dir><file name="Transaction.php" hash="7f29642f5699664c3b702410d0445853"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="82492b85dab9bbc31e8ff61f75b49264"/><file name="IndexController.php" hash="56142c73473c420f12c38f4befd6cfe5"/></dir><dir name="etc"><file name="config.xml" hash="63933eb5226a187c0ce683891b7a51ae"/><file name="system.xml" hash="0272d10e1bb7ef04ed5d6fcd52bd3d59"/></dir><dir name="sql"><dir name="hcd_setup"><file name="install-15.1.30.php" hash="855a7ef4800bdc2369d8146306365e64"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="hcd.xml" hash="21222f3bb39a41d43e7b781cbeb0b6a9"/></dir><dir name="template"><dir name="hcd"><dir name="Info"><file name="debit.phtml" hash="0632fa163fa5bb7df9c0da2b4010c7dc"/><file name="masterpass.phtml" hash="0632fa163fa5bb7df9c0da2b4010c7dc"/></dir><file name="button.phtml" hash="66ff2e82c4db439d3c616c455e8654f8"/><dir name="form"><file name="creditcard.phtml" hash="73fb91d12a559eebb68ee5c85f285778"/><file name="debit.phtml" hash="e89162ee1e5a8958f4537cffa4873714"/><file name="desconly.phtml" hash="0df2f305be1337de2db69ecb93ce48b7"/><file name="eps.phtml" hash="23895dad6e135ca58473a181bf2f7388"/><file name="giropay.phtml" hash="ebcb9379429b3d47263ee97243688f3c"/><file name="ideal.phtml" hash="23895dad6e135ca58473a181bf2f7388"/><file name="masterpass.phtml" hash="d86140758d30b72389b0bc19677911ef"/><file name="postfinance.phtml" hash="0db7c2d0404efa2feb98748204bf72d4"/></dir><file name="index.phtml" hash="03a0dccd4448c6a3d9745a2cea7fa327"/><dir name="mail"><file name="hcd_payment_info.phtml" hash="1ec6d33fbb5bc8391a8295be1ffa5b38"/></dir><dir name="onepage"><file name="billing.phtml" hash="14b57c38161e6749fbc37813337c2379"/><dir name="payment"><file name="methods.phtml" hash="0e2f9e12e7dfc1070404af7dfdd7b024"/></dir><file name="payment.phtml" hash="6d452186f51dc088c5007c16ddd1cf08"/><dir name="progress"><file name="payment.phtml" hash="440f57443141d1280cf18c798cc8af10"/><file name="shipping.phtml" hash="c659abf65a13a4f1fadcec6221afd1a1"/></dir><file name="progress.phtml" hash="9527eb86ec29030f4b111455d3122388"/><file name="shipping_method.phtml" hash="79f1cc31d10a35df619b15db481e9543"/></dir><file name="onepage.phtml" hash="df4e2760e3804f7a2ff51d4b4cf74538"/><file name="success.phtml" hash="9cac258cb96b057b3de00ab971bf7855"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="hcd"><dir name="Info"><file name="masterpass.phtml" hash="4d8eed392d77abb15418562f25de9611"/></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HeidelpayCD_Edition.xml" hash="277ef825780ed2df1f5de2cf949f842b"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="HeidelpayCD_Edition.csv" hash="096f9a31703a975b3987cb5abdd22171"/></dir><dir name="en_US"><file name="HeidelpayCD_Edition.csv" hash="45b06ae656957027fcc7aea52451a4bf"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="hcd"><file name="loading.gif" hash="29868a3a7094b078733caba6b192b080"/><file name="masterpass_100_28.jpg" hash="e0907959b1e345de6a3d73f32a5f5369"/><file name="masterpass_240_66.jpg" hash="7ad0078b8a27914aceb590c4100f3aa8"/></dir></dir><dir name="css"><file name="heidelpaycd.css" hash="403ea53f4c119f0eda8ad78a63197878"/></dir></dir></dir></dir><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="images"><dir name="hcd"><file name="masterpass_100_28.jpg" hash="e0907959b1e345de6a3d73f32a5f5369"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="hcd"><file name="heidelpaycd.js" hash="65300431d3b17aae05646bc921ff986b"/><file name="opcheckout.js" hash="0b23200ff0fcb85f9ebbbd74fca04064"/></dir></dir></target></contents>
47
  <compatible/>
48
  <dependencies><required><php><min>5.0.0</min><max>5.9.99</max></php></required></dependencies>
49
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>HeidelpayCDEdition</name>
4
+ <version>16.2.9</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
39
  E-Mail: sales@heidelpay.de&lt;br /&gt;&#xD;
40
  Internet: www.heidelpay.de&lt;br /&gt;&#xD;
41
  </description>
42
+ <notes>- change credit and debit card payment process to iframe chekount&#xD;
43
+ - bugfix for report shipping to Heidelpay observer&#xD;
44
+ - bugfix if iban is in lower case</notes>
45
  <authors><author><name>Heidelberger Payment GmbH</name><user>Heidelpay</user><email>magento@heidelpay.de</email></author></authors>
46
+ <date>2016-02-09</date>
47
+ <time>13:36:21</time>
48
+ <contents><target name="magecommunity"><dir name="HeidelpayCD"><dir name="Edition"><dir name="Block"><file name="Abstract.php" hash="e589f421bf86a643921b11d75fcbb8fb"/><file name="Button.php" hash="64dfc3786020559d2c8e2377d5c8281f"/><dir name="Form"><file name="Creditcard.php" hash="eca2833e42df4e57485afb8aeb0d6a0f"/><file name="Debit.php" hash="fb2ecd8695d813e34e4ab6b6501d359e"/><file name="Desconly.php" hash="912dd8ab02ccc24b7121d6f05255c15d"/><file name="Eps.php" hash="8698a923d04580654cacecfff64268c8"/><file name="Giropay.php" hash="aba0b69429706944ae1ac4466ab9ce3b"/><file name="Ideal.php" hash="a31bd92c30af0718e6f4347f14eba963"/><file name="Masterpass.php" hash="7fb40e7effa042586ae5ac057f12e1a9"/><file name="Postfinance.php" hash="b3a91389b3fb235eb113a919161d2476"/></dir><file name="Index.php" hash="e13d55a3c5aa1ed0ab680ae378131eee"/><dir name="Info"><file name="Debit.php" hash="888f8a1c1aaaf6974131970969caa5f2"/><file name="Invoice.php" hash="067560318d472eae2af3669ed05a7220"/><file name="Masterpass.php" hash="562c524745e0b89ea600435e38e6ce09"/></dir><dir name="Onepage"><file name="Billing.php" hash="fa35f5b8eda774a881999ebcc53ac52a"/><file name="Progress.php" hash="a717a71fd538c8fc5aa2b90de717e9ca"/><file name="Shipping.php" hash="99151e8d86b19160b633a91f0939aad6"/></dir><file name="Onepage.php" hash="51630e0804b42fead2cda80e013d5dbf"/><file name="Success.php" hash="97b586c0d2c5b16c53608b3e41f35b79"/></dir><dir name="Helper"><file name="Data.php" hash="f48ce588d187b2b890a48b8b044830c8"/><file name="Payment.php" hash="b44ea72a9f4d1340b0982b39e38d5e51"/></dir><dir name="Model"><file name="Customer.php" hash="4e65287a3d6a171444614ed580635147"/><dir name="Mysql4"><dir name="Customer"><file name="Collection.php" hash="9fa63b33278570af246ca8cb1cfc706e"/></dir><file name="Customer.php" hash="952d0c21f063e34b0c767968c85184d7"/><dir name="Transaction"><file name="Collection.php" hash="aade54e4bced143dc773a256f27418cd"/></dir><file name="Transaction.php" hash="d3c544e838b9b8f39efaad4caa5d83c2"/></dir><file name="Observer.php" hash="477274c1102b35e4f73aec430e0099a9"/><dir name="Order"><dir name="Pdf"><file name="Invoice.php" hash="f8222c1be3bfa9d20d52c33cfccf9a67"/></dir></dir><dir name="Payment"><file name="Abstract.php" hash="74355c10111ec31188761b2f80d18d0f"/><file name="Hcdbs.php" hash="90639d3a5099fb432750655de7d5a51a"/><file name="Hcdcc.php" hash="7ef1159ce558a399c9e12f6eebd3885f"/><file name="Hcddc.php" hash="6db05d99cd374e873866522a07a82b6a"/><file name="Hcddd.php" hash="9d1b9e97d6d302abffa6a97d2a7776a0"/><file name="Hcdeps.php" hash="6caef61817c39c62176d0213ae309e56"/><file name="Hcdgp.php" hash="3fb1d66a07d70d744de2539758ab5197"/><file name="Hcdide.php" hash="260bbb90e918f884045a459ad346af30"/><file name="Hcdiv.php" hash="f74c4423e3694fa28bf8bc93809b9e84"/><file name="Hcdmk.php" hash="c5c618e46541ba6f23f338a2b6fbe6c5"/><file name="Hcdmpa.php" hash="5b82deca77df55c01d8198c8ed079280"/><file name="Hcdpal.php" hash="eab547d1d8f3d56203b66a6e165bb767"/><file name="Hcdpf.php" hash="c06b78f4e07001b8e838b88037ee0e63"/><file name="Hcdpp.php" hash="0dda37098aceb80ed6f0e774550ac2c9"/><file name="Hcdsu.php" hash="41b884aff43ada409a9d16e7a0f29b97"/><file name="Hcdyt.php" hash="3b378f1f52419788cc8b6aaa7fefde1b"/></dir><dir name="Resource"><file name="Encryption.php" hash="edbc116ce3c9dc815a658beb4ac7705a"/><file name="Setup.php" hash="74d6669d6d2273dd241a5064c85c1e78"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Bookingmode.php" hash="a83d2adbb54a69c0afd7ef87857672ee"/><file name="Recognition.php" hash="bec39a1786cca41140c590b86b864850"/><file name="Returnurl.php" hash="626518f91f8b0632211ac85fb658fdd7"/></dir></dir></dir><file name="Transaction.php" hash="7f29642f5699664c3b702410d0445853"/></dir><dir name="controllers"><file name="CheckoutController.php" hash="82492b85dab9bbc31e8ff61f75b49264"/><file name="IndexController.php" hash="d1e555c25c3bfb4b6cd098135807fdcb"/></dir><dir name="etc"><file name="config.xml" hash="db17106cc32c3dc9791f815a352f8524"/><file name="system.xml" hash="c8ce5de1794d7816a9a72feecedc723c"/></dir><dir name="sql"><dir name="hcd_setup"><file name="install-15.1.30.php" hash="855a7ef4800bdc2369d8146306365e64"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="hcd.xml" hash="3145bd1d4a3dc99dae5b379bb81513fa"/></dir><dir name="template"><dir name="hcd"><dir name="Info"><file name="debit.phtml" hash="0632fa163fa5bb7df9c0da2b4010c7dc"/><file name="masterpass.phtml" hash="0632fa163fa5bb7df9c0da2b4010c7dc"/><dir name="pdf"><file name="invoice.phtml" hash="2202fbc5d3f77c9056b362dd96d78f4b"/></dir></dir><file name="button.phtml" hash="66ff2e82c4db439d3c616c455e8654f8"/><dir name="form"><file name="creditcard.phtml" hash="ee6297fd90757f2d5bbabf9cac866b72"/><file name="debit.phtml" hash="2c8d973f400f4de9d07aeea02a62d6e4"/><file name="desconly.phtml" hash="0df2f305be1337de2db69ecb93ce48b7"/><file name="eps.phtml" hash="23895dad6e135ca58473a181bf2f7388"/><file name="giropay.phtml" hash="ebcb9379429b3d47263ee97243688f3c"/><file name="ideal.phtml" hash="23895dad6e135ca58473a181bf2f7388"/><file name="masterpass.phtml" hash="d86140758d30b72389b0bc19677911ef"/><file name="postfinance.phtml" hash="0db7c2d0404efa2feb98748204bf72d4"/></dir><file name="index.phtml" hash="d76db58b6fba89c113144b5e5065539a"/><dir name="mail"><file name="hcd_payment_info.phtml" hash="1ec6d33fbb5bc8391a8295be1ffa5b38"/></dir><dir name="onepage"><file name="billing.phtml" hash="14b57c38161e6749fbc37813337c2379"/><dir name="payment"><file name="methods.phtml" hash="0e2f9e12e7dfc1070404af7dfdd7b024"/></dir><file name="payment.phtml" hash="6d452186f51dc088c5007c16ddd1cf08"/><dir name="progress"><file name="payment.phtml" hash="440f57443141d1280cf18c798cc8af10"/><file name="shipping.phtml" hash="c659abf65a13a4f1fadcec6221afd1a1"/></dir><file name="progress.phtml" hash="9527eb86ec29030f4b111455d3122388"/><file name="shipping_method.phtml" hash="79f1cc31d10a35df619b15db481e9543"/></dir><file name="onepage.phtml" hash="df4e2760e3804f7a2ff51d4b4cf74538"/><file name="success.phtml" hash="9cac258cb96b057b3de00ab971bf7855"/></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="hcd"><dir name="Info"><file name="masterpass.phtml" hash="4d8eed392d77abb15418562f25de9611"/><dir name="pdf"><file name="invoice.phtml" hash="c87bc83feeac048800f923a9bff2ca8d"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="HeidelpayCD_Edition.xml" hash="277ef825780ed2df1f5de2cf949f842b"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="HeidelpayCD_Edition.csv" hash="93a36d18a34c731e63bd15cb08612545"/></dir><dir name="en_US"><file name="HeidelpayCD_Edition.csv" hash="6fb83e457137ad61ede084a997f3a861"/></dir></target><target name="mageskin"><dir name="frontend"><dir name="base"><dir name="default"><dir name="images"><dir name="hcd"><file name="loading.gif" hash="29868a3a7094b078733caba6b192b080"/><file name="masterpass_100_28.jpg" hash="e0907959b1e345de6a3d73f32a5f5369"/><file name="masterpass_240_66.jpg" hash="7ad0078b8a27914aceb590c4100f3aa8"/></dir></dir><dir name="css"><file name="heidelpaycd.css" hash="4ec8028660fab013077cd8119396455a"/><file name="hcdcc_payment_frame.css" hash=""/><file name="hcddc_payment_frame.css" hash=""/></dir></dir></dir></dir><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="images"><dir name="hcd"><file name="masterpass_100_28.jpg" hash="e0907959b1e345de6a3d73f32a5f5369"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="hcd"><file name="heidelpaycd.js" hash="87c0f432aff5d4f689d6f8f691b7d2c2"/><file name="heidelpaypci3.js" hash="52a3a134e9645b59a03580966f591b61"/><file name="opcheckout.js" hash="0b23200ff0fcb85f9ebbbd74fca04064"/></dir></dir></target></contents>
49
  <compatible/>
50
  <dependencies><required><php><min>5.0.0</min><max>5.9.99</max></php></required></dependencies>
51
  </package>
skin/frontend/base/default/css/hcdcc_payment_frame.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ body {
2
+ color: #636363;
3
+ font-size: 13px;
4
+ font-family: "Raleway","Helvetica Neue","Verdana,Arial","sans-serif";
5
+ }
skin/frontend/base/default/css/hcddc_payment_frame.css ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ body {
2
+ color: #636363;
3
+ font-size: 13px;
4
+ font-family: "Raleway","Helvetica Neue","Verdana,Arial","sans-serif";
5
+ }
skin/frontend/base/default/css/heidelpaycd.css CHANGED
@@ -87,4 +87,27 @@ button.btn-hcdmpa-info {
87
  .hcd-masterpass-payment-data-info {
88
  margin-top: 5px;
89
  font-size: 12px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  }
87
  .hcd-masterpass-payment-data-info {
88
  margin-top: 5px;
89
  font-size: 12px;
90
+ }
91
+
92
+ .hcdcc_payment_frame {
93
+ border: 0px solid black !important;
94
+ width: 200px;
95
+ height: 200px;
96
+ margin-top: 10px;
97
+ }
98
+
99
+ .hcddc_payment_frame {
100
+ border: 0px solid black !important;
101
+ width: 200px;
102
+ height: 190px;
103
+ margin-top: 10px;
104
+ }
105
+
106
+ button_hcd {
107
+ float: right;
108
+ }
109
+
110
+ #heidelpay-please-wait img {
111
+ display: inline;
112
+ width: 25px;
113
  }