DebitwayCC_Creditcard - Version 2.0.3

Version Notes

In the checkout page, if the buyer chooses DebitWay Credit Card Payment option, then the buyer will be asked to enter the credit card details and a a payment request will be sent to DebitWay.

The response from DebitWay is shown to the buyer. (E.g. : if the transaction succeeded, a success message is displayed with the Transaction ID. If the transaction failed, an error message is displayed back to buyer).

Once the plug-in is installed the merchant needs to enter in the Magento panel the merchant account identifier, vericode and website unique id. Those are provided by DebitWay.

This extension can be used only with the DebitWay platform for credit cards.

Download this release

Release Info

Developer ramya
Extension DebitwayCC_Creditcard
Version 2.0.3
Comparing to
See all releases


Code changes from version 2.0.2 to 2.0.3

app/code/community/DebitwayCC/Creditcard/Model/Pay.php CHANGED
@@ -254,17 +254,26 @@ class DebitwayCC_Creditcard_Model_Pay extends Mage_Payment_Model_Method_Cc {
254
  $email = $order->getCustomerEmail();
255
 
256
  $billing_address = $billingAddress->getStreet1();
257
- $billing_city = $billingAddress->getCity();
258
- $billing_state_or_province = $billingAddress->getRegionCode();
259
- $billing_country = $billingAddress->getCountry();
 
 
 
 
 
260
  $billing_zip_or_postal_code = $billingAddress->getPostcode();
261
  $bphone = $billingAddress->getTelephone();
262
 
263
 
264
  $shipping_address = $shippingAddress->getStreet1();
265
  $shipping_city = $shippingAddress->getCity();
266
- $shipping_state_or_province = $shippingAddress->getRegionCode();
267
  $shipping_country = $shippingAddress->getCountry();
 
 
 
 
 
268
  $shipping_zip_or_postal_code = $shippingAddress->getPostcode();
269
  $return_url = Mage::getBaseUrl (Mage_Core_Model_Store::URL_TYPE_WEB);
270
  $return_url .= 'pay/payment/response';
254
  $email = $order->getCustomerEmail();
255
 
256
  $billing_address = $billingAddress->getStreet1();
257
+ $billing_city = $billingAddress->getCity();
258
+ $billing_country = $billingAddress->getCountry();
259
+ if($billing_country == "CA" || $billing_country == "US"){
260
+ $billing_state_or_province = $billingAddress->getRegionCode();
261
+ }else{
262
+ $billing_state_or_province = $billingAddress->getRegion();
263
+ }
264
+
265
  $billing_zip_or_postal_code = $billingAddress->getPostcode();
266
  $bphone = $billingAddress->getTelephone();
267
 
268
 
269
  $shipping_address = $shippingAddress->getStreet1();
270
  $shipping_city = $shippingAddress->getCity();
 
271
  $shipping_country = $shippingAddress->getCountry();
272
+ if($shipping_country == "CA" || $shipping_country == "US"){
273
+ $shipping_state_or_province = $shippingAddress->getRegionCode();
274
+ }else{
275
+ $shipping_state_or_province = $shippingAddress->getRegion();
276
+ }
277
  $shipping_zip_or_postal_code = $shippingAddress->getPostcode();
278
  $return_url = Mage::getBaseUrl (Mage_Core_Model_Store::URL_TYPE_WEB);
279
  $return_url .= 'pay/payment/response';
package.xml CHANGED
@@ -1,16 +1,13 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DebitwayCC_Creditcard</name>
4
- <version>2.0.2</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">The Open Software License 3.0 (OSL-3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>This is an extension which can be used for Credit Card Payment Method with DebitWay. It adds 'DebitWay Credit Card Payment Module' as a payment method during checkout.&#xD;
10
- </summary>
11
- <description>Credit Card Plugin:&#xD;
12
- &#xD;
13
- The plug-in integrates with DebitWay platform hence making easy for merchants to connect with DebitWay. Merchants have nothing else to do but install this extension, configure it and start processing transactions.</description>
14
  <notes>In the checkout page, if the buyer chooses DebitWay Credit Card Payment option, then the buyer will be asked to enter the credit card details and a a payment request will be sent to DebitWay.&#xD;
15
  &#xD;
16
  The response from DebitWay is shown to the buyer. (E.g. : if the transaction succeeded, a success message is displayed with the Transaction ID. If the transaction failed, an error message is displayed back to buyer).&#xD;
@@ -21,8 +18,8 @@ Once the plug-in is installed the merchant needs to enter in the Magento panel t
21
  This extension can be used only with the DebitWay platform for credit cards.</notes>
22
  <authors><author><name>ramya</name><user>tech4</user><email>ramya@debitway.ca</email></author></authors>
23
  <date>2015-10-21</date>
24
- <time>15:49:33</time>
25
- <contents><target name="magecommunity"><dir name="DebitwayCC"><dir name="Creditcard"><dir name="Block"><dir name="Form"><file name="Pay.php" hash="d4f3ef8fab1defffee9fb2f5e925ad77"/></dir><dir name="Info"><file name="Pay.php" hash="38f5fd149883267bee345d98abedfb98"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fa1e42e8278b9a11dd4c3c86cbc62c2f"/></dir><dir name="Model"><file name="Pay.php" hash="a91ef4006942b5483b0f069e2116fdee"/><dir name="Source"><file name="Action.php" hash="bf50491a440da1fb423f250c11e446ea"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="9a9b8a5bfbd60699499f73a1497c33f0"/></dir><dir name="etc"><file name="config.xml" hash="dfb34b49370888933ab399ec3d54a532"/><file name="system.xml" hash="ee77e408b718164063f4a810f93b1ce4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DebitwayCC_Creditcard" hash=""/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
28
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>DebitwayCC_Creditcard</name>
4
+ <version>2.0.3</version>
5
  <stability>stable</stability>
6
+ <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This is an extension which can be used for Credit Card Payment Method with DebitWay. It adds 'DebitWay Credit Card Payment Module' as a payment method during checkout.</summary>
10
+ <description>The plug-in integrates with DebitWay platform hence making easy for merchants to connect with DebitWay. Merchants have nothing else to do but install this extension, configure it and start processing transactions.</description>
 
 
 
11
  <notes>In the checkout page, if the buyer chooses DebitWay Credit Card Payment option, then the buyer will be asked to enter the credit card details and a a payment request will be sent to DebitWay.&#xD;
12
  &#xD;
13
  The response from DebitWay is shown to the buyer. (E.g. : if the transaction succeeded, a success message is displayed with the Transaction ID. If the transaction failed, an error message is displayed back to buyer).&#xD;
18
  This extension can be used only with the DebitWay platform for credit cards.</notes>
19
  <authors><author><name>ramya</name><user>tech4</user><email>ramya@debitway.ca</email></author></authors>
20
  <date>2015-10-21</date>
21
+ <time>21:06:45</time>
22
+ <contents><target name="magecommunity"><dir name="DebitwayCC"><dir name="Creditcard"><dir name="Block"><dir name="Form"><file name="Pay.php" hash="d4f3ef8fab1defffee9fb2f5e925ad77"/></dir><dir name="Info"><file name="Pay.php" hash="38f5fd149883267bee345d98abedfb98"/></dir></dir><dir name="Helper"><file name="Data.php" hash="fa1e42e8278b9a11dd4c3c86cbc62c2f"/></dir><dir name="Model"><file name="Pay.php" hash="3049674d4dc772d89b47aa2d69d8ede6"/><dir name="Source"><file name="Action.php" hash="bf50491a440da1fb423f250c11e446ea"/></dir></dir><dir name="controllers"><file name="IndexController.php" hash="9a9b8a5bfbd60699499f73a1497c33f0"/></dir><dir name="etc"><file name="config.xml" hash="dfb34b49370888933ab399ec3d54a532"/><file name="system.xml" hash="ee77e408b718164063f4a810f93b1ce4"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="DebitwayCC_Creditcard" hash=""/></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
25
  </package>