Plugin Directory

Changeset 2476636


Ignore:
Timestamp:
02/17/2021 09:53:19 PM (5 years ago)
Author:
girosolution
Message:
  1. 4.1.4 Another 3DS2 fix
Location:
girocheckout/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • girocheckout/trunk/girocheckout.php

    r2471738 r2476636  
    1010 * Plugin Name: GiroCheckout
    1111 * Description: Plugin to integrate the GiroCheckout payment methods into WooCommerce.
    12  * Version:     4.1.3
     12 * Version:     4.1.4
    1313 * Author:      GiroSolution GmbH
    1414 * Author URI:  http://www.girosolution.de
  • girocheckout/trunk/library/GiroCheckout_Utility.php

    r2471738 r2476636  
    1919   */
    2020  public static function getVersion() {
    21     return '4.1.3';
     21    return '4.1.4';
    2222  }
    2323
  • girocheckout/trunk/payments/gc_creditcard.php

    r2471738 r2476636  
    391391      }
    392392
    393       $aTdsOptionalInfo->email = $strEmail; // Optional email address
    394 
    395       if ($tds2Address != $shipAddressAddress || $tds2City != $shipAddressCity ||
    396           $tds2Postcode != $shipAddressPostcode || $tds2Country != $shipAddressCountry) {
    397         $aTdsOptionalInfo->shippingAddress = new stdClass();
    398         $aTdsOptionalInfo->shippingAddress->country = $shipAddressCountry;
    399         $aTdsOptionalInfo->shippingAddress->line1 = $shipAddressAddress;
    400         $aTdsOptionalInfo->shippingAddress->city = $shipAddressCity;
    401         $aTdsOptionalInfo->shippingAddress->postcode = $shipAddressPostcode;
    402       }
    403 
    404       // Shipping address matches billing address, array( "true", "false" );
    405       if ($tds2Address == $shipAddressAddress && $tds2City == $shipAddressCity &&
    406           $tds2Postcode == $shipAddressPostcode && $tds2Country == $shipAddressCountry) {
    407         $aTdsOptionalInfo->addressesMatch = "true";
    408       } else {
    409         $aTdsOptionalInfo->addressesMatch = "false";
     393      if (!empty($strEmail)) {
     394        $aTdsOptionalInfo->email = $strEmail; // Optional email address
     395      }
     396
     397      if (!empty($shipAddressCountry) && !empty($shipAddressAddress) &&
     398          !empty($shipAddressCity) && !empty($shipAddressPostcode)) {
     399        if ($tds2Address != $shipAddressAddress || $tds2City != $shipAddressCity ||
     400            $tds2Postcode != $shipAddressPostcode || $tds2Country != $shipAddressCountry) {
     401
     402          $aTdsOptionalInfo->shippingAddress = new stdClass();
     403          $aTdsOptionalInfo->shippingAddress->country = $shipAddressCountry;
     404          $aTdsOptionalInfo->shippingAddress->line1 = $shipAddressAddress;
     405          $aTdsOptionalInfo->shippingAddress->city = $shipAddressCity;
     406          $aTdsOptionalInfo->shippingAddress->postcode = $shipAddressPostcode;
     407
     408          // Shipping address matches billing address, array( "true", "false" );
     409          $aTdsOptionalInfo->addressesMatch = "false";
     410
     411        } else {
     412          // Shipping address matches billing address, array( "true", "false" );
     413          $aTdsOptionalInfo->addressesMatch = "true";
     414        }
    410415      }
    411416
  • girocheckout/trunk/readme.txt

    r2471738 r2476636  
    5454
    5555== Changelog ==
    56 
    57 = 4.1.3 =
    58 * Fixed a bug regarding the new 3-D Secure 2.0 address fields for credit card payments.
    59 
    60 = 4.1.2 =
    61 * Added support for the mandatory 3-D Secure 2.0 address fields. Address data is now sent to payment server for credit card payments, so it is not requested upon credit card data entry.
    6256
    6357= 4.1.1 =
Note: See TracChangeset for help on using the changeset viewer.