Plugin Directory

Changeset 2025416


Ignore:
Timestamp:
02/05/2019 06:11:41 PM (7 years ago)
Author:
cardinalmarketing
Message:

Update copy for WooCommerce, add consumer messaging, test up to new version of WordPress.

Location:
cardinalcommerce-oneconnect
Files:
9 added
5 edited

Legend:

Unmodified
Added
Removed
  • cardinalcommerce-oneconnect/tags/1.2.5/Gateway.php

    r1914198 r2025416  
    755755        if ( ( $emulation_enabled == "yes" ) and $is_admin ){
    756756            return false;
    757         } elseif ( ( $emulation_enabled == "yes" ) and !$is_admin ) { 
     757        } elseif ( ( $emulation_enabled == "yes" ) and !$is_admin ) {
    758758            return true;
    759759        } elseif ( $emulation_enabled == "no" ) {
  • cardinalcommerce-oneconnect/trunk/Gateway.php

    r1933369 r2025416  
    1212
    1313        $this->has_fields = true;
    14         $this->supports = array('products', 'refunds');
     14        $this->supports = array(
     15            'products',
     16            'refunds'
     17            //'tokenization'
     18        );
    1519
    1620        add_action( 'woocommerce_update_options_payment_gateways_' .
     
    3236        $this->instances = include
    3337            plugin_dir_path(CARDINAL_ONECONNECT_PLUGIN_FILE) . 'instances.php';
     38
     39        require_once plugin_dir_path(CARDINAL_ONECONNECT_PLUGIN_FILE) .
     40        'Token.php';
    3441    }
    3542
     
    149156            ),
    150157
     158            'merchantContent' => array(
     159                'title' => 'Consumer Messaging',
     160                'description' =>
     161                    'Input text to display to customers while payment is ' .
     162                    'processing.',
     163                'desc_tip' => true,
     164                'type' => 'text',
     165            ),
     166
    151167            'apiIdentifier' => array(
    152168                'title' => 'API Identifier',
     
    260276
    261277        $id = 'CardinalOneConnectResult';
    262         echo "<input type='hidden' autocomplete='off' id='{$id}' name='$id' />";
     278        $merchant_content = $this->get_option('merchantContent');
     279        echo "<input type='hidden' autocomplete='off' id='{$id}' name='$id' /><div id='merchant-content-wrapper' style='display: none'><div id='actual-merchant-content'>{$merchant_content}</div></div>";
    263280    }
    264281
     
    424441        return $rv;
    425442    }
     443
     444    // public function add_payment_method() {
     445
     446    //     $old_token = $this->get_users_token();
     447    //     $token = $this->save_token();
     448    //     if ( is_null( $token ) ) {
     449    //         $this->reject_with_error('This payment method could not be saved.');
     450    //         return;
     451    //     }
     452
     453    //     return array(
     454    //         'result'   => 'success',
     455    //         'redirect' => wc_get_endpoint_url( 'payment-methods' ),
     456    //     );
     457    // }
     458
     459    // public function save_token(){
     460
     461    //     $cruise_result_json = $_POST['CardinalOneConnectResult'];
     462    //     $cruise_result = json_decode(stripslashes($cruise_result_json));
     463    //     $jwt = $this->parse_cruise_jwt($cruise_result->jwt);
     464    //     $cc_token = $jwt->Token;
     465
     466    //     $token = new WC_Payment_Gateway_Cardinal_OneConnect_Token();
     467
     468    //     $token->set_token($cc_token->Token);
     469    //     $token->set_gateway_id($this->id);
     470    //     $token->set_last4($cc_token->CardLastFour);
     471    //     $token->set_expiry_year($cc_token->ExpirationYear);
     472    //     $token->set_expiry_month($cc_token->ExpirationMonth);
     473    //     $token->set_card_code($cc_token->CardCode);
     474
     475    //     if ( is_user_logged_in() ) {
     476    //         $token->set_user_id( get_current_user_id() );
     477    //     }
     478
     479    //     $token->save();
     480
     481    //     if ( is_user_logged_in() ) {
     482    //         WC_Payment_Tokens::set_users_default( get_current_user_id(), $token->get_id() );
     483    //     }
     484
     485    //     return $token;
     486    // }
     487
     488    // protected function get_users_token() {
     489    //     $customer_token  = null;
     490    //     if ( is_user_logged_in() ) {
     491    //         $tokens = WC_Payment_Tokens::get_customer_tokens( get_current_user_id() ) ;
     492    //         foreach ( $tokens as $token ) {
     493    //             if ( $token->get_gateway_id() === $this->id ) {
     494    //                 $customer_token = $token;
     495    //                 break;
     496    //             }
     497    //         }
     498    //     }
     499    //     return $customer_token;
     500    // }
    426501
    427502    public function process_payment( $order_id ) {
     
    475550            $this->reject_with_error('data and Payload ActionCode do not match');
    476551        }
     552
     553        // $token = $jwt->Token;
     554        // if( isset( $_POST['wc-cardinalpm-new-payment-method'] ) ) {
     555        //     if (!$token){
     556        //         $this->reject_with_error('This payment method could not be saved.');
     557        //         return;
     558        //     } else {
     559        //         $this->add_payment_method();
     560        //     }
     561        // }
    477562
    478563        $orderid = $payload->AuthorizationProcessor->ProcessorOrderId;
  • cardinalcommerce-oneconnect/trunk/README.txt

    r1933369 r2025416  
    11=== 3-D Secure Payment Gateway by CardinalCommerce ===
    22Contributors: cardinalsupport, williamjlittlefield
    3 Tags: 3-D Secure, authorize.net, payment, chargeback, fraud
     3Tags: 3DS, PSD2, SCA, payment, authentication
    44Requires at least: 4.6
    5 Tested up to: 4.7.5
    6 Stable tag: 1.2.7
     5Tested up to: 5.0.3
     6Stable tag: 1.2.8
    77License: GPLv3 or later
    88LicenseURI: http://www.gnu.org/licenses/gpl-3.0.html
    99WC requires at least: 3.0
    10 WC tested up to: 3.0.8
     10WC tested up to: 3.5.4
    1111
    1212OneConnect is your 3-D Secure Payment Gateway Plugin for use with your current payment service provider.
     
    1616<h3>3-D Secure Payment Gateway by CardinalCommerce</h3>
    1717
    18 Enable 3-D Secure on your WooCommerce site to protect your payments: 1. Reduce Fraud and Shift Fraud Liability to the Issuing Bank 2. Accept More Sales and Improve Authorization Rates 3. Slash Manual Review for Fraud 4. Cut chargeback fees and virtually end representment 5. Some merchants even reduce thier interchange fees.
    19 Some compatible payment service providers include Authorize.net, Cybersource, Chase Paymentech, Heartland, Network Merchants (NMI), First Data, PayPal PayFloPro, and more.
     18Cardinal Consumer Authentication, leveraging 3-D Secure, helps you:
     191. Reduce fraud
     202. Accept more sales and improve authorization rates
     213. Comply with regulations like PSD2-SCA (in Europe)
     224. Reduce manual review for fraud
     235. Cut chargeback fees
    2024
     25Compatible with the following payment service providers (PSPs):
     26* Authorize.net
     27* Chase Paymentech
     28* CyberSource
     29* First Data
     30* Heartland
     31* Network Merchants (NMI)
     32* PayPal PayflowPro
     33* And more
    2134
    22 Call 877-352-8444 for more information or use the [credentials form](http://info.cardinalcommerce.com/credentials-woocommerce)
     35Support for Visa, MasterCard, Discover, American Express, JCB, and Diner's Club.
    2336
     37Call 877-352-8444 to receive credentials and get started!
    2438
    25 Accept Visa, MasterCard, Discover, and American Express.
     39<h3>Protect Your Online Store From Fraud with 3-D Secure</h3>
    2640
    27 <h3>Protect Your Store From Fraud with 3D Secure</h3> CardinalCommerce is famous for offering the most versatile rules based 3D Secure (3DS) solution in the industry. Protect your web store with this optional service that gives you all of the benefits of Cardinal Consumer Authentication.
     41CardinalCommerce (a wholly owned subsidiary of Visa) offers a rules-based 3-D Secure (3DS) solution called Cardinal Consumer Authentication. Protect your web store from fraud, reduce false declines, reduce manual review of orders, and improve your authorizations.
    2842
    29 https://www.youtube.com/watch?v=54Ftsl-Yo3c
     43Supports Verified by Visa (VbV), Mastercard SecureCode/Identity Check, Discover ProtectBuy, and American Express Amex Safekey.
    3044
    31 1.
    32 Supports Verified by Visa (VbV), MasterCard SecureCode, Discover ProtectBuy, and American Express Amex Safekey.
     45<h3>Activate Cardinal Consumer Authentication to Comply with PSD2 SCA</h3>
    3346
     47If you sell to consumers in the European Economic Area (EEA), and use acquiring services in the EEA, then you will be required to comply with the PSD2 requirement for Strong Customer Authentication (SCA). Your online store must support SCA for all digital transactions starting September 14, 2019. (Mastercard will require issuers, merchants, and acquirers to support SCA in the EEA starting in April, 2019.)
    3448
     49EEA countries include Austria, Belgium, Bulgaria, Czech Republic, Cyprus, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, Iceland, Ireland, Italy, Latvia, Liechtenstein, Lithuania, Luxembourg, Malta, Netherlands, Norway, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden and the UK.
     50
     51<h3>How 3-D Secure Solves for SCA</h3>
     52EMV® 3-D Secure (commonly known as 3DS 2.0) authenticates Card-Not-Present transactions to reduce fraud and false declines, and to increase good orders, with a better checkout experience for consumers. The PSD2 SCA requirement can be fulfilled by 3-D Secure because it works on any device and enables two-factor authentication.
     53
     54<h3>Why Cardinal Consumer Authentication is THE Merchant Solution</h3>
     55Cardinal Consumer Authentication is an industry-leading solution for merchants to authenticate digital transactions, leveraging 3-D Secure. CCA balances the risk of the transaction with the consumer experience and authenticates most transactions behind the scenes. There is no consumer impact or interruption to the checkout process in most cases, and CCA uses consumer-friendly challenge methods to limit friction when necessary.
     56
     57EMV® is a registered trademark in the U.S. and other countries and an unregistered trademark elsewhere. The EMV trademark is owned by EMVCo, LLC
    3558
    3659<h3>Resources</h3>
    37 * Find out what Cardinal Consumer Authentication is and how it can [stop fraudsters on your web store.](https://www.cardinalcommerce.com/videos/1_CardinalConsumerAuth)
    38 * You might have questions about Cardinal Consumer Authentication, [we've got the answers!](https://www.cardinalcommerce.com/videos/3_FAQs)
    39 * Find out what your tech team [needs to know about 3D Secure.](https://www.cardinalcommerce.com/videos/Cardinal%20Dev%20Center%20Intro%20for%20Emerging%20Businesses)
    40 *
     60* [Why do I need 3-D Secure or Strong Consumer Authentication?](https://www.cardinalcommerce.com/3-d-secure-2-0)
     61* [What is Strong Consumer Authentication?](https://payments.cardinalcommerce.com/about-fraud-the-growing-importance-of-3-d-secure-and-psd2)
     62* [How do I get ready for PSD2 compliance?](https://www.cardinalcommerce.com/products/psd2)
    4163
    4264
    4365== Frequently Asked Questions ==
    4466= How do I get my Cardinal credentials? =
    45 CardinalCommerce provides those over the phone or via email once you have the plugin installed. Call us at 877-352-8444 or email [email protected]
     67Call or email CardinalCommerce once you have the plugin installed. Call us at 877-352-8444 or email [email protected]
    4668=
    4769
     70== Changelog ==
    4871
    49 == Screenshots ==
    50 
    51 1. Effect of Cardinal on Web Sales and Fraud
    52 2. EMV for Online Business
    53 3. Benefits Overview
    54 
    55 == Changelog ==
     72= 2019.01.22 - Version 1.2.8 =
     73 * Include information regarding PSD2
     74 * Test up to WordPress 5.0.3
     75 * Add optional merchant messaging to display in iFrame
    5676
    5777= 2018.08.01 - Version 1.2.7 =
  • cardinalcommerce-oneconnect/trunk/cardinalcommerce-oneconnect.js

    r1889699 r2025416  
    3333            logging: {
    3434                level: $('#CardinalOneConnectLoggingLevel').val()
     35            },
     36            CCA: {
     37                CustomContentID: 'merchant-content-wrapper'
    3538            }
    3639        });
  • cardinalcommerce-oneconnect/trunk/cardinalcommerce-oneconnect.php

    r1933369 r2025416  
    55 * Plugin URI:   https://developer.cardinalcommerce.com/
    66 * Description:  Module for processing payments with CardinalCommerce and optional Cardinal Consumer Authentication (CCA)
    7  * Version:      1.2.7
     7 * Version:      1.2.8
    88 * Author:       CardinalCommerce
    99 * Author URI:   https://cardinalcommerce.com/
     
    1616}
    1717
    18 define( 'CARDINAL_ONECONNECT_VERSION', '1.2.7' );
     18define( 'CARDINAL_ONECONNECT_VERSION', '1.2.8' );
    1919define( 'CARDINAL_ONECONNECT_PLUGIN_FILE', __FILE__ );
    2020
Note: See TracChangeset for help on using the changeset viewer.