planetpay_ipaygateway - Version 1.0.9

Version Notes

Added some additional user data(Customer IP,Order ID, Magento and Extension version ) to each transaction request XML

Download this release

Release Info

Developer Brad Seeley
Extension planetpay_ipaygateway
Version 1.0.9
Comparing to
See all releases


Code changes from version 1.0.8 to 1.0.9

app/code/community/PlanetPayment/IpayGateway/Block/Adminhtml/Payment/_notes/dwsync.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="Form.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216222800000000" Dst="0" />
4
- </dwsync>
 
 
 
 
app/code/community/PlanetPayment/IpayGateway/Block/Adminhtml/System/Config/_notes/dwsync.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="Export.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216223400000000" Dst="0" />
4
- <file name="Purge.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216223400000000" Dst="0" />
5
- <file name="Test.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216223400000000" Dst="0" />
6
- </dwsync>
 
 
 
 
 
 
app/code/community/PlanetPayment/IpayGateway/Block/Onepage/_notes/dwsync.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="Ipay.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216223400000000" Dst="0" />
4
- </dwsync>
 
 
 
 
app/code/community/PlanetPayment/IpayGateway/Block/Profile/_notes/dwsync.xml DELETED
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="Edit.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216224000000000" Dst="0" />
4
- <file name="List.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216224000000000" Dst="0" />
5
- </dwsync>
 
 
 
 
 
app/code/community/PlanetPayment/IpayGateway/Block/Sales/Order/Totals.php CHANGED
@@ -90,19 +90,18 @@ class PlanetPayment_IpayGateway_Block_Sales_Order_Totals extends Mage_Sales_Bloc
90
  if($quote->getId()) {
91
  $exchangeRate = $quote->getIpayExchangeRate();
92
  if ($this->_isPyc() && $exchangeRate) {
93
- //$total = $source->getBaseGrandTotal();
94
- $total = number_format($source->getBaseGrandTotal() * $exchangeRate, 2);
95
- //$currency = Mage::app()->getLocale()->currency($this->getOrder()->getPayment()->getIpayCurrencyCode())->getSymbol() . " " . number_format($total * $exchangeRate, 2);
96
  } elseif ($this->_isMcp()) {
97
  $total = $source->getGrandTotal();
98
- //$currency = Mage::app()->getStore()->getCurrentCurrency()->format($total, array(), true);
99
  } else {
100
  $total = $source->getBaseGrandTotal();
101
- //$currency = Mage::app()->getStore()->getBaseCurrency()->format($total, array(), true);
102
  }
103
  $this->_totals['base_grandtotal'] = new Varien_Object(array(
104
  'code' => 'base_grandtotal',
105
- 'value' => $total,
106
  'label' => $this->__('Grand Total to be Charged'),
107
  'is_formated' => true,
108
  ));
@@ -133,4 +132,4 @@ class PlanetPayment_IpayGateway_Block_Sales_Order_Totals extends Mage_Sales_Bloc
133
  return Mage::getModel('ipay/ipay')->getConfigData("service") == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP;
134
  }
135
 
136
- }
90
  if($quote->getId()) {
91
  $exchangeRate = $quote->getIpayExchangeRate();
92
  if ($this->_isPyc() && $exchangeRate) {
93
+ $total = $source->getBaseGrandTotal();
94
+ $currency = Mage::app()->getLocale()->currency($this->getOrder()->getPayment()->getIpayCurrencyCode())->getSymbol() . " " . number_format($total * $exchangeRate, 2);
 
95
  } elseif ($this->_isMcp()) {
96
  $total = $source->getGrandTotal();
97
+ $currency = Mage::app()->getStore()->getCurrentCurrency()->format($total, array(), true);
98
  } else {
99
  $total = $source->getBaseGrandTotal();
100
+ $currency = Mage::app()->getStore()->getBaseCurrency()->format($total, array(), true);
101
  }
102
  $this->_totals['base_grandtotal'] = new Varien_Object(array(
103
  'code' => 'base_grandtotal',
104
+ 'value' => $currency,
105
  'label' => $this->__('Grand Total to be Charged'),
106
  'is_formated' => true,
107
  ));
132
  return Mage::getModel('ipay/ipay')->getConfigData("service") == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP;
133
  }
134
 
135
+ }
app/code/community/PlanetPayment/IpayGateway/Block/Sales/Order/_notes/dwsync.xml DELETED
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="Totals.php" server="www.tshirtpusher.com" local="130207326382330020" remote="130206894000000000" Dst="0" />
4
- <file name="Totals.php" server="foreigncurrencypayments.com" local="130207326382330020" remote="130216224000000000" Dst="0" />
5
- </dwsync>
 
 
 
 
 
app/code/community/PlanetPayment/IpayGateway/Model/Observer/_notes/dwsync.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="Abstract.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216225200000000" Dst="0" />
4
- <file name="Checkout.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216225200000000" Dst="0" />
5
- <file name="Log.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216225200000000" Dst="0" />
6
- </dwsync>
 
 
 
 
 
 
app/code/community/PlanetPayment/IpayGateway/Model/System/Config/Payment/_notes/dwsync.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="Cctype.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216225800000000" Dst="0" />
4
- <file name="Currency.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216225800000000" Dst="0" />
5
- <file name="PaymentAction.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216225800000000" Dst="0" />
6
- <file name="Service.php" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216225800000000" Dst="0" />
7
- </dwsync>
 
 
 
 
 
 
 
app/code/community/PlanetPayment/IpayGateway/Model/Xml/Request.php CHANGED
@@ -67,42 +67,42 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
67
  }
68
  return new Varien_Simplexml_Element($rootNodeString);
69
  }
70
-
71
- /**
72
- * Condition the address text passed in to be limited to 30 characters
73
- *
74
- * @param type $address
75
- */
76
- protected function _conditionAddress($text) {
77
- if(!$text || $text=="" || strlen($text) <= 30) {
78
- return $text;
79
- }
80
-
81
- /**
82
- * Two instances of calls in this file used to call htmlentities on the
83
- * value, which I don't think we actually want. HTML Encoding will only
84
- * make the values longer...
85
- */
86
- //htmlentities($profile->getAddress(), ENT_QUOTES);
87
- return substr($text, 0, 30);
88
- }
89
-
90
- /**
91
- * If postal code is longer than 9 characters, strip to the first five. This
92
- * handles U.S. formatted postal codes inserted with a hyphen (i.e. 12345-6789)
93
- *
94
- * In that case, 12345 will be returned. Any text shorter than 9 characters
95
- * passed to this function will be returned unchanged.
96
- * @param type $text
97
- * @return type
98
- */
99
- protected function _conditionPostalCode($text) {
100
- if(!$text || $text=="" || strlen($text) <= 9) {
101
- return $text;
102
- }
103
-
104
- return substr($text, 0, 5);
105
- }
106
 
107
  /**
108
  * Generates the Transaction Xml for authorization
@@ -111,12 +111,17 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
111
  public function generateRequestForPycAuth() {
112
  try {
113
  $payment = $this->getPayment();
 
114
  $profile = $this->_getProfile($payment->getIpayProfileId());
115
  $quote = Mage::helper('ipay')->getQuote();
 
116
  $billingAddress = $quote->getBillingAddress();
 
117
  $hasEncryption = $this->_hasEncryption();
 
118
  $key = $this->_getConfig('key', 'general');
119
  $encryption = $hasEncryption ? '1' : '0';
 
120
  $request = $this->_getRootNode();
121
  $transaction = $request->addChild('TRANSACTION');
122
  $fields = $transaction->addChild('FIELDS');
@@ -136,14 +141,13 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
136
  $fields->addChild('FIRST_NAME', $billingAddress->getFirstname());
137
  $fields->addChild('LAST_NAME', $billingAddress->getLastname());
138
  $fields->addChild('ADDRESS', $this->_conditionAddress($billingAddress->getStreet(1)));
139
- $fields->addChild('STATE', $billingAddress->getRegionCode());
140
  $fields->addChild('CITY', $billingAddress->getCity());
141
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($billingAddress->getPostcode()));
142
  }
143
 
144
  $fields->addChild('AMOUNT', $this->getAmount());
145
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($this->getNativeCurrency()));
146
-
147
  //If a different currecy is selected by the customer
148
  if ($payment->getId() && $payment->getIpayCurrencyCode()) {
149
  if ($payment->getIpayCurrencyCode() == $this->getNativeCurrency()) {
@@ -156,12 +160,13 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
156
  }
157
  $fields->addChild('TRANSACTION_INDICATOR', '7');
158
  $fields->addChild('FESP_IND', '9');
159
- //Appear duplicate data so commenting it out..@Diwakar - Date
160
- //$fields->addChild('USER_DATA_0', $this->_getClientName());
161
  //Sending Few Additional data to Gateway
162
  $this->addAdditionalData($fields, true);
163
  $this->setTransactionForLog($request);
164
- if($hasEncryption) {
 
 
165
  $this->_encryptRequest($request);
166
  }
167
  $this->setTransaction($request);
@@ -171,6 +176,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
171
 
172
  return $this;
173
  }
 
174
  /**
175
  * Generates the Transaction Xml for authorization
176
  * @return PlanetPayment_IpayGateway_Model_Xml_Request
@@ -207,7 +213,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
207
  $fields->addChild('FIRST_NAME', $billingAddress->getFirstname());
208
  $fields->addChild('LAST_NAME', $billingAddress->getLastname());
209
  $fields->addChild('ADDRESS', $this->_conditionAddress($billingAddress->getStreet(1)));
210
- $fields->addChild('STATE', $billingAddress->getRegionCode());
211
  $fields->addChild('CITY', $billingAddress->getCity());
212
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($billingAddress->getPostcode()));
213
  }
@@ -225,6 +231,8 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
225
  //Sending Few Additional data to Gateway
226
  $this->addAdditionalData($fields, true);
227
  $this->setTransactionForLog($request);
 
 
228
  if ($hasEncryption) {
229
  $this->_encryptRequest($request);
230
  }
@@ -270,13 +278,16 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
270
  $fields->addChild('ACCOUNT_NUMBER', $payment->getCcNumber());
271
  }
272
  $fields->addChild('QUERY_TYPE', '0');
273
- $fields->addChild('FESP_IND', '9');
274
  //Sending Few Additional data to Gateway
275
  $this->addAdditionalData($fields, true);
276
  $this->setTransactionForLog($request);
 
 
277
  if ($hasEncryption) {
278
  $this->_encryptRequest($request);
279
  }
 
280
  $this->setTransaction($request);
281
  } catch (Exception $e) {
282
  Mage::throwException($e->getmessage());
@@ -358,7 +369,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
358
  $fields->addChild('EXPIRATION', $this->_getCcExpiration($profile->getExpirationMonth(), $profile->getExpirationYear()));
359
  $fields->addChild('CVV', $profile->getCardCode());
360
  $fields->addChild('BILLING_TRANSACTION', '2');
361
- $fields->addChild('FESP_IND', '9');
362
  //Sending Few Additional data to Gateway
363
  $this->addAdditionalData($fields, true);
364
  $this->setTransactionForLog($request);
@@ -405,7 +416,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
405
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($profile->getZip()));
406
  $fields->addChild('STATE', htmlentities($profile->getState(), ENT_QUOTES));
407
  $fields->addChild('COUNTRY', htmlentities($profile->getCountry(), ENT_QUOTES));
408
- $fields->addChild('FESP_IND', '9');
409
  //Sending Few Additional data to Gateway
410
  $this->addAdditionalData($fields, true);
411
  $this->setTransactionForLog($request);
@@ -449,10 +460,12 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
449
  $fields->addChild('TRANSACTION_INDICATOR', '7');
450
  $fields->addChild('EXPIRATION', $this->_getCcExpiration($profile->getExpirationMonth(), $profile->getExpirationYear()));
451
  $fields->addChild('CVV', $profile->getCardCode());
452
- $fields->addChild('FESP_IND', '9');
453
  //Sending Few Additional data to Gateway
454
  $this->addAdditionalData($fields, true);
455
  $this->setTransactionForLog($request);
 
 
456
  if ($hasEncryption) {
457
  $this->_encryptRequest($request);
458
  } else {
@@ -492,7 +505,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
492
  $fields->addChild('TERMINAL_ID', $this->_getConfig('terminal_id', 'general'));
493
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
494
  $fields->addChild('CLIENT_ID', $profile->getClientId());
495
- $fields->addChild('FESP_IND', '9');
496
  //Sending Few Additional data to Gateway
497
  $this->addAdditionalData($fields, false);
498
  $this->setTransactionForLog($request);
@@ -546,6 +559,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
546
 
547
  return $this;
548
  }
 
549
  public function generateRequestForCapture() {
550
  try {
551
  $payment = $this->getPayment();
@@ -554,7 +568,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
554
  $billingAddress = $payment->getOrder()->getBillingAddress();
555
  $key = $this->_getConfig('key', 'general');
556
  $encryption = $hasEncryption ? '1' : '0';
557
- $request = $this->_getRootNode();
558
  $transaction = $request->addChild('TRANSACTION');
559
  $fields = $transaction->addChild('FIELDS');
560
  $fields->addChild('TERMINAL_ID', $this->_getConfig('terminal_id', 'general'));
@@ -570,11 +584,11 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
570
  }
571
  } elseif ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP) {
572
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($payment->getOrder()->getOrderCurrencyCode()));
573
- if ($payment->getOrder()->getOrderCurrencyCode() != $this->getNativeCurrency()) {
574
- $fields->addChild('CURRENCY_INDICATOR', '1');
575
- } else {
576
- $fields->addChild('CURRENCY_INDICATOR', '0');
577
- }
578
  }
579
 
580
  $fields->addChild('TRANSACTION_ID', $payment->getLastTransId());
@@ -583,13 +597,15 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
583
  $fields->addChild('SERVICE_SUBTYPE', 'CAPTURE');
584
  $fields->addChild('AMOUNT', $this->getAmountInStoreCurrency());
585
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
586
- $fields->addChild('FESP_IND', '9');
587
  //Sending Few Additional data to Gateway
588
  $this->addAdditionalData($fields, true);
589
  $this->setTransactionForLog($request);
 
590
  if ($hasEncryption) {
591
  $this->_encryptRequest($request);
592
  }
 
593
  $this->setTransaction($request);
594
  } else {
595
  Mage::throwException("Unable to capture");
@@ -597,14 +613,16 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
597
  } catch (Exception $e) {
598
  Mage::throwException($e->getmessage());
599
  }
 
600
  return $this;
601
  }
 
602
  public function generateRequestForSale() {
603
  try {
604
  $payment = $this->getPayment();
605
  $quote = Mage::helper('ipay')->getQuote();
606
  $billingAddress = $quote->getBillingAddress();
607
-
608
  $profile = $this->_getProfile($payment->getIpayProfileId());
609
 
610
  $hasEncryption = $this->_hasEncryption();
@@ -631,13 +649,13 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
631
  $fields->addChild('FIRST_NAME', $billingAddress->getFirstname());
632
  $fields->addChild('LAST_NAME', $billingAddress->getLastname());
633
  $fields->addChild('ADDRESS', $this->_conditionAddress($billingAddress->getStreet(1)));
634
- $fields->addChild('STATE', $billingAddress->getRegionCode());
635
  $fields->addChild('CITY', $billingAddress->getCity());
636
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($billingAddress->getPostcode()));
637
  }
638
 
639
- $fields->addChild('AMOUNT', round($quote->getGrandTotal(),2));
640
-
641
  $paymentType = $this->_getPaymentType($payment);
642
  if ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_PYC) {
643
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($this->getNativeCurrency()));
@@ -648,11 +666,11 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
648
  }
649
  } elseif ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP) {
650
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($payment->getOrder()->getOrderCurrencyCode()));
651
- if ($payment->getOrder()->getOrderCurrencyCode() != $this->getNativeCurrency()) {
652
- $fields->addChild('CURRENCY_INDICATOR', '1');
653
- } else {
654
- $fields->addChild('CURRENCY_INDICATOR', '0');
655
- }
656
  }
657
  $fields->addChild('ENTRY_MODE', '3');
658
  $fields->addChild('TRANSACTION_INDICATOR', '7');
@@ -661,7 +679,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
661
  //Sending Few Additional data to Gateway
662
  $this->addAdditionalData($fields, true);
663
  $this->setTransactionForLog($request);
664
-
665
  if ($hasEncryption) {
666
  $this->_encryptRequest($request);
667
  }
@@ -672,7 +690,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
672
 
673
  return $this;
674
  }
675
-
676
  public function generateRequestForVoid() {
677
  try {
678
  $payment = $this->getPayment();
@@ -691,7 +709,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
691
  $fields->addChild('SERVICE_TYPE', 'DEBIT');
692
  $fields->addChild('SERVICE_SUBTYPE', 'VOID');
693
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
694
- $fields->addChild('FESP_IND', '9');
695
  //Sending Few Additional data to Gateway
696
  $this->addAdditionalData($fields, true);
697
  $this->setTransactionForLog($request);
@@ -734,11 +752,11 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
734
  $fields->addChild('AMOUNT', $this->getAmount());
735
  } elseif ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP) {
736
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($payment->getOrder()->getOrderCurrencyCode()));
737
- if ($payment->getOrder()->getOrderCurrencyCode() != $this->getNativeCurrency()) {
738
- $fields->addChild('CURRENCY_INDICATOR', '1');
739
- } else {
740
- $fields->addChild('CURRENCY_INDICATOR', '0');
741
- }
742
  $fields->addChild('AMOUNT', $this->getAmountInStoreCurrency()); //refund in the currency of the charge
743
  }
744
 
@@ -747,7 +765,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
747
  $fields->addChild('SERVICE_TYPE', 'CREDIT');
748
  $fields->addChild('SERVICE_SUBTYPE', 'REFUND');
749
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
750
- $fields->addChild('FESP_IND', '9');
751
  //Sending Few Additional data to Gateway
752
  $this->addAdditionalData($fields, true);
753
  $this->setTransactionForLog($request);
@@ -761,9 +779,11 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
761
  } catch (Exception $e) {
762
  Mage::throwException($e->getmessage());
763
  }
 
764
  return $this;
765
  }
766
- /**
 
767
  * Adding Order Id and Incremented Order id and Customer Ip to Request XML
768
  *
769
  * @param obj $fields
@@ -796,10 +816,11 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
796
  $fields->addChild('USER_DATA_6', (string) Mage::getResourceModel('core/resource')->getDbVersion('ipay_setup'));
797
  $fields->addChild('USER_DATA_7', Mage::getVersion());
798
  }
 
799
  /**
800
  * Sending the request to Planet Payment
801
  * @return PlanetPayment_IpayGateway_Model_Xml_Request
802
- **/
803
  public function send() {
804
  $transaction = $this->getTransaction();
805
  if ($transaction) {
@@ -821,7 +842,7 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
821
  $client->setRawData($transaction->asXML(), 'text/xml');
822
  $client->setMethod(Zend_Http_Client::POST);
823
  $response = $client->request()->getBody();
824
-
825
  //Setting response to response model object
826
  $responseModel = $this->_getResponseModel();
827
  $responseModel->setIpayRequest($this);
@@ -836,4 +857,5 @@ class PlanetPayment_IpayGateway_Model_Xml_Request extends PlanetPayment_IpayGate
836
  Mage::throwException('invalid Transaction');
837
  }
838
  }
839
- }
 
67
  }
68
  return new Varien_Simplexml_Element($rootNodeString);
69
  }
70
+
71
+ /**
72
+ * Condition the address text passed in to be limited to 30 characters
73
+ *
74
+ * @param type $address
75
+ */
76
+ protected function _conditionAddress($text) {
77
+ if (!$text || $text == "" || strlen($text) <= 30) {
78
+ return $text;
79
+ }
80
+
81
+ /**
82
+ * Two instances of calls in this file used to call htmlentities on the
83
+ * value, which I don't think we actually want. HTML Encoding will only
84
+ * make the values longer...
85
+ */
86
+ //htmlentities($profile->getAddress(), ENT_QUOTES);
87
+ return substr($text, 0, 30);
88
+ }
89
+
90
+ /**
91
+ * If postal code is longer than 9 characters, strip to the first five. This
92
+ * handles U.S. formatted postal codes inserted with a hyphen (i.e. 12345-6789)
93
+ *
94
+ * In that case, 12345 will be returned. Any text shorter than 9 characters
95
+ * passed to this function will be returned unchanged.
96
+ * @param type $text
97
+ * @return type
98
+ */
99
+ protected function _conditionPostalCode($text) {
100
+ if (!$text || $text == "" || strlen($text) <= 9) {
101
+ return $text;
102
+ }
103
+
104
+ return substr($text, 0, 5);
105
+ }
106
 
107
  /**
108
  * Generates the Transaction Xml for authorization
111
  public function generateRequestForPycAuth() {
112
  try {
113
  $payment = $this->getPayment();
114
+
115
  $profile = $this->_getProfile($payment->getIpayProfileId());
116
  $quote = Mage::helper('ipay')->getQuote();
117
+
118
  $billingAddress = $quote->getBillingAddress();
119
+
120
  $hasEncryption = $this->_hasEncryption();
121
+
122
  $key = $this->_getConfig('key', 'general');
123
  $encryption = $hasEncryption ? '1' : '0';
124
+
125
  $request = $this->_getRootNode();
126
  $transaction = $request->addChild('TRANSACTION');
127
  $fields = $transaction->addChild('FIELDS');
141
  $fields->addChild('FIRST_NAME', $billingAddress->getFirstname());
142
  $fields->addChild('LAST_NAME', $billingAddress->getLastname());
143
  $fields->addChild('ADDRESS', $this->_conditionAddress($billingAddress->getStreet(1)));
144
+ $fields->addChild('STATE', $billingAddress->getRegionCode());
145
  $fields->addChild('CITY', $billingAddress->getCity());
146
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($billingAddress->getPostcode()));
147
  }
148
 
149
  $fields->addChild('AMOUNT', $this->getAmount());
150
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($this->getNativeCurrency()));
 
151
  //If a different currecy is selected by the customer
152
  if ($payment->getId() && $payment->getIpayCurrencyCode()) {
153
  if ($payment->getIpayCurrencyCode() == $this->getNativeCurrency()) {
160
  }
161
  $fields->addChild('TRANSACTION_INDICATOR', '7');
162
  $fields->addChild('FESP_IND', '9');
163
+ $fields->addChild('USER_DATA_0', $this->_getClientName());
 
164
  //Sending Few Additional data to Gateway
165
  $this->addAdditionalData($fields, true);
166
  $this->setTransactionForLog($request);
167
+
168
+
169
+ if ($hasEncryption) {
170
  $this->_encryptRequest($request);
171
  }
172
  $this->setTransaction($request);
176
 
177
  return $this;
178
  }
179
+
180
  /**
181
  * Generates the Transaction Xml for authorization
182
  * @return PlanetPayment_IpayGateway_Model_Xml_Request
213
  $fields->addChild('FIRST_NAME', $billingAddress->getFirstname());
214
  $fields->addChild('LAST_NAME', $billingAddress->getLastname());
215
  $fields->addChild('ADDRESS', $this->_conditionAddress($billingAddress->getStreet(1)));
216
+ $fields->addChild('STATE', $billingAddress->getRegionCode());
217
  $fields->addChild('CITY', $billingAddress->getCity());
218
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($billingAddress->getPostcode()));
219
  }
231
  //Sending Few Additional data to Gateway
232
  $this->addAdditionalData($fields, true);
233
  $this->setTransactionForLog($request);
234
+
235
+
236
  if ($hasEncryption) {
237
  $this->_encryptRequest($request);
238
  }
278
  $fields->addChild('ACCOUNT_NUMBER', $payment->getCcNumber());
279
  }
280
  $fields->addChild('QUERY_TYPE', '0');
281
+ $fields->addChild('FESP_IND', '9');
282
  //Sending Few Additional data to Gateway
283
  $this->addAdditionalData($fields, true);
284
  $this->setTransactionForLog($request);
285
+
286
+
287
  if ($hasEncryption) {
288
  $this->_encryptRequest($request);
289
  }
290
+
291
  $this->setTransaction($request);
292
  } catch (Exception $e) {
293
  Mage::throwException($e->getmessage());
369
  $fields->addChild('EXPIRATION', $this->_getCcExpiration($profile->getExpirationMonth(), $profile->getExpirationYear()));
370
  $fields->addChild('CVV', $profile->getCardCode());
371
  $fields->addChild('BILLING_TRANSACTION', '2');
372
+ $fields->addChild('FESP_IND', '9');
373
  //Sending Few Additional data to Gateway
374
  $this->addAdditionalData($fields, true);
375
  $this->setTransactionForLog($request);
416
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($profile->getZip()));
417
  $fields->addChild('STATE', htmlentities($profile->getState(), ENT_QUOTES));
418
  $fields->addChild('COUNTRY', htmlentities($profile->getCountry(), ENT_QUOTES));
419
+ $fields->addChild('FESP_IND', '9');
420
  //Sending Few Additional data to Gateway
421
  $this->addAdditionalData($fields, true);
422
  $this->setTransactionForLog($request);
460
  $fields->addChild('TRANSACTION_INDICATOR', '7');
461
  $fields->addChild('EXPIRATION', $this->_getCcExpiration($profile->getExpirationMonth(), $profile->getExpirationYear()));
462
  $fields->addChild('CVV', $profile->getCardCode());
463
+ $fields->addChild('FESP_IND', '9');
464
  //Sending Few Additional data to Gateway
465
  $this->addAdditionalData($fields, true);
466
  $this->setTransactionForLog($request);
467
+
468
+
469
  if ($hasEncryption) {
470
  $this->_encryptRequest($request);
471
  } else {
505
  $fields->addChild('TERMINAL_ID', $this->_getConfig('terminal_id', 'general'));
506
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
507
  $fields->addChild('CLIENT_ID', $profile->getClientId());
508
+ $fields->addChild('FESP_IND', '9');
509
  //Sending Few Additional data to Gateway
510
  $this->addAdditionalData($fields, false);
511
  $this->setTransactionForLog($request);
559
 
560
  return $this;
561
  }
562
+
563
  public function generateRequestForCapture() {
564
  try {
565
  $payment = $this->getPayment();
568
  $billingAddress = $payment->getOrder()->getBillingAddress();
569
  $key = $this->_getConfig('key', 'general');
570
  $encryption = $hasEncryption ? '1' : '0';
571
+ $request = $this->_getRootNode();
572
  $transaction = $request->addChild('TRANSACTION');
573
  $fields = $transaction->addChild('FIELDS');
574
  $fields->addChild('TERMINAL_ID', $this->_getConfig('terminal_id', 'general'));
584
  }
585
  } elseif ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP) {
586
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($payment->getOrder()->getOrderCurrencyCode()));
587
+ if ($payment->getOrder()->getOrderCurrencyCode() != $this->getNativeCurrency()) {
588
+ $fields->addChild('CURRENCY_INDICATOR', '1');
589
+ } else {
590
+ $fields->addChild('CURRENCY_INDICATOR', '0');
591
+ }
592
  }
593
 
594
  $fields->addChild('TRANSACTION_ID', $payment->getLastTransId());
597
  $fields->addChild('SERVICE_SUBTYPE', 'CAPTURE');
598
  $fields->addChild('AMOUNT', $this->getAmountInStoreCurrency());
599
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
600
+ $fields->addChild('FESP_IND', '9');
601
  //Sending Few Additional data to Gateway
602
  $this->addAdditionalData($fields, true);
603
  $this->setTransactionForLog($request);
604
+
605
  if ($hasEncryption) {
606
  $this->_encryptRequest($request);
607
  }
608
+
609
  $this->setTransaction($request);
610
  } else {
611
  Mage::throwException("Unable to capture");
613
  } catch (Exception $e) {
614
  Mage::throwException($e->getmessage());
615
  }
616
+
617
  return $this;
618
  }
619
+
620
  public function generateRequestForSale() {
621
  try {
622
  $payment = $this->getPayment();
623
  $quote = Mage::helper('ipay')->getQuote();
624
  $billingAddress = $quote->getBillingAddress();
625
+
626
  $profile = $this->_getProfile($payment->getIpayProfileId());
627
 
628
  $hasEncryption = $this->_hasEncryption();
649
  $fields->addChild('FIRST_NAME', $billingAddress->getFirstname());
650
  $fields->addChild('LAST_NAME', $billingAddress->getLastname());
651
  $fields->addChild('ADDRESS', $this->_conditionAddress($billingAddress->getStreet(1)));
652
+ $fields->addChild('STATE', $billingAddress->getRegionCode());
653
  $fields->addChild('CITY', $billingAddress->getCity());
654
  $fields->addChild('POSTAL_CODE', $this->_conditionPostalCode($billingAddress->getPostcode()));
655
  }
656
 
657
+ $fields->addChild('AMOUNT', round($quote->getGrandTotal(), 2));
658
+
659
  $paymentType = $this->_getPaymentType($payment);
660
  if ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_PYC) {
661
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($this->getNativeCurrency()));
666
  }
667
  } elseif ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP) {
668
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($payment->getOrder()->getOrderCurrencyCode()));
669
+ if ($payment->getOrder()->getOrderCurrencyCode() != $this->getNativeCurrency()) {
670
+ $fields->addChild('CURRENCY_INDICATOR', '1');
671
+ } else {
672
+ $fields->addChild('CURRENCY_INDICATOR', '0');
673
+ }
674
  }
675
  $fields->addChild('ENTRY_MODE', '3');
676
  $fields->addChild('TRANSACTION_INDICATOR', '7');
679
  //Sending Few Additional data to Gateway
680
  $this->addAdditionalData($fields, true);
681
  $this->setTransactionForLog($request);
682
+
683
  if ($hasEncryption) {
684
  $this->_encryptRequest($request);
685
  }
690
 
691
  return $this;
692
  }
693
+
694
  public function generateRequestForVoid() {
695
  try {
696
  $payment = $this->getPayment();
709
  $fields->addChild('SERVICE_TYPE', 'DEBIT');
710
  $fields->addChild('SERVICE_SUBTYPE', 'VOID');
711
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
712
+ $fields->addChild('FESP_IND', '9');
713
  //Sending Few Additional data to Gateway
714
  $this->addAdditionalData($fields, true);
715
  $this->setTransactionForLog($request);
752
  $fields->addChild('AMOUNT', $this->getAmount());
753
  } elseif ($paymentType == PlanetPayment_IpayGateway_Model_Ipay::PAYMENT_SERVICE_MCP) {
754
  $fields->addChild('CURRENCY_CODE', $this->_getCurrencyIsoCode($payment->getOrder()->getOrderCurrencyCode()));
755
+ if ($payment->getOrder()->getOrderCurrencyCode() != $this->getNativeCurrency()) {
756
+ $fields->addChild('CURRENCY_INDICATOR', '1');
757
+ } else {
758
+ $fields->addChild('CURRENCY_INDICATOR', '0');
759
+ }
760
  $fields->addChild('AMOUNT', $this->getAmountInStoreCurrency()); //refund in the currency of the charge
761
  }
762
 
765
  $fields->addChild('SERVICE_TYPE', 'CREDIT');
766
  $fields->addChild('SERVICE_SUBTYPE', 'REFUND');
767
  $fields->addChild('PIN', $this->_getConfig('pin', 'general'));
768
+ $fields->addChild('FESP_IND', '9');
769
  //Sending Few Additional data to Gateway
770
  $this->addAdditionalData($fields, true);
771
  $this->setTransactionForLog($request);
779
  } catch (Exception $e) {
780
  Mage::throwException($e->getmessage());
781
  }
782
+
783
  return $this;
784
  }
785
+
786
+ /**
787
  * Adding Order Id and Incremented Order id and Customer Ip to Request XML
788
  *
789
  * @param obj $fields
816
  $fields->addChild('USER_DATA_6', (string) Mage::getResourceModel('core/resource')->getDbVersion('ipay_setup'));
817
  $fields->addChild('USER_DATA_7', Mage::getVersion());
818
  }
819
+
820
  /**
821
  * Sending the request to Planet Payment
822
  * @return PlanetPayment_IpayGateway_Model_Xml_Request
823
+ */
824
  public function send() {
825
  $transaction = $this->getTransaction();
826
  if ($transaction) {
842
  $client->setRawData($transaction->asXML(), 'text/xml');
843
  $client->setMethod(Zend_Http_Client::POST);
844
  $response = $client->request()->getBody();
845
+
846
  //Setting response to response model object
847
  $responseModel = $this->_getResponseModel();
848
  $responseModel->setIpayRequest($this);
857
  Mage::throwException('invalid Transaction');
858
  }
859
  }
860
+
861
+ }
app/code/community/PlanetPayment/IpayGateway/Model/Xml/Response.php CHANGED
@@ -54,10 +54,8 @@ class PlanetPayment_IpayGateway_Model_Xml_Response extends PlanetPayment_IpayGat
54
  $loggedInfo = Mage::helper('ipay')->log($requestXml, $this->_responseXml->asXML(), $this->_getRequestObject()->getCurrencyRate());
55
  //This will be saved in log file if any error occured while Auth.
56
  //The database transaction will be rolled back if error.
57
-
58
  Mage::log("Print Request : " . $loggedInfo->getRequest(), null, PlanetPayment_IpayGateway_Model_Ipay::LOG_FILE, true);
59
  Mage::log("Print Response : " . $loggedInfo->getResponse(), null, PlanetPayment_IpayGateway_Model_Ipay::LOG_FILE, true);
60
-
61
  $this->setlogInfo("\n \t Request:" . $loggedInfo->getRequest() . "\n \t Response:" . $loggedInfo->getResponse());
62
  } else {
63
  Mage::throwException('Invalid response');
54
  $loggedInfo = Mage::helper('ipay')->log($requestXml, $this->_responseXml->asXML(), $this->_getRequestObject()->getCurrencyRate());
55
  //This will be saved in log file if any error occured while Auth.
56
  //The database transaction will be rolled back if error.
 
57
  Mage::log("Print Request : " . $loggedInfo->getRequest(), null, PlanetPayment_IpayGateway_Model_Ipay::LOG_FILE, true);
58
  Mage::log("Print Response : " . $loggedInfo->getResponse(), null, PlanetPayment_IpayGateway_Model_Ipay::LOG_FILE, true);
 
59
  $this->setlogInfo("\n \t Request:" . $loggedInfo->getRequest() . "\n \t Response:" . $loggedInfo->getResponse());
60
  } else {
61
  Mage::throwException('Invalid response');
app/code/community/PlanetPayment/IpayGateway/etc/config.xml CHANGED
@@ -30,7 +30,7 @@
30
  <config>
31
  <modules>
32
  <PlanetPayment_IpayGateway>
33
- <version>1.0.7</version>
34
  </PlanetPayment_IpayGateway>
35
  </modules>
36
  <global>
30
  <config>
31
  <modules>
32
  <PlanetPayment_IpayGateway>
33
+ <version>1.0.9</version>
34
  </PlanetPayment_IpayGateway>
35
  </modules>
36
  <global>
app/code/community/PlanetPayment/IpayGateway/sql/ipay_setup/install-1.0.0.php CHANGED
@@ -1,67 +1,67 @@
1
- <?php
2
-
3
- $installer = $this;
4
- /* @var $installer Mage_Customer_Model_Entity_Setup */
5
-
6
- $installer->startSetup();
7
-
8
- // Sales Quote & Order entities
9
- $installer->getConnection()->addColumn($installer->getTable('sales/quote'), 'ipay_profile_id', 'int(10)');
10
- $installer->getConnection()->addColumn($installer->getTable('sales/order'), 'ipay_profile_id', 'int(10)');
11
-
12
- // Sales Quote & Order Payment entities
13
- $installer->getConnection()->addColumn($installer->getTable('sales/quote_payment'), 'ipay_profile_id', 'int(10)');
14
- $installer->getConnection()->addColumn($installer->getTable('sales/quote_payment'), 'ipay_currency_code', 'varchar(10)');
15
- $installer->getConnection()->addColumn($installer->getTable('sales/order_payment'), 'ipay_profile_id', 'int(10)');
16
- $installer->getConnection()->addColumn($installer->getTable('sales/order_payment'), 'ipay_currency_code', 'varchar(10)');
17
-
18
- // Payment Profile
19
- $installer->run("
20
-
21
- DROP TABLE IF EXISTS `{$this->getTable('ipay/paymentProfile')}`;
22
- CREATE TABLE `{$this->getTable('ipay/paymentProfile')}` (
23
- `id` int(10) unsigned NOT NULL auto_increment,
24
- `customer_id` int(10) unsigned NOT NULL,
25
- `client_id` varchar(50),
26
- `account_id` varchar(50),
27
- `is_visible` tinyint(1) default 1,
28
- `is_default` tinyint(1) default 0,
29
- `card_type` varchar(255),
30
- `card_number_last4` varchar(25),
31
- `expiration_year` smallint(4),
32
- `expiration_month` tinyint(2),
33
- `first_name` varchar(50),
34
- `last_name` varchar(50),
35
- `company` varchar(50),
36
- `address` varchar(60),
37
- `city` varchar(40),
38
- `state` varchar(40),
39
- `zip` varchar(20),
40
- `country` varchar(60),
41
- `phone_number` varchar(25),
42
- `fax_number` varchar(25),
43
- `created` datetime,
44
- `modified` datetime,
45
-
46
- PRIMARY KEY (`id`)
47
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
48
-
49
-
50
- DROP TABLE IF EXISTS `{$this->getTable('ipay/currencyCodes')}`;
51
- CREATE TABLE `{$this->getTable('ipay/currencyCodes')}` (
52
- `currency` varchar(10) NOT NULL,
53
- `currency_code` varchar(5) NOT NULL,
54
- PRIMARY KEY (`currency`)
55
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
56
-
57
- DROP TABLE IF EXISTS `{$this->getTable('ipay/log')}`;
58
- CREATE TABLE `{$this->getTable('ipay/log')}` (
59
- `id` int(10) NOT NULL AUTO_INCREMENT,
60
- `request` text NULL,
61
- `response` text NULL,
62
- `create_date` timestamp DEFAULT CURRENT_TIMESTAMP,
63
- PRIMARY KEY (`id`)
64
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
65
- ");
66
-
67
- $installer->endSetup();
1
+ <?php
2
+
3
+ $installer = $this;
4
+ /* @var $installer Mage_Customer_Model_Entity_Setup */
5
+
6
+ $installer->startSetup();
7
+
8
+ // Sales Quote & Order entities
9
+ $installer->getConnection()->addColumn($installer->getTable('sales/quote'), 'ipay_profile_id', 'int(10)');
10
+ $installer->getConnection()->addColumn($installer->getTable('sales/order'), 'ipay_profile_id', 'int(10)');
11
+
12
+ // Sales Quote & Order Payment entities
13
+ $installer->getConnection()->addColumn($installer->getTable('sales/quote_payment'), 'ipay_profile_id', 'int(10)');
14
+ $installer->getConnection()->addColumn($installer->getTable('sales/quote_payment'), 'ipay_currency_code', 'varchar(10)');
15
+ $installer->getConnection()->addColumn($installer->getTable('sales/order_payment'), 'ipay_profile_id', 'int(10)');
16
+ $installer->getConnection()->addColumn($installer->getTable('sales/order_payment'), 'ipay_currency_code', 'varchar(10)');
17
+
18
+ // Payment Profile
19
+ $installer->run("
20
+
21
+ DROP TABLE IF EXISTS `{$this->getTable('ipay/paymentProfile')}`;
22
+ CREATE TABLE `{$this->getTable('ipay/paymentProfile')}` (
23
+ `id` int(10) unsigned NOT NULL auto_increment,
24
+ `customer_id` int(10) unsigned NOT NULL,
25
+ `client_id` varchar(50),
26
+ `account_id` varchar(50),
27
+ `is_visible` tinyint(1) default 1,
28
+ `is_default` tinyint(1) default 0,
29
+ `card_type` varchar(255),
30
+ `card_number_last4` varchar(25),
31
+ `expiration_year` smallint(4),
32
+ `expiration_month` tinyint(2),
33
+ `first_name` varchar(50),
34
+ `last_name` varchar(50),
35
+ `company` varchar(50),
36
+ `address` varchar(60),
37
+ `city` varchar(40),
38
+ `state` varchar(40),
39
+ `zip` varchar(20),
40
+ `country` varchar(60),
41
+ `phone_number` varchar(25),
42
+ `fax_number` varchar(25),
43
+ `created` datetime,
44
+ `modified` datetime,
45
+
46
+ PRIMARY KEY (`id`)
47
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
48
+
49
+
50
+ DROP TABLE IF EXISTS `{$this->getTable('ipay/currencyCodes')}`;
51
+ CREATE TABLE `{$this->getTable('ipay/currencyCodes')}` (
52
+ `currency` varchar(10) NOT NULL,
53
+ `currency_code` varchar(5) NOT NULL,
54
+ PRIMARY KEY (`currency`)
55
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
56
+
57
+ DROP TABLE IF EXISTS `{$this->getTable('ipay/log')}`;
58
+ CREATE TABLE `{$this->getTable('ipay/log')}` (
59
+ `id` int(10) NOT NULL AUTO_INCREMENT,
60
+ `request` text NULL,
61
+ `response` text NULL,
62
+ `create_date` timestamp DEFAULT CURRENT_TIMESTAMP,
63
+ PRIMARY KEY (`id`)
64
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
65
+ ");
66
+
67
+ $installer->endSetup();
app/code/community/PlanetPayment/IpayGateway/sql/ipay_setup/mysql4-upgrade-1.0.2-1.0.5.php CHANGED
@@ -1,10 +1,10 @@
1
- <?php
2
-
3
- $installer = $this;
4
- /* @var $installer Mage_Customer_Model_Entity_Setup */
5
-
6
- $installer->startSetup();
7
-
8
- //empty, but present to boost the version number in the db to 1.0.5
9
-
10
- $installer->endSetup();
1
+ <?php
2
+
3
+ $installer = $this;
4
+ /* @var $installer Mage_Customer_Model_Entity_Setup */
5
+
6
+ $installer->startSetup();
7
+
8
+ //empty, but present to boost the version number in the db to 1.0.5
9
+
10
+ $installer->endSetup();
app/design/frontend/base/default/layout/ipay.xml CHANGED
@@ -1,52 +1,51 @@
1
- <?xml version="1.0"?>
2
- <layout version="0.1.0">
3
-
4
- <!-- Customer Account handles -->
5
- <customer_account>
6
- <reference name="customer_account_navigation">
7
- <action method="addLink" translate="label" module="ipay" ifconfig="payment/ipay/active">
8
- <name>ipay_profile</name>
9
- <path>ipay/profile</path>
10
- <label>Stored Credit Card Profiles</label>
11
- </action>
12
- </reference>
13
- </customer_account>
14
-
15
- <ipay_profile_index>
16
- <update handle="customer_account" />
17
- <reference name="my.account.wrapper">
18
- <block type="ipay/profile_list" name="ipay.profile.list" template="ipay/profile/list.phtml" />
19
- </reference>
20
- </ipay_profile_index>
21
-
22
- <ipay_profile_edit>
23
- <update handle="customer_account" />
24
- <reference name="my.account.wrapper">
25
- <block type="ipay/profile_edit" name="ipay.profile.edit" template="ipay/profile/edit.phtml" />
26
- </reference>
27
- </ipay_profile_edit>
28
- <checkout_onepage_index>
29
- <reference name="head">
30
- <action method="addItem">
31
- <type>skin_js</type>
32
- <name>js/ipay/validation.js</name>
33
- </action>
34
- </reference>
35
- <reference name="checkout.onepage">
36
- <block type="ipay/onepage_ipay" name="checkout.onepage.ipay.currency.selector" as="currency_selector" after="checkout.onepage.payment" template="ipay/checkout/onepage/currency_selector.phtml"/>
37
- </reference>
38
- </checkout_onepage_index>
39
- <checkout_onepage_ipay>
40
- <remove name="right"/>
41
- <remove name="left"/>
42
- <block type="ipay/onepage_ipay" name="root" output="toHtml" template="ipay/checkout/onepage/currency_selector.phtml"/>
43
- </checkout_onepage_ipay>
44
-
45
- <sales_email_order_items>
46
- <reference name="order_totals">
47
- <action method="setTemplate">
48
- <template>ipay/sales/order/totals.phtml</template>
49
- </action>
50
- </reference>
51
- </sales_email_order_items>
52
  </layout>
1
+ <?xml version="1.0"?>
2
+ <layout version="0.1.0">
3
+
4
+ <!-- Customer Account handles -->
5
+ <customer_account>
6
+ <reference name="customer_account_navigation">
7
+ <action method="addLink" translate="label" module="ipay" ifconfig="payment/ipay/active">
8
+ <name>ipay_profile</name>
9
+ <path>ipay/profile</path>
10
+ <label>Stored Credit Card Profiles</label>
11
+ </action>
12
+ </reference>
13
+ </customer_account>
14
+
15
+ <ipay_profile_index>
16
+ <update handle="customer_account" />
17
+ <reference name="my.account.wrapper">
18
+ <block type="ipay/profile_list" name="ipay.profile.list" template="ipay/profile/list.phtml" />
19
+ </reference>
20
+ </ipay_profile_index>
21
+
22
+ <ipay_profile_edit>
23
+ <update handle="customer_account" />
24
+ <reference name="my.account.wrapper">
25
+ <block type="ipay/profile_edit" name="ipay.profile.edit" template="ipay/profile/edit.phtml" />
26
+ </reference>
27
+ </ipay_profile_edit>
28
+ <checkout_onepage_index>
29
+ <reference name="head">
30
+ <action method="addItem">
31
+ <type>skin_js</type>
32
+ <name>js/ipay/validation.js</name>
33
+ </action>
34
+ </reference>
35
+ <reference name="checkout.onepage">
36
+ <block type="ipay/onepage_ipay" name="checkout.onepage.ipay.currency.selector" as="currency_selector" after="checkout.onepage.payment" template="ipay/checkout/onepage/currency_selector.phtml"/>
37
+ </reference>
38
+ </checkout_onepage_index>
39
+ <checkout_onepage_ipay>
40
+ <remove name="right"/>
41
+ <remove name="left"/>
42
+ <block type="ipay/onepage_ipay" name="root" output="toHtml" template="ipay/checkout/onepage/currency_selector.phtml"/>
43
+ </checkout_onepage_ipay>
44
+ <sales_email_order_items>
45
+ <reference name="order_totals">
46
+ <action method="setTemplate">
47
+ <template>ipay/sales/order/totals.phtml</template>
48
+ </action>
49
+ </reference>
50
+ </sales_email_order_items>
 
51
  </layout>
app/design/frontend/base/default/template/ipay/sales/order/totals.phtml CHANGED
@@ -56,9 +56,11 @@
56
  <?php else: ?>
57
  <?php
58
 
59
- //$_grand_total_p = Mage::getModel('directory/currency')->format($_total->getValue(),array('display'=>Zend_Currency::NO_SYMBOL), false);
60
 
61
- $_grand_total_p = $_total->getValue(); ?>
 
 
62
  <?php endif?>
63
  <?php endforeach?>
64
 
56
  <?php else: ?>
57
  <?php
58
 
59
+ //$_grand_total_p = Mage::getModel('directory/currency')->formatTxt($_total->getValue(),array('display'=>Zend_Currency::NO_SYMBOL));
60
 
61
+ $_grand_total_p = floatval(ereg_replace("[^-0-9\.]","",$_total->getValue()));
62
+
63
+ ?>
64
  <?php endif?>
65
  <?php endforeach?>
66
 
package.xml CHANGED
@@ -1,19 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>planetpay_ipaygateway</name>
4
- <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license>Open Software License v. 3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Magento Payment Method and Currency Conversion extension to use service provided by Planet Payment.</summary>
10
- <description>This extension connects Magento with Planet Payment's services for credit card authorization, capture, and tokenization as well as currency conversion. These services work in conjunction with the Planet Payment Pay In Your Own Currency offering.&lt;/description&gt;&#xD;
11
- &lt;notes&gt;Added additional user data(Customer ip, Order id,Magento and extension version) to each transaction request XML.</description>
12
  <notes>Added some additional user data(Customer IP,Order ID, Magento and Extension version ) to each transaction request XML</notes>
13
  <authors><author><name>Brad Seeley</name><user>Planet_Payment</user><email>bseeley@planetpayment.com</email></author></authors>
14
  <date>2014-01-30</date>
15
- <time>13:41:09</time>
16
- <contents><target name="mageetc"><dir name="modules"><file name="PlanetPayment_IpayGateway.xml" hash="5cd7961acfa1306ae6fb5857c0ec3bdd"/></dir></target><target name="magecommunity"><dir name="PlanetPayment"><dir name="IpayGateway"><dir name="Block"><dir name="Adminhtml"><dir name="Checkout"><file name="Ipay.php" hash="182c17e0d5e09414d3cf27376589b7ab"/></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Ipay.php" hash="956b006975c076cb2081f0752c8ec399"/></dir><file name="Tabs.php" hash="78aaf15df7948911e0a9431559d32cb0"/></dir></dir><dir name="Payment"><file name="Form.php" hash="dbf9dd9bebd9f66f664d98b63899fa95"/><dir name="_notes"><file name="dwsync.xml" hash="4bbbd8892e21821fb5e9761b636f3791"/></dir></dir><dir name="System"><dir name="Config"><file name="Export.php" hash="ddde70d886ea489ef912320ea294ee09"/><file name="Purge.php" hash="1b99e08eb0b8bbc953a97e21f984c202"/><file name="Test.php" hash="682ca2dbda014b99c63a3f1a110e14f1"/><dir name="_notes"><file name="dwsync.xml" hash="521b9ef04e909833717fc9b1accb5b17"/></dir></dir></dir></dir><dir name="Checkout"><dir name="Cart"><file name="Totals.php" hash="b866dc528f5f3c658ffa0d7d9c6f6207"/></dir></dir><dir name="Onepage"><file name="Ipay.php" hash="022b9028c7d9dcdc9dfa7fd98f40e9f6"/><dir name="_notes"><file name="dwsync.xml" hash="224d497311612bc5835cc212742cc4c9"/></dir></dir><file name="Onepage.php" hash="78f28311bd320c5ee380c1acedff59b8"/><dir name="Payment"><file name="Form.php" hash="3f59b6e03ef0b15ee9fb8884315937ef"/><file name="Info.php" hash="eb7656f7be047200aebb3f4041e5faaf"/></dir><dir name="Profile"><file name="Edit.php" hash="38a4a49c65c3b745429264451a7635c9"/><file name="List.php" hash="5c8dc5c49692aa3ad89efb416d3a4178"/><dir name="_notes"><file name="dwsync.xml" hash="f2051250e977e34f8ced1bb4c60bd019"/></dir></dir><file name="Profile.php" hash="c133c7d0a209a43157036039ba651ea6"/><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="39a82b2b42bece907bc43649e82b7280"/><dir name="_notes"><file name="dwsync.xml" hash="e721864111610df1574d6245e18414fc"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="eaf6d87444ff75f0165a388fa0e1ff31"/><file name="Error.php" hash="bd89f38d7c0f40b9e5535ecbb43517a8"/></dir><dir name="Model"><dir name="Currency"><dir name="Import"><file name="Ipay.php" hash="7e0d6d080b5edcee3a859ce12e49fbce"/></dir></dir><file name="CurrencyCode.php" hash="be0b3c08579dbc12b8151bee2606701a"/><file name="Ipay.php" hash="6ea5b119101c0fd786e74711307af417"/><file name="Log.php" hash="82988227a911bb94cd588b09b730f2c8"/><dir name="Observer"><file name="Abstract.php" hash="0b5664ea3ea368c765f96e48685293b4"/><file name="Checkout.php" hash="36b9158c4926dcf80046d3f3b0e95167"/><file name="Log.php" hash="593b418cb3b809912f704147c1f25764"/><dir name="_notes"><file name="dwsync.xml" hash="81c37e921774711d3e908e0989ca6327"/></dir></dir><file name="Profile.php" hash="441a84fa0a8f5fabd5880b8f65301eb0"/><dir name="Resource"><dir name="CurrencyCode"><file name="Collection.php" hash="e9b7479f9861f7aa174d285f18ac61eb"/></dir><file name="CurrencyCode.php" hash="646ddf0e769a7b147d28314c832b478f"/><dir name="Log"><file name="Collection.php" hash="32a4ba8f218fc8d9f687b17b583c24ca"/></dir><file name="Log.php" hash="0059c5c9aa3e4461d02bf0bbf84d15b9"/><dir name="Profile"><file name="Collection.php" hash="d7d48eaddd9d7b6c628003676be5803a"/></dir><file name="Profile.php" hash="879fc6ab6e9129f2cd6fd820c1fef5ce"/></dir><dir name="System"><dir name="Config"><dir name="General"><file name="Encryption.php" hash="7984d196b3df8b6282e268df1016b1ed"/><file name="Mode.php" hash="db81d615ece105a7c563db50c8fd0904"/></dir><dir name="Payment"><file name="Cctype.php" hash="8f1058b3773e1ad28543f59d060ae896"/><file name="Currency.php" hash="0e2c8da05e96be6e47eed02703c1b0b2"/><file name="PaymentAction.php" hash="9f1a3a23f652ed719d3c44e32c8bce69"/><file name="Service.php" hash="5185f6f870978c3e49ead5a0226db564"/><dir name="_notes"><file name="dwsync.xml" hash="247463ad6c606f44da3457427d35c788"/></dir></dir></dir></dir><dir name="Type"><file name="Onepage.php" hash="4f4fa44c01a3001a110acac9f1bb8e65"/></dir><dir name="Xml"><file name="Abstract.php" hash="8fb9dee63f8d79461daf9b72466466e1"/><file name="Request.php" hash="03e00d9233a6ff0c56f96266e94d6824"/><file name="Response.php" hash="2c5bfe9dcf86c86f882c2ff6d473e58e"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CheckoutController.php" hash="07d4f69bf5b076303812419386cb1a0b"/><file name="CustomerController.php" hash="0eea07ffbe04f45106ae13f22fc19107"/><file name="SystemController.php" hash="7542ac227ed6f2782351af1fdbff1e5c"/></dir><file name="OnepageController.php" hash="c6b0ef2ced3d1e02b892272867706051"/><file name="ProfileController.php" hash="228ab8a66766b16b3c4fcaf0de669139"/></dir><dir name="data"><dir name="ipay_setup"><file name="data-install-1.0.0.php" hash="7dbf220ae77fc5daef6c90b5582a2be9"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3400db9ec7a24b043b56d7a543ddeb8d"/><file name="config.xml" hash="008bd3d7e58d5e1431b120d6d2a7b95d"/><file name="system.xml" hash="8cf956dd5409f3553e26c4b7d7ae4f6e"/></dir><dir name="sql"><dir name="ipay_setup"><file name="install-1.0.0.php" hash="1fe6875dca481be13d6f41659b74361f"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="da400c195dcf3de0c9350fcb9c702c82"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="7a3f1dbce51e22406a5d14b5dc15491a"/><file name="mysql4-upgrade-1.0.2-1.0.5.php" hash="9c7f23c309223b49c6ec94aadb814c69"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ipay.xml" hash="7cc8bb7b73bb991486506173362bf3b7"/></dir><dir name="template"><dir name="ipay"><dir name="checkout"><file name="currency_selector.phtml" hash="ff26d9cf9d30e1e067c3f1694c0e8406"/></dir><dir name="customer"><dir name="tab"><file name="ipay.phtml" hash="6fcf00a1f2c8d2c558df47e523f6e70a"/></dir></dir><dir name="payment"><file name="form.phtml" hash="dfbc4f7a4974bcdea1df0451d46be9f3"/><file name="info.phtml" hash="f35c97559c914938a6346ab9d6b10157"/></dir><dir name="system"><dir name="config"><file name="export.phtml" hash="bf1d91b675c4b0373031319b33e7ff61"/><file name="purge.phtml" hash="27229f19017c26cae2b7b31e78217ded"/><file name="test.phtml" hash="afe3c4c241d731ef1f0e7c095ec47848"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ipay.xml" hash="82ca97eeecdef3470474e6e4e4e09108"/></dir><dir name="template"><dir name="ipay"><dir name="checkout"><dir name="onepage"><file name="currency_selector.phtml" hash="687c6584b51608fed2dc7dce8b865501"/></dir></dir><dir name="email"><dir name="order"><file name="ipay_custom.phtml" hash="33481ddfc257f048b4c208bb3ca441d8"/></dir></dir><dir name="payment"><file name="form.phtml" hash="d9ff34b69b6494a1bd8201a8590c05f1"/><file name="info.phtml" hash="2709ff680077b76063d0d9ccc6071d05"/></dir><dir name="profile"><file name="edit.phtml" hash="db5e50dc2b954ed0f99d2c1430c5b992"/><file name="list.phtml" hash="826df04a5ae8d130394821df29397c24"/></dir><dir name="sales"><dir name="order"><file name="totals.phtml" hash="b1a652f1be8d797e981f90e35d3e5223"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="js"><dir name="ipay"><file name="ipay.js" hash="f565c7ae5dca369de75c3780a7920800"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="ipay"><dir name="_notes"><file name="dwsync.xml" hash="6bb4cf8b8eed0909a592cf7eb9f7cf2d"/></dir><file name="validation.js" hash="3807a0a3cccb159013a690697c107f08"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="sales"><dir name="ipay"><file name="order_new.html" hash="acabde15248b3a52a72e4c355de8a95f"/><file name="order_new_guest.html" hash="8701e05992ee90c5cc439825fe6534cd"/></dir></dir></dir></dir></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>planetpay_ipaygateway</name>
4
+ <version>1.0.9</version>
5
  <stability>stable</stability>
6
  <license>Open Software License v. 3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Magento Payment Method and Currency Conversion extension to use service provided by Planet Payment</summary>
10
+ <description>This extension connects Magento with Planet Payment's services for credit card authorization, capture, and tokenization as well as currency conversion. These services work in conjunction with the Planet Payment Pay In Your Own Currency offering.</description>
 
11
  <notes>Added some additional user data(Customer IP,Order ID, Magento and Extension version ) to each transaction request XML</notes>
12
  <authors><author><name>Brad Seeley</name><user>Planet_Payment</user><email>bseeley@planetpayment.com</email></author></authors>
13
  <date>2014-01-30</date>
14
+ <time>13:48:03</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="PlanetPayment_IpayGateway.xml" hash="5cd7961acfa1306ae6fb5857c0ec3bdd"/></dir></target><target name="magecommunity"><dir name="PlanetPayment"><dir name="IpayGateway"><dir name="Block"><dir name="Adminhtml"><dir name="Checkout"><file name="Ipay.php" hash="182c17e0d5e09414d3cf27376589b7ab"/></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Ipay.php" hash="956b006975c076cb2081f0752c8ec399"/></dir><file name="Tabs.php" hash="78aaf15df7948911e0a9431559d32cb0"/></dir></dir><dir name="Payment"><file name="Form.php" hash="dbf9dd9bebd9f66f664d98b63899fa95"/></dir><dir name="System"><dir name="Config"><file name="Export.php" hash="ddde70d886ea489ef912320ea294ee09"/><file name="Purge.php" hash="1b99e08eb0b8bbc953a97e21f984c202"/><file name="Test.php" hash="682ca2dbda014b99c63a3f1a110e14f1"/></dir></dir></dir><dir name="Checkout"><dir name="Cart"><file name="Totals.php" hash="b866dc528f5f3c658ffa0d7d9c6f6207"/></dir></dir><dir name="Onepage"><file name="Ipay.php" hash="022b9028c7d9dcdc9dfa7fd98f40e9f6"/></dir><file name="Onepage.php" hash="78f28311bd320c5ee380c1acedff59b8"/><dir name="Payment"><file name="Form.php" hash="3f59b6e03ef0b15ee9fb8884315937ef"/><file name="Info.php" hash="eb7656f7be047200aebb3f4041e5faaf"/></dir><dir name="Profile"><file name="Edit.php" hash="38a4a49c65c3b745429264451a7635c9"/><file name="List.php" hash="5c8dc5c49692aa3ad89efb416d3a4178"/></dir><file name="Profile.php" hash="c133c7d0a209a43157036039ba651ea6"/><dir name="Sales"><dir name="Order"><file name="Totals.php" hash="93da43103d484a5367036d27e4f003cb"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="eaf6d87444ff75f0165a388fa0e1ff31"/><file name="Error.php" hash="bd89f38d7c0f40b9e5535ecbb43517a8"/></dir><dir name="Model"><dir name="Currency"><dir name="Import"><file name="Ipay.php" hash="7e0d6d080b5edcee3a859ce12e49fbce"/></dir></dir><file name="CurrencyCode.php" hash="be0b3c08579dbc12b8151bee2606701a"/><file name="Ipay.php" hash="6ea5b119101c0fd786e74711307af417"/><file name="Log.php" hash="82988227a911bb94cd588b09b730f2c8"/><dir name="Observer"><file name="Abstract.php" hash="0b5664ea3ea368c765f96e48685293b4"/><file name="Checkout.php" hash="36b9158c4926dcf80046d3f3b0e95167"/><file name="Log.php" hash="593b418cb3b809912f704147c1f25764"/></dir><file name="Profile.php" hash="441a84fa0a8f5fabd5880b8f65301eb0"/><dir name="Resource"><dir name="CurrencyCode"><file name="Collection.php" hash="e9b7479f9861f7aa174d285f18ac61eb"/></dir><file name="CurrencyCode.php" hash="646ddf0e769a7b147d28314c832b478f"/><dir name="Log"><file name="Collection.php" hash="32a4ba8f218fc8d9f687b17b583c24ca"/></dir><file name="Log.php" hash="0059c5c9aa3e4461d02bf0bbf84d15b9"/><dir name="Profile"><file name="Collection.php" hash="d7d48eaddd9d7b6c628003676be5803a"/></dir><file name="Profile.php" hash="879fc6ab6e9129f2cd6fd820c1fef5ce"/></dir><dir name="System"><dir name="Config"><dir name="General"><file name="Encryption.php" hash="7984d196b3df8b6282e268df1016b1ed"/><file name="Mode.php" hash="db81d615ece105a7c563db50c8fd0904"/></dir><dir name="Payment"><file name="Cctype.php" hash="8f1058b3773e1ad28543f59d060ae896"/><file name="Currency.php" hash="0e2c8da05e96be6e47eed02703c1b0b2"/><file name="PaymentAction.php" hash="9f1a3a23f652ed719d3c44e32c8bce69"/><file name="Service.php" hash="5185f6f870978c3e49ead5a0226db564"/></dir></dir></dir><dir name="Type"><file name="Onepage.php" hash="4f4fa44c01a3001a110acac9f1bb8e65"/></dir><dir name="Xml"><file name="Abstract.php" hash="8fb9dee63f8d79461daf9b72466466e1"/><file name="Request.php" hash="50c33047be7c293d3a7b32dd56b8a1eb"/><file name="Response.php" hash="56ea17188594792893e84c9a7fcefd93"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="CheckoutController.php" hash="07d4f69bf5b076303812419386cb1a0b"/><file name="CustomerController.php" hash="0eea07ffbe04f45106ae13f22fc19107"/><file name="SystemController.php" hash="7542ac227ed6f2782351af1fdbff1e5c"/></dir><file name="OnepageController.php" hash="c6b0ef2ced3d1e02b892272867706051"/><file name="ProfileController.php" hash="228ab8a66766b16b3c4fcaf0de669139"/></dir><dir name="data"><dir name="ipay_setup"><file name="data-install-1.0.0.php" hash="7dbf220ae77fc5daef6c90b5582a2be9"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="3400db9ec7a24b043b56d7a543ddeb8d"/><file name="config.xml" hash="590cfa0d08523560bf974138dc73a9b9"/><file name="system.xml" hash="8cf956dd5409f3553e26c4b7d7ae4f6e"/></dir><dir name="sql"><dir name="ipay_setup"><file name="install-1.0.0.php" hash="261bc37f9ed31fe730abf4e686e23835"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="da400c195dcf3de0c9350fcb9c702c82"/><file name="mysql4-upgrade-1.0.1-1.0.2.php" hash="7a3f1dbce51e22406a5d14b5dc15491a"/><file name="mysql4-upgrade-1.0.2-1.0.5.php" hash="c8f1254bbad0593d3b10a0ae45abb8d7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="ipay.xml" hash="7cc8bb7b73bb991486506173362bf3b7"/></dir><dir name="template"><dir name="ipay"><dir name="checkout"><file name="currency_selector.phtml" hash="ff26d9cf9d30e1e067c3f1694c0e8406"/></dir><dir name="customer"><dir name="tab"><file name="ipay.phtml" hash="6fcf00a1f2c8d2c558df47e523f6e70a"/></dir></dir><dir name="payment"><file name="form.phtml" hash="dfbc4f7a4974bcdea1df0451d46be9f3"/><file name="info.phtml" hash="f35c97559c914938a6346ab9d6b10157"/></dir><dir name="system"><dir name="config"><file name="export.phtml" hash="bf1d91b675c4b0373031319b33e7ff61"/><file name="purge.phtml" hash="27229f19017c26cae2b7b31e78217ded"/><file name="test.phtml" hash="afe3c4c241d731ef1f0e7c095ec47848"/></dir></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="ipay.xml" hash="e4bd647c1f1fedf1ed59ced32b49fe38"/></dir><dir name="template"><dir name="ipay"><dir name="checkout"><dir name="onepage"><file name="currency_selector.phtml" hash="687c6584b51608fed2dc7dce8b865501"/></dir></dir><dir name="email"><dir name="order"><file name="ipay_custom.phtml" hash="33481ddfc257f048b4c208bb3ca441d8"/></dir></dir><dir name="payment"><file name="form.phtml" hash="d9ff34b69b6494a1bd8201a8590c05f1"/><file name="info.phtml" hash="2709ff680077b76063d0d9ccc6071d05"/></dir><dir name="profile"><file name="edit.phtml" hash="db5e50dc2b954ed0f99d2c1430c5b992"/><file name="list.phtml" hash="826df04a5ae8d130394821df29397c24"/></dir><dir name="sales"><dir name="order"><file name="totals.phtml" hash="0f43789684e7c1adff3377b52d226086"/></dir></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="js"><dir name="ipay"><file name="ipay.js" hash="f565c7ae5dca369de75c3780a7920800"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="js"><dir name="ipay"><file name="validation.js" hash="3807a0a3cccb159013a690697c107f08"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="sales"><dir name="ipay"><file name="order_new.html" hash="acabde15248b3a52a72e4c355de8a95f"/><file name="order_new_guest.html" hash="8701e05992ee90c5cc439825fe6534cd"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
skin/frontend/base/default/js/ipay/_notes/dwsync.xml DELETED
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8" ?>
2
- <dwsync>
3
- <file name="validation.js" server="foreigncurrencypayments.com" local="130020691460000000" remote="130216229400000000" Dst="0" />
4
- </dwsync>