Plugin Directory

Changeset 3142613


Ignore:
Timestamp:
08/28/2024 05:51:16 AM (19 months ago)
Author:
abubacker
Message:

tagging version 7.7.0 with Added card type configuration option at the admin level to allow selection of card types: debit cards, credit cards, or both and Added L2 and L3 support

Location:
valorpos
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • valorpos/tags/7.7.0/README.txt

    r3123258 r3142613  
    33Tags: payment, payment gateway, credit card, valor pay, valor paytech
    44Requires at least: 5.0
    5 Tested up to: 6.6
     5Tested up to: 6.3.1
    66Requires PHP: 7.0
    7 Stable tag: 7.6.1
     7Stable tag: 7.7.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242
    4343== Changelog ==
     44= 7.7.0 =
     45* Added card type configuration option at the admin level to allow selection of card types: debit cards, credit cards, or both.
     46* Added L2 and L3 support, Level 3 (L3) benefits applicable only for Visa and Mastercard commercial cards
     47
    4448= 7.6.1 =
    4549* Added a new hook update the order description and invoice number in the sale payload, introduced token card functionality, updated the "Street No" label in the AVS section and revised the support email.
  • valorpos/tags/7.7.0/includes/class-wc-valorpay-api.php

    r3115531 r3142613  
    370370                }
    371371            }
     372            if ( 'yes' === $this->gateway->enable_l2_l3 ) {
     373                $l2_l3_data = $this->get_order_details( $order );
     374                if ( count( $l2_l3_data ) > 0 ) {
     375                    $data['order_details'] = $l2_l3_data;
     376                }
     377                // For l2 and l3 invoice number required, if not set then set order id as invoice number.
     378                if ( ! isset( $data['invoicenumber'] ) || ! $data['invoicenumber'] ) {
     379                    $data['invoicenumber'] = $order->get_id();
     380                }
     381            }
    372382        } elseif ( 'refund' === $transaction_type ) {
    373383            $valorpay_order_meta = $order->get_meta( '_valorpay_transaction' );
     
    612622        );
    613623    }
     624
     625    /**
     626     * Get order detail payload
     627     *
     628     * @since 7.7.0
     629     *
     630     * @param WC_Order $order Order Detail.
     631     * @return array response
     632     */
     633    public function get_order_details( $order ) {
     634        $order_details = array();
     635        if ( count( $order->get_items() ) > 0 ) {
     636            $product_line_items = array();
     637            foreach ( $order->get_items() as $item_id => $item ) {
     638                $product_name         = substr( $item->get_name(), 0, 50 );
     639                $product_id           = $item->get_product_id();
     640                $product              = $item->get_product();
     641                $sku                  = substr( $product->get_sku(), 0, 15 );
     642                $quantity_ordered     = $item->get_quantity();
     643                $tax                  = $item->get_subtotal_tax();
     644                $unit_cost            = $item->get_subtotal();
     645                $product_line_items[] = array(
     646                    'name'      => $product_name,
     647                    'code'      => $sku ? $sku : $product_id,
     648                    'qty'       => $quantity_ordered,
     649                    'unit_cost' => (float) $unit_cost,
     650                    'tax'       => (float) $tax,
     651                );
     652            }
     653            $order_details['product_line_items'] = $product_line_items;
     654        }
     655        if ( count( $order->get_coupons() ) > 0 ) {
     656            $discounts = array();
     657            foreach ( $order->get_coupons() as $coupon_code ) {
     658                // Add to discounts array.
     659                $discounts[] = array(
     660                    'name' => substr( $coupon_code->get_name(), 0, 50 ),
     661                    'cost' => (float) $coupon_code->get_discount(),
     662                );
     663            }
     664            $order_details['discounts'] = $discounts;
     665        }
     666        return $order_details;
     667    }
    614668}
  • valorpos/tags/7.7.0/includes/class-wc-valorpay-gateway.php

    r3115531 r3142613  
    139139     */
    140140    public $disable_payment_decline_time;
     141
     142    /**
     143     * Valor Pay card type allowed.
     144     *
     145     * @var string
     146     */
     147    public $card_type_allowed;
     148
     149    /**
     150     * Valor Pay enable L2 & L3.
     151     *
     152     * @var string
     153     */
     154    public $enable_l2_l3;
    141155
    142156    /**
     
    186200        $this->disable_payment_decline_count = $this->get_option( 'disable_payment_decline_count' );
    187201        $this->disable_payment_decline_time  = $this->get_option( 'disable_payment_decline_time' );
     202        $this->card_type_allowed             = $this->get_option( 'card_type_allowed' );
     203        $this->enable_l2_l3                  = $this->get_option( 'enable_l2_l3' );
    188204
    189205        // Add test mode warning if sandbox.
     
    277293            echo wp_kses_post( apply_filters( 'wc_valorpay_description', wpautop( wptexturize( $this->description ) ) ) );
    278294        }
     295        if ( 'debit' === $this->card_type_allowed ) {
     296            echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only debit cards are allowed', 'wc-valorpay' ) . '</div>';
     297        } elseif ( 'credit' === $this->card_type_allowed ) {
     298            echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only credit cards are allowed', 'wc-valorpay' ) . '</div>';
     299        }
    279300        parent::payment_fields();
    280301        if ( ! is_add_payment_method_page() ) {
     
    339360    public function validate_fields() {
    340361        try {
     362            $is_debit_card = 'D' === WC()->session->get( 'valor_card_type' );
     363            if ( 'debit' === $this->card_type_allowed && ! $is_debit_card ) {
     364                throw new Exception( __( 'Only debit cards are allowed.', 'wc-valorpay' ) );
     365            } elseif ( 'credit' === $this->card_type_allowed && $is_debit_card ) {
     366                throw new Exception( __( 'Only credit cards are allowed.', 'wc-valorpay' ) );
     367            }
    341368            $valorpay_avs_type = ( isset( $_POST['valorpay_avs_type'] ) ) ? sanitize_text_field( wp_unslash( $_POST['valorpay_avs_type'] ) ) : ''; // phpcs:ignore
    342369            if ( 'zip' === $valorpay_avs_type || 'zipandaddress' === $valorpay_avs_type ) {
     
    515542                'default'     => '',
    516543            ),
     544            'card_type_allowed'             => array(
     545                'title'       => __( 'Allowed Card Type', 'wc-valorpay' ),
     546                'type'        => 'select',
     547                'class'       => 'chosen_select',
     548                'description' => __( 'Select the allowed card type for transactions', 'wc-valorpay' ),
     549                'css'         => 'width: 100px;',
     550                'options'     => array(
     551                    'both'   => __( 'Both', 'wc-valorpay' ),
     552                    'credit' => __( 'Credit', 'wc-valorpay' ),
     553                    'debit'  => __( 'Debit', 'wc-valorpay' ),
     554                ),
     555                'default'     => 'both',
     556            ),
    517557            'payment_action'                => array(
    518558                'title'   => __( 'Payment Method', 'wc-valorpay' ),
     
    580620                ),
    581621                'description' => __( 'The address verification service will add a text field to the checkout page based on the above option.', 'wc-valorpay' ),
     622            ),
     623            'enable_l2_l3'                  => array(
     624                'title'       => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ),
     625                'label'       => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ),
     626                'type'        => 'checkbox',
     627                'description' => __( 'Enable L2 & L3 processing for detailed data', 'wc-valorpay' ),
     628                'default'     => 'no',
    582629            ),
    583630            'disable_payment_on_failed'     => array(
  • valorpos/tags/7.7.0/languages/wc-valorpay.pot

    r3115531 r3142613  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Valor Pay 7.6.1\n"
     5"Project-Id-Version: Valor Pay 7.7.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/valorpos\n"
    77"Last-Translator: Valor Paytech LLC <isvsupport@valorpaytech.com>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-07-01T18:35:32+05:30\n"
    13 "PO-Revision-Date: 2024-07-01T18:35:32+05:30\n"
     12"POT-Creation-Date: 2024-08-09T17:17:36+05:30\n"
     13"PO-Revision-Date: 2024-08-09T17:17:36+05:30\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
    1515"X-Domain: wc-valorpay\n"
    1616
    1717#. Plugin Name of the plugin
    18 #: includes/class-wc-valorpay-gateway.php:489
     18#: includes/class-wc-valorpay-gateway.php:516
    1919msgid "Valor Pay"
    2020msgstr ""
     
    7070
    7171#: admin/partials/wc-valorpay-admin-failure-tracker.php:18
    72 #: includes/class-wc-valorpay-gateway.php:584
     72#: includes/class-wc-valorpay-gateway.php:631
    7373msgid "Payment Failed Tracker"
    7474msgstr ""
     
    138138#: includes/class-wc-valorpay-api.php:247
    139139#: includes/class-wc-valorpay-api.php:254
    140 #: includes/class-wc-valorpay-api.php:561
    141140#: includes/class-wc-valorpay-api.php:571
    142 #: includes/class-wc-valorpay-api.php:599
    143 #: includes/class-wc-valorpay-api.php:605
     141#: includes/class-wc-valorpay-api.php:581
     142#: includes/class-wc-valorpay-api.php:609
     143#: includes/class-wc-valorpay-api.php:615
    144144msgid "Sorry, we're unable to create a card token right now."
    145145msgstr ""
     
    150150msgstr ""
    151151
    152 #: includes/class-wc-valorpay-api.php:495
    153 #: includes/class-wc-valorpay-api.php:500
    154 #: includes/class-wc-valorpay-api.php:508
    155 #: includes/class-wc-valorpay-api.php:512
     152#: includes/class-wc-valorpay-api.php:505
     153#: includes/class-wc-valorpay-api.php:510
     154#: includes/class-wc-valorpay-api.php:518
     155#: includes/class-wc-valorpay-api.php:522
    156156msgid "There was a problem connecting to the payment gateway."
    157157msgstr ""
     
    195195msgstr ""
    196196
    197 #: includes/class-wc-valorpay-gateway.php:150
     197#: includes/class-wc-valorpay-gateway.php:164
    198198msgid "ValorPay Plugin"
    199199msgstr ""
    200200
    201 #: includes/class-wc-valorpay-gateway.php:151
     201#: includes/class-wc-valorpay-gateway.php:165
    202202msgid "Take payments via Valorpay."
    203203msgstr ""
    204204
    205 #: includes/class-wc-valorpay-gateway.php:191
     205#: includes/class-wc-valorpay-gateway.php:207
    206206msgid "TEST MODE ENABLED. Use test card number 4111111111111111 with 999 as CVC and a future expiration date."
    207207msgstr ""
    208208
    209 #: includes/class-wc-valorpay-gateway.php:215
     209#: includes/class-wc-valorpay-gateway.php:231
    210210msgid "Unsupported currency:"
    211211msgstr ""
    212212
    213 #: includes/class-wc-valorpay-gateway.php:218
     213#: includes/class-wc-valorpay-gateway.php:234
    214214msgid "Valor Pay accepts only USD."
    215215msgstr ""
    216216
    217217#. translators: %s: Settings URL.
    218 #: includes/class-wc-valorpay-gateway.php:230
     218#: includes/class-wc-valorpay-gateway.php:246
    219219msgid "Valor Pay error: The APP ID is required.  %s"
    220220msgstr ""
    221221
    222 #: includes/class-wc-valorpay-gateway.php:231
    223 #: includes/class-wc-valorpay-gateway.php:242
    224 #: includes/class-wc-valorpay-gateway.php:251
     222#: includes/class-wc-valorpay-gateway.php:247
     223#: includes/class-wc-valorpay-gateway.php:258
     224#: includes/class-wc-valorpay-gateway.php:267
    225225msgid "Click here to update your Valor Pay settings."
    226226msgstr ""
    227227
    228228#. translators: %s: Settings URL.
    229 #: includes/class-wc-valorpay-gateway.php:241
     229#: includes/class-wc-valorpay-gateway.php:257
    230230msgid "Valor Pay error: The APP KEY is required.  %s"
    231231msgstr ""
    232232
    233233#. translators: %s: Settings URL.
    234 #: includes/class-wc-valorpay-gateway.php:250
     234#: includes/class-wc-valorpay-gateway.php:266
    235235msgid "Valor Pay error: The EPI is required.  %s"
    236236msgstr ""
    237237
    238 #: includes/class-wc-valorpay-gateway.php:344
     238#: includes/class-wc-valorpay-gateway.php:296
     239msgid "Only debit cards are allowed"
     240msgstr ""
     241
     242#: includes/class-wc-valorpay-gateway.php:298
     243msgid "Only credit cards are allowed"
     244msgstr ""
     245
     246#: includes/class-wc-valorpay-gateway.php:364
     247msgid "Only debit cards are allowed."
     248msgstr ""
     249
     250#: includes/class-wc-valorpay-gateway.php:366
     251msgid "Only credit cards are allowed."
     252msgstr ""
     253
     254#: includes/class-wc-valorpay-gateway.php:371
    239255msgid "Zip Code is required."
    240256msgstr ""
    241257
    242 #: includes/class-wc-valorpay-gateway.php:347
     258#: includes/class-wc-valorpay-gateway.php:374
    243259msgid "Enter a valid Zip Code."
    244260msgstr ""
    245261
    246 #: includes/class-wc-valorpay-gateway.php:352
     262#: includes/class-wc-valorpay-gateway.php:379
    247263msgid "Street Address is required."
    248264msgstr ""
    249265
    250 #: includes/class-wc-valorpay-gateway.php:355
     266#: includes/class-wc-valorpay-gateway.php:382
    251267msgid "Enter a valid Street Address."
    252268msgstr ""
    253269
    254 #: includes/class-wc-valorpay-gateway.php:366
     270#: includes/class-wc-valorpay-gateway.php:393
    255271msgid "Card number is invalid"
    256272msgstr ""
    257273
    258 #: includes/class-wc-valorpay-gateway.php:370
     274#: includes/class-wc-valorpay-gateway.php:397
    259275msgid "Not a valid card"
    260276msgstr ""
    261277
    262 #: includes/class-wc-valorpay-gateway.php:373
     278#: includes/class-wc-valorpay-gateway.php:400
    263279msgid "Card number  expired"
    264280msgstr ""
    265281
    266 #: includes/class-wc-valorpay-gateway.php:376
     282#: includes/class-wc-valorpay-gateway.php:403
    267283msgid "Card security code is invalid (only digits are allowed)"
    268284msgstr ""
    269285
    270286#. translators: 1: Terms and Conditions URL.
    271 #: includes/class-wc-valorpay-gateway.php:412
     287#: includes/class-wc-valorpay-gateway.php:439
    272288msgid "I agree to the <a href=\"%s\" target=\"_blank\">Terms and Conditions</a>"
    273289msgstr ""
    274290
    275 #: includes/class-wc-valorpay-gateway.php:443
    276 #: includes/class-wc-valorpay-gateway.php:444
     291#: includes/class-wc-valorpay-gateway.php:470
     292#: includes/class-wc-valorpay-gateway.php:471
    277293msgid "Zip Code"
    278294msgstr ""
    279295
    280 #: includes/class-wc-valorpay-gateway.php:457
    281 #: includes/class-wc-valorpay-gateway.php:458
     296#: includes/class-wc-valorpay-gateway.php:484
     297#: includes/class-wc-valorpay-gateway.php:485
    282298msgid "Street Address"
    283299msgstr ""
    284300
    285 #: includes/class-wc-valorpay-gateway.php:479
     301#: includes/class-wc-valorpay-gateway.php:506
    286302msgid "Enable/Disable"
    287303msgstr ""
    288304
    289 #: includes/class-wc-valorpay-gateway.php:480
     305#: includes/class-wc-valorpay-gateway.php:507
    290306msgid "Enable Valor Pay"
    291307msgstr ""
    292308
    293 #: includes/class-wc-valorpay-gateway.php:486
     309#: includes/class-wc-valorpay-gateway.php:513
    294310msgid "Title"
    295311msgstr ""
    296312
    297 #: includes/class-wc-valorpay-gateway.php:488
     313#: includes/class-wc-valorpay-gateway.php:515
    298314msgid "This controls the title which the user sees during checkout."
    299315msgstr ""
    300316
    301 #: includes/class-wc-valorpay-gateway.php:493
     317#: includes/class-wc-valorpay-gateway.php:520
    302318msgid "Use Sandbox"
    303319msgstr ""
    304320
    305 #: includes/class-wc-valorpay-gateway.php:494
     321#: includes/class-wc-valorpay-gateway.php:521
    306322msgid "Enable sandbox mode - live payments will not be taken if enabled."
    307323msgstr ""
    308324
    309 #: includes/class-wc-valorpay-gateway.php:500
     325#: includes/class-wc-valorpay-gateway.php:527
    310326msgid "APP ID"
    311327msgstr ""
    312328
    313 #: includes/class-wc-valorpay-gateway.php:502
     329#: includes/class-wc-valorpay-gateway.php:529
    314330msgid "Please email isvsupport@valorpaytech.com to get to know about your APP ID, ( In demo mode APP ID is not needed )"
    315331msgstr ""
    316332
    317 #: includes/class-wc-valorpay-gateway.php:506
     333#: includes/class-wc-valorpay-gateway.php:533
    318334msgid "APP KEY"
    319335msgstr ""
    320336
    321 #: includes/class-wc-valorpay-gateway.php:508
     337#: includes/class-wc-valorpay-gateway.php:535
    322338msgid "Please email isvsupport@valorpaytech.com to get to know about your APP KEY, ( In demo mode APP KEY is not needed )"
    323339msgstr ""
    324340
    325 #: includes/class-wc-valorpay-gateway.php:512
     341#: includes/class-wc-valorpay-gateway.php:539
    326342msgid "EPI"
    327343msgstr ""
    328344
    329 #: includes/class-wc-valorpay-gateway.php:514
     345#: includes/class-wc-valorpay-gateway.php:541
    330346msgid "Please email isvsupport@valorpaytech.com to get to know about your EPI ID, ( In demo mode EPI ID is not needed )"
    331347msgstr ""
    332348
    333 #: includes/class-wc-valorpay-gateway.php:518
     349#: includes/class-wc-valorpay-gateway.php:545
     350msgid "Allowed Card Type"
     351msgstr ""
     352
     353#: includes/class-wc-valorpay-gateway.php:548
     354msgid "Select the allowed card type for transactions"
     355msgstr ""
     356
     357#: includes/class-wc-valorpay-gateway.php:551
     358msgid "Both"
     359msgstr ""
     360
     361#: includes/class-wc-valorpay-gateway.php:552
     362msgid "Credit"
     363msgstr ""
     364
     365#: includes/class-wc-valorpay-gateway.php:553
     366msgid "Debit"
     367msgstr ""
     368
     369#: includes/class-wc-valorpay-gateway.php:558
    334370msgid "Payment Method"
    335371msgstr ""
    336372
    337 #: includes/class-wc-valorpay-gateway.php:528
     373#: includes/class-wc-valorpay-gateway.php:568
    338374msgid "Surcharge Mode"
    339375msgstr ""
    340376
    341 #: includes/class-wc-valorpay-gateway.php:529
    342 #: includes/class-wc-valorpay-gateway.php:536
     377#: includes/class-wc-valorpay-gateway.php:569
     378#: includes/class-wc-valorpay-gateway.php:576
    343379msgid "Enable Surcharge Mode"
    344380msgstr ""
    345381
    346 #: includes/class-wc-valorpay-gateway.php:531
     382#: includes/class-wc-valorpay-gateway.php:571
    347383msgid "Enable only if you want all transactions to be fall on surcharge mode, Merchant must have got an Surcharge MID inorder to work"
    348384msgstr ""
    349385
    350 #: includes/class-wc-valorpay-gateway.php:535
     386#: includes/class-wc-valorpay-gateway.php:575
    351387msgid "Surcharge Type"
    352388msgstr ""
    353389
    354 #: includes/class-wc-valorpay-gateway.php:545
    355 #: includes/class-wc-valorpay-gateway.php:546
     390#: includes/class-wc-valorpay-gateway.php:585
     391#: includes/class-wc-valorpay-gateway.php:586
    356392msgid "Surcharge Label"
    357393msgstr ""
    358394
    359 #: includes/class-wc-valorpay-gateway.php:551
     395#: includes/class-wc-valorpay-gateway.php:591
    360396msgid "Surcharge %"
    361397msgstr ""
    362398
    363 #: includes/class-wc-valorpay-gateway.php:555
     399#: includes/class-wc-valorpay-gateway.php:595
    364400msgid "Percentage will apply only on enabling on surcharge Indicator to true and Surcharge type is set fo Surcharge %"
    365401msgstr ""
    366402
    367 #: includes/class-wc-valorpay-gateway.php:558
     403#: includes/class-wc-valorpay-gateway.php:598
    368404msgid "Flat Rate $"
    369405msgstr ""
    370406
    371 #: includes/class-wc-valorpay-gateway.php:561
     407#: includes/class-wc-valorpay-gateway.php:601
    372408msgid "Flat rate  will apply only on if Enable surcharge mode is true and Surcharge type is set to Flat Rate $"
    373409msgstr ""
    374410
    375 #: includes/class-wc-valorpay-gateway.php:564
     411#: includes/class-wc-valorpay-gateway.php:604
    376412msgid "Surcharge For Debit"
    377413msgstr ""
    378414
    379 #: includes/class-wc-valorpay-gateway.php:565
     415#: includes/class-wc-valorpay-gateway.php:605
    380416msgid "Enable Surcharge For Debit"
    381417msgstr ""
    382418
    383 #: includes/class-wc-valorpay-gateway.php:567
     419#: includes/class-wc-valorpay-gateway.php:607
    384420msgid "Enable surcharge for debit"
    385421msgstr ""
    386422
    387 #: includes/class-wc-valorpay-gateway.php:571
     423#: includes/class-wc-valorpay-gateway.php:611
    388424msgid "AVS"
    389425msgstr ""
    390426
    391 #: includes/class-wc-valorpay-gateway.php:581
     427#: includes/class-wc-valorpay-gateway.php:621
    392428msgid "The address verification service will add a text field to the checkout page based on the above option."
    393429msgstr ""
    394430
    395 #: includes/class-wc-valorpay-gateway.php:585
     431#: includes/class-wc-valorpay-gateway.php:624
     432#: includes/class-wc-valorpay-gateway.php:625
     433msgid "Enable L2 & L3 Processing"
     434msgstr ""
     435
     436#: includes/class-wc-valorpay-gateway.php:627
     437msgid "Enable L2 & L3 processing for detailed data"
     438msgstr ""
     439
     440#: includes/class-wc-valorpay-gateway.php:632
    396441msgid "Enable Protection"
    397442msgstr ""
    398443
    399444#. translators: 1: Tracker URL.
    400 #: includes/class-wc-valorpay-gateway.php:589
     445#: includes/class-wc-valorpay-gateway.php:636
    401446msgid "Disable the payment method in the checkout page for failed transactions. <a id=\"valorpay-goto-tracker\" href=\"%s\">Unblock IP</a>"
    402447msgstr ""
    403448
    404 #: includes/class-wc-valorpay-gateway.php:595
     449#: includes/class-wc-valorpay-gateway.php:642
    405450msgid "Declined Transaction Count"
    406451msgstr ""
    407452
    408 #: includes/class-wc-valorpay-gateway.php:596
     453#: includes/class-wc-valorpay-gateway.php:643
    409454msgid "Number of declined transaction count."
    410455msgstr ""
    411456
    412 #: includes/class-wc-valorpay-gateway.php:600
     457#: includes/class-wc-valorpay-gateway.php:647
    413458msgid "3"
    414459msgstr ""
    415460
    416 #: includes/class-wc-valorpay-gateway.php:601
     461#: includes/class-wc-valorpay-gateway.php:648
    417462msgid "5"
    418463msgstr ""
    419464
    420 #: includes/class-wc-valorpay-gateway.php:602
     465#: includes/class-wc-valorpay-gateway.php:649
    421466msgid "6"
    422467msgstr ""
    423468
    424 #: includes/class-wc-valorpay-gateway.php:606
     469#: includes/class-wc-valorpay-gateway.php:653
    425470msgid "Block Payment For"
    426471msgstr ""
    427472
    428 #: includes/class-wc-valorpay-gateway.php:607
     473#: includes/class-wc-valorpay-gateway.php:654
    429474msgid "Minutes to block payment gateway in checkout."
    430475msgstr ""
    431476
    432 #: includes/class-wc-valorpay-gateway.php:611
     477#: includes/class-wc-valorpay-gateway.php:658
    433478msgid "1 min"
    434479msgstr ""
    435480
    436 #: includes/class-wc-valorpay-gateway.php:612
     481#: includes/class-wc-valorpay-gateway.php:659
    437482msgid "5 min"
    438483msgstr ""
    439484
    440 #: includes/class-wc-valorpay-gateway.php:613
     485#: includes/class-wc-valorpay-gateway.php:660
    441486msgid "10 min"
    442487msgstr ""
    443488
    444 #: includes/class-wc-valorpay-gateway.php:614
     489#: includes/class-wc-valorpay-gateway.php:661
    445490msgid "1 hour"
    446491msgstr ""
    447492
    448 #: includes/class-wc-valorpay-gateway.php:615
     493#: includes/class-wc-valorpay-gateway.php:662
    449494msgid "3 hour"
    450495msgstr ""
    451496
    452 #: includes/class-wc-valorpay-gateway.php:616
     497#: includes/class-wc-valorpay-gateway.php:663
    453498msgid "5 hour"
    454499msgstr ""
    455500
    456 #: includes/class-wc-valorpay-gateway.php:617
     501#: includes/class-wc-valorpay-gateway.php:664
    457502msgid "10 hour"
    458503msgstr ""
    459504
    460 #: includes/class-wc-valorpay-gateway.php:618
     505#: includes/class-wc-valorpay-gateway.php:665
    461506msgid "1 day"
    462507msgstr ""
    463508
    464 #: includes/class-wc-valorpay-gateway.php:622
     509#: includes/class-wc-valorpay-gateway.php:669
    465510msgid "Accepted Cards"
    466511msgstr ""
    467512
    468 #: includes/class-wc-valorpay-gateway.php:626
     513#: includes/class-wc-valorpay-gateway.php:673
    469514msgid "Select the card types to accept."
    470515msgstr ""
    471516
    472517#. translators: 1: Maximum percentage.
    473 #: includes/class-wc-valorpay-gateway.php:651
     518#: includes/class-wc-valorpay-gateway.php:698
    474519msgid "Surcharge percentage cannot be more than %s"
    475520msgstr ""
    476521
    477522#. translators: 1: Maximum flat rate.
    478 #: includes/class-wc-valorpay-gateway.php:656
     523#: includes/class-wc-valorpay-gateway.php:703
    479524msgid "Surcharge flat rate cannot be more than %s"
    480525msgstr ""
    481526
    482 #: includes/class-wc-valorpay-gateway.php:701
     527#: includes/class-wc-valorpay-gateway.php:748
    483528msgid "Invalid card information."
    484529msgstr ""
    485530
    486 #: includes/class-wc-valorpay-gateway.php:734
     531#: includes/class-wc-valorpay-gateway.php:781
    487532msgid "Valor Pay: Card token added to subscription."
    488533msgstr ""
    489534
    490535#. translators: 1: Error Message, 2: Amount, 3: Line Break, 4: Approval Code, 5: Line Break, 6: RRN Number.
    491 #: includes/class-wc-valorpay-gateway.php:751
     536#: includes/class-wc-valorpay-gateway.php:798
    492537msgid "Valor Pay %1$s for %2$s.%3$s <strong>Approval Code:</strong> %4$s.%5$s <strong>RRN:</strong> %6$s"
    493538msgstr ""
    494539
    495540#. translators: %s: API Error Message.
    496 #: includes/class-wc-valorpay-gateway.php:792
    497 #: includes/class-wc-valorpay-gateway.php:795
     541#: includes/class-wc-valorpay-gateway.php:839
     542#: includes/class-wc-valorpay-gateway.php:842
    498543msgid "Payment error: %s"
    499544msgstr ""
    500545
    501 #: includes/class-wc-valorpay-gateway.php:797
     546#: includes/class-wc-valorpay-gateway.php:844
    502547msgid "Unable to process the transaction using Valor Pay, please try again."
    503548msgstr ""
    504549
    505550#. translators: 1: Disable Time, 2: Unblock IP URL, 3: Customer IP.
    506 #: includes/class-wc-valorpay-gateway.php:888
     551#: includes/class-wc-valorpay-gateway.php:935
    507552msgid "Valor Pay method is disabled for %1$s. <a target=\"_blank\" href=\"%2$s\">To Unblock IP</a> %3$s"
    508553msgstr ""
    509554
    510 #: includes/class-wc-valorpay-gateway.php:951
     555#: includes/class-wc-valorpay-gateway.php:998
    511556msgid "Refund failed."
    512557msgstr ""
    513558
    514559#. translators: 1: Amount, 2: Line Break, 3: Approval code, 4: Line Break, 5: RRN Code
    515 #: includes/class-wc-valorpay-gateway.php:963
     560#: includes/class-wc-valorpay-gateway.php:1010
    516561msgid "Valor Pay Refund for %1$s.%2$s <strong>Approval Code:</strong> %3$s.%4$s <strong>RRN:</strong> %5$s"
    517562msgstr ""
  • valorpos/tags/7.7.0/wc-valorpay.php

    r3115531 r3142613  
    1616 * Plugin URI:        https://valorpaytech.com
    1717 * Description:       Adds the Valor Payment Gateway to WooCommerce.
    18  * Version:           7.6.1
     18 * Version:           7.7.0
    1919 * Author:            Valor Paytech LLC
    2020 * Author URI:        https://valorpaytech.com
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define( 'WC_VALORPAY_VERSION', '7.6.1' );
     39define( 'WC_VALORPAY_VERSION', '7.7.0' );
    4040// Directory i.e. /home/user/public_html...
    4141define( 'WC_VALORPAY_DIR', plugin_dir_path( __FILE__ ) );
  • valorpos/trunk/README.txt

    r3123258 r3142613  
    33Tags: payment, payment gateway, credit card, valor pay, valor paytech
    44Requires at least: 5.0
    5 Tested up to: 6.6
     5Tested up to: 6.3.1
    66Requires PHP: 7.0
    7 Stable tag: 7.6.1
     7Stable tag: 7.7.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4242
    4343== Changelog ==
     44= 7.7.0 =
     45* Added card type configuration option at the admin level to allow selection of card types: debit cards, credit cards, or both.
     46* Added L2 and L3 support, Level 3 (L3) benefits applicable only for Visa and Mastercard commercial cards
     47
    4448= 7.6.1 =
    4549* Added a new hook update the order description and invoice number in the sale payload, introduced token card functionality, updated the "Street No" label in the AVS section and revised the support email.
  • valorpos/trunk/includes/class-wc-valorpay-api.php

    r3115531 r3142613  
    370370                }
    371371            }
     372            if ( 'yes' === $this->gateway->enable_l2_l3 ) {
     373                $l2_l3_data = $this->get_order_details( $order );
     374                if ( count( $l2_l3_data ) > 0 ) {
     375                    $data['order_details'] = $l2_l3_data;
     376                }
     377                // For l2 and l3 invoice number required, if not set then set order id as invoice number.
     378                if ( ! isset( $data['invoicenumber'] ) || ! $data['invoicenumber'] ) {
     379                    $data['invoicenumber'] = $order->get_id();
     380                }
     381            }
    372382        } elseif ( 'refund' === $transaction_type ) {
    373383            $valorpay_order_meta = $order->get_meta( '_valorpay_transaction' );
     
    612622        );
    613623    }
     624
     625    /**
     626     * Get order detail payload
     627     *
     628     * @since 7.7.0
     629     *
     630     * @param WC_Order $order Order Detail.
     631     * @return array response
     632     */
     633    public function get_order_details( $order ) {
     634        $order_details = array();
     635        if ( count( $order->get_items() ) > 0 ) {
     636            $product_line_items = array();
     637            foreach ( $order->get_items() as $item_id => $item ) {
     638                $product_name         = substr( $item->get_name(), 0, 50 );
     639                $product_id           = $item->get_product_id();
     640                $product              = $item->get_product();
     641                $sku                  = substr( $product->get_sku(), 0, 15 );
     642                $quantity_ordered     = $item->get_quantity();
     643                $tax                  = $item->get_subtotal_tax();
     644                $unit_cost            = $item->get_subtotal();
     645                $product_line_items[] = array(
     646                    'name'      => $product_name,
     647                    'code'      => $sku ? $sku : $product_id,
     648                    'qty'       => $quantity_ordered,
     649                    'unit_cost' => (float) $unit_cost,
     650                    'tax'       => (float) $tax,
     651                );
     652            }
     653            $order_details['product_line_items'] = $product_line_items;
     654        }
     655        if ( count( $order->get_coupons() ) > 0 ) {
     656            $discounts = array();
     657            foreach ( $order->get_coupons() as $coupon_code ) {
     658                // Add to discounts array.
     659                $discounts[] = array(
     660                    'name' => substr( $coupon_code->get_name(), 0, 50 ),
     661                    'cost' => (float) $coupon_code->get_discount(),
     662                );
     663            }
     664            $order_details['discounts'] = $discounts;
     665        }
     666        return $order_details;
     667    }
    614668}
  • valorpos/trunk/includes/class-wc-valorpay-gateway.php

    r3115531 r3142613  
    139139     */
    140140    public $disable_payment_decline_time;
     141
     142    /**
     143     * Valor Pay card type allowed.
     144     *
     145     * @var string
     146     */
     147    public $card_type_allowed;
     148
     149    /**
     150     * Valor Pay enable L2 & L3.
     151     *
     152     * @var string
     153     */
     154    public $enable_l2_l3;
    141155
    142156    /**
     
    186200        $this->disable_payment_decline_count = $this->get_option( 'disable_payment_decline_count' );
    187201        $this->disable_payment_decline_time  = $this->get_option( 'disable_payment_decline_time' );
     202        $this->card_type_allowed             = $this->get_option( 'card_type_allowed' );
     203        $this->enable_l2_l3                  = $this->get_option( 'enable_l2_l3' );
    188204
    189205        // Add test mode warning if sandbox.
     
    277293            echo wp_kses_post( apply_filters( 'wc_valorpay_description', wpautop( wptexturize( $this->description ) ) ) );
    278294        }
     295        if ( 'debit' === $this->card_type_allowed ) {
     296            echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only debit cards are allowed', 'wc-valorpay' ) . '</div>';
     297        } elseif ( 'credit' === $this->card_type_allowed ) {
     298            echo '<div class="woocommerce-info" style="margin-bottom:unset;">' . esc_html__( 'Only credit cards are allowed', 'wc-valorpay' ) . '</div>';
     299        }
    279300        parent::payment_fields();
    280301        if ( ! is_add_payment_method_page() ) {
     
    339360    public function validate_fields() {
    340361        try {
     362            $is_debit_card = 'D' === WC()->session->get( 'valor_card_type' );
     363            if ( 'debit' === $this->card_type_allowed && ! $is_debit_card ) {
     364                throw new Exception( __( 'Only debit cards are allowed.', 'wc-valorpay' ) );
     365            } elseif ( 'credit' === $this->card_type_allowed && $is_debit_card ) {
     366                throw new Exception( __( 'Only credit cards are allowed.', 'wc-valorpay' ) );
     367            }
    341368            $valorpay_avs_type = ( isset( $_POST['valorpay_avs_type'] ) ) ? sanitize_text_field( wp_unslash( $_POST['valorpay_avs_type'] ) ) : ''; // phpcs:ignore
    342369            if ( 'zip' === $valorpay_avs_type || 'zipandaddress' === $valorpay_avs_type ) {
     
    515542                'default'     => '',
    516543            ),
     544            'card_type_allowed'             => array(
     545                'title'       => __( 'Allowed Card Type', 'wc-valorpay' ),
     546                'type'        => 'select',
     547                'class'       => 'chosen_select',
     548                'description' => __( 'Select the allowed card type for transactions', 'wc-valorpay' ),
     549                'css'         => 'width: 100px;',
     550                'options'     => array(
     551                    'both'   => __( 'Both', 'wc-valorpay' ),
     552                    'credit' => __( 'Credit', 'wc-valorpay' ),
     553                    'debit'  => __( 'Debit', 'wc-valorpay' ),
     554                ),
     555                'default'     => 'both',
     556            ),
    517557            'payment_action'                => array(
    518558                'title'   => __( 'Payment Method', 'wc-valorpay' ),
     
    580620                ),
    581621                'description' => __( 'The address verification service will add a text field to the checkout page based on the above option.', 'wc-valorpay' ),
     622            ),
     623            'enable_l2_l3'                  => array(
     624                'title'       => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ),
     625                'label'       => __( 'Enable L2 & L3 Processing', 'wc-valorpay' ),
     626                'type'        => 'checkbox',
     627                'description' => __( 'Enable L2 & L3 processing for detailed data', 'wc-valorpay' ),
     628                'default'     => 'no',
    582629            ),
    583630            'disable_payment_on_failed'     => array(
  • valorpos/trunk/languages/wc-valorpay.pot

    r3115531 r3142613  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Valor Pay 7.6.1\n"
     5"Project-Id-Version: Valor Pay 7.7.0\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/valorpos\n"
    77"Last-Translator: Valor Paytech LLC <isvsupport@valorpaytech.com>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-07-01T18:35:32+05:30\n"
    13 "PO-Revision-Date: 2024-07-01T18:35:32+05:30\n"
     12"POT-Creation-Date: 2024-08-09T17:17:36+05:30\n"
     13"PO-Revision-Date: 2024-08-09T17:17:36+05:30\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
    1515"X-Domain: wc-valorpay\n"
    1616
    1717#. Plugin Name of the plugin
    18 #: includes/class-wc-valorpay-gateway.php:489
     18#: includes/class-wc-valorpay-gateway.php:516
    1919msgid "Valor Pay"
    2020msgstr ""
     
    7070
    7171#: admin/partials/wc-valorpay-admin-failure-tracker.php:18
    72 #: includes/class-wc-valorpay-gateway.php:584
     72#: includes/class-wc-valorpay-gateway.php:631
    7373msgid "Payment Failed Tracker"
    7474msgstr ""
     
    138138#: includes/class-wc-valorpay-api.php:247
    139139#: includes/class-wc-valorpay-api.php:254
    140 #: includes/class-wc-valorpay-api.php:561
    141140#: includes/class-wc-valorpay-api.php:571
    142 #: includes/class-wc-valorpay-api.php:599
    143 #: includes/class-wc-valorpay-api.php:605
     141#: includes/class-wc-valorpay-api.php:581
     142#: includes/class-wc-valorpay-api.php:609
     143#: includes/class-wc-valorpay-api.php:615
    144144msgid "Sorry, we're unable to create a card token right now."
    145145msgstr ""
     
    150150msgstr ""
    151151
    152 #: includes/class-wc-valorpay-api.php:495
    153 #: includes/class-wc-valorpay-api.php:500
    154 #: includes/class-wc-valorpay-api.php:508
    155 #: includes/class-wc-valorpay-api.php:512
     152#: includes/class-wc-valorpay-api.php:505
     153#: includes/class-wc-valorpay-api.php:510
     154#: includes/class-wc-valorpay-api.php:518
     155#: includes/class-wc-valorpay-api.php:522
    156156msgid "There was a problem connecting to the payment gateway."
    157157msgstr ""
     
    195195msgstr ""
    196196
    197 #: includes/class-wc-valorpay-gateway.php:150
     197#: includes/class-wc-valorpay-gateway.php:164
    198198msgid "ValorPay Plugin"
    199199msgstr ""
    200200
    201 #: includes/class-wc-valorpay-gateway.php:151
     201#: includes/class-wc-valorpay-gateway.php:165
    202202msgid "Take payments via Valorpay."
    203203msgstr ""
    204204
    205 #: includes/class-wc-valorpay-gateway.php:191
     205#: includes/class-wc-valorpay-gateway.php:207
    206206msgid "TEST MODE ENABLED. Use test card number 4111111111111111 with 999 as CVC and a future expiration date."
    207207msgstr ""
    208208
    209 #: includes/class-wc-valorpay-gateway.php:215
     209#: includes/class-wc-valorpay-gateway.php:231
    210210msgid "Unsupported currency:"
    211211msgstr ""
    212212
    213 #: includes/class-wc-valorpay-gateway.php:218
     213#: includes/class-wc-valorpay-gateway.php:234
    214214msgid "Valor Pay accepts only USD."
    215215msgstr ""
    216216
    217217#. translators: %s: Settings URL.
    218 #: includes/class-wc-valorpay-gateway.php:230
     218#: includes/class-wc-valorpay-gateway.php:246
    219219msgid "Valor Pay error: The APP ID is required.  %s"
    220220msgstr ""
    221221
    222 #: includes/class-wc-valorpay-gateway.php:231
    223 #: includes/class-wc-valorpay-gateway.php:242
    224 #: includes/class-wc-valorpay-gateway.php:251
     222#: includes/class-wc-valorpay-gateway.php:247
     223#: includes/class-wc-valorpay-gateway.php:258
     224#: includes/class-wc-valorpay-gateway.php:267
    225225msgid "Click here to update your Valor Pay settings."
    226226msgstr ""
    227227
    228228#. translators: %s: Settings URL.
    229 #: includes/class-wc-valorpay-gateway.php:241
     229#: includes/class-wc-valorpay-gateway.php:257
    230230msgid "Valor Pay error: The APP KEY is required.  %s"
    231231msgstr ""
    232232
    233233#. translators: %s: Settings URL.
    234 #: includes/class-wc-valorpay-gateway.php:250
     234#: includes/class-wc-valorpay-gateway.php:266
    235235msgid "Valor Pay error: The EPI is required.  %s"
    236236msgstr ""
    237237
    238 #: includes/class-wc-valorpay-gateway.php:344
     238#: includes/class-wc-valorpay-gateway.php:296
     239msgid "Only debit cards are allowed"
     240msgstr ""
     241
     242#: includes/class-wc-valorpay-gateway.php:298
     243msgid "Only credit cards are allowed"
     244msgstr ""
     245
     246#: includes/class-wc-valorpay-gateway.php:364
     247msgid "Only debit cards are allowed."
     248msgstr ""
     249
     250#: includes/class-wc-valorpay-gateway.php:366
     251msgid "Only credit cards are allowed."
     252msgstr ""
     253
     254#: includes/class-wc-valorpay-gateway.php:371
    239255msgid "Zip Code is required."
    240256msgstr ""
    241257
    242 #: includes/class-wc-valorpay-gateway.php:347
     258#: includes/class-wc-valorpay-gateway.php:374
    243259msgid "Enter a valid Zip Code."
    244260msgstr ""
    245261
    246 #: includes/class-wc-valorpay-gateway.php:352
     262#: includes/class-wc-valorpay-gateway.php:379
    247263msgid "Street Address is required."
    248264msgstr ""
    249265
    250 #: includes/class-wc-valorpay-gateway.php:355
     266#: includes/class-wc-valorpay-gateway.php:382
    251267msgid "Enter a valid Street Address."
    252268msgstr ""
    253269
    254 #: includes/class-wc-valorpay-gateway.php:366
     270#: includes/class-wc-valorpay-gateway.php:393
    255271msgid "Card number is invalid"
    256272msgstr ""
    257273
    258 #: includes/class-wc-valorpay-gateway.php:370
     274#: includes/class-wc-valorpay-gateway.php:397
    259275msgid "Not a valid card"
    260276msgstr ""
    261277
    262 #: includes/class-wc-valorpay-gateway.php:373
     278#: includes/class-wc-valorpay-gateway.php:400
    263279msgid "Card number  expired"
    264280msgstr ""
    265281
    266 #: includes/class-wc-valorpay-gateway.php:376
     282#: includes/class-wc-valorpay-gateway.php:403
    267283msgid "Card security code is invalid (only digits are allowed)"
    268284msgstr ""
    269285
    270286#. translators: 1: Terms and Conditions URL.
    271 #: includes/class-wc-valorpay-gateway.php:412
     287#: includes/class-wc-valorpay-gateway.php:439
    272288msgid "I agree to the <a href=\"%s\" target=\"_blank\">Terms and Conditions</a>"
    273289msgstr ""
    274290
    275 #: includes/class-wc-valorpay-gateway.php:443
    276 #: includes/class-wc-valorpay-gateway.php:444
     291#: includes/class-wc-valorpay-gateway.php:470
     292#: includes/class-wc-valorpay-gateway.php:471
    277293msgid "Zip Code"
    278294msgstr ""
    279295
    280 #: includes/class-wc-valorpay-gateway.php:457
    281 #: includes/class-wc-valorpay-gateway.php:458
     296#: includes/class-wc-valorpay-gateway.php:484
     297#: includes/class-wc-valorpay-gateway.php:485
    282298msgid "Street Address"
    283299msgstr ""
    284300
    285 #: includes/class-wc-valorpay-gateway.php:479
     301#: includes/class-wc-valorpay-gateway.php:506
    286302msgid "Enable/Disable"
    287303msgstr ""
    288304
    289 #: includes/class-wc-valorpay-gateway.php:480
     305#: includes/class-wc-valorpay-gateway.php:507
    290306msgid "Enable Valor Pay"
    291307msgstr ""
    292308
    293 #: includes/class-wc-valorpay-gateway.php:486
     309#: includes/class-wc-valorpay-gateway.php:513
    294310msgid "Title"
    295311msgstr ""
    296312
    297 #: includes/class-wc-valorpay-gateway.php:488
     313#: includes/class-wc-valorpay-gateway.php:515
    298314msgid "This controls the title which the user sees during checkout."
    299315msgstr ""
    300316
    301 #: includes/class-wc-valorpay-gateway.php:493
     317#: includes/class-wc-valorpay-gateway.php:520
    302318msgid "Use Sandbox"
    303319msgstr ""
    304320
    305 #: includes/class-wc-valorpay-gateway.php:494
     321#: includes/class-wc-valorpay-gateway.php:521
    306322msgid "Enable sandbox mode - live payments will not be taken if enabled."
    307323msgstr ""
    308324
    309 #: includes/class-wc-valorpay-gateway.php:500
     325#: includes/class-wc-valorpay-gateway.php:527
    310326msgid "APP ID"
    311327msgstr ""
    312328
    313 #: includes/class-wc-valorpay-gateway.php:502
     329#: includes/class-wc-valorpay-gateway.php:529
    314330msgid "Please email isvsupport@valorpaytech.com to get to know about your APP ID, ( In demo mode APP ID is not needed )"
    315331msgstr ""
    316332
    317 #: includes/class-wc-valorpay-gateway.php:506
     333#: includes/class-wc-valorpay-gateway.php:533
    318334msgid "APP KEY"
    319335msgstr ""
    320336
    321 #: includes/class-wc-valorpay-gateway.php:508
     337#: includes/class-wc-valorpay-gateway.php:535
    322338msgid "Please email isvsupport@valorpaytech.com to get to know about your APP KEY, ( In demo mode APP KEY is not needed )"
    323339msgstr ""
    324340
    325 #: includes/class-wc-valorpay-gateway.php:512
     341#: includes/class-wc-valorpay-gateway.php:539
    326342msgid "EPI"
    327343msgstr ""
    328344
    329 #: includes/class-wc-valorpay-gateway.php:514
     345#: includes/class-wc-valorpay-gateway.php:541
    330346msgid "Please email isvsupport@valorpaytech.com to get to know about your EPI ID, ( In demo mode EPI ID is not needed )"
    331347msgstr ""
    332348
    333 #: includes/class-wc-valorpay-gateway.php:518
     349#: includes/class-wc-valorpay-gateway.php:545
     350msgid "Allowed Card Type"
     351msgstr ""
     352
     353#: includes/class-wc-valorpay-gateway.php:548
     354msgid "Select the allowed card type for transactions"
     355msgstr ""
     356
     357#: includes/class-wc-valorpay-gateway.php:551
     358msgid "Both"
     359msgstr ""
     360
     361#: includes/class-wc-valorpay-gateway.php:552
     362msgid "Credit"
     363msgstr ""
     364
     365#: includes/class-wc-valorpay-gateway.php:553
     366msgid "Debit"
     367msgstr ""
     368
     369#: includes/class-wc-valorpay-gateway.php:558
    334370msgid "Payment Method"
    335371msgstr ""
    336372
    337 #: includes/class-wc-valorpay-gateway.php:528
     373#: includes/class-wc-valorpay-gateway.php:568
    338374msgid "Surcharge Mode"
    339375msgstr ""
    340376
    341 #: includes/class-wc-valorpay-gateway.php:529
    342 #: includes/class-wc-valorpay-gateway.php:536
     377#: includes/class-wc-valorpay-gateway.php:569
     378#: includes/class-wc-valorpay-gateway.php:576
    343379msgid "Enable Surcharge Mode"
    344380msgstr ""
    345381
    346 #: includes/class-wc-valorpay-gateway.php:531
     382#: includes/class-wc-valorpay-gateway.php:571
    347383msgid "Enable only if you want all transactions to be fall on surcharge mode, Merchant must have got an Surcharge MID inorder to work"
    348384msgstr ""
    349385
    350 #: includes/class-wc-valorpay-gateway.php:535
     386#: includes/class-wc-valorpay-gateway.php:575
    351387msgid "Surcharge Type"
    352388msgstr ""
    353389
    354 #: includes/class-wc-valorpay-gateway.php:545
    355 #: includes/class-wc-valorpay-gateway.php:546
     390#: includes/class-wc-valorpay-gateway.php:585
     391#: includes/class-wc-valorpay-gateway.php:586
    356392msgid "Surcharge Label"
    357393msgstr ""
    358394
    359 #: includes/class-wc-valorpay-gateway.php:551
     395#: includes/class-wc-valorpay-gateway.php:591
    360396msgid "Surcharge %"
    361397msgstr ""
    362398
    363 #: includes/class-wc-valorpay-gateway.php:555
     399#: includes/class-wc-valorpay-gateway.php:595
    364400msgid "Percentage will apply only on enabling on surcharge Indicator to true and Surcharge type is set fo Surcharge %"
    365401msgstr ""
    366402
    367 #: includes/class-wc-valorpay-gateway.php:558
     403#: includes/class-wc-valorpay-gateway.php:598
    368404msgid "Flat Rate $"
    369405msgstr ""
    370406
    371 #: includes/class-wc-valorpay-gateway.php:561
     407#: includes/class-wc-valorpay-gateway.php:601
    372408msgid "Flat rate  will apply only on if Enable surcharge mode is true and Surcharge type is set to Flat Rate $"
    373409msgstr ""
    374410
    375 #: includes/class-wc-valorpay-gateway.php:564
     411#: includes/class-wc-valorpay-gateway.php:604
    376412msgid "Surcharge For Debit"
    377413msgstr ""
    378414
    379 #: includes/class-wc-valorpay-gateway.php:565
     415#: includes/class-wc-valorpay-gateway.php:605
    380416msgid "Enable Surcharge For Debit"
    381417msgstr ""
    382418
    383 #: includes/class-wc-valorpay-gateway.php:567
     419#: includes/class-wc-valorpay-gateway.php:607
    384420msgid "Enable surcharge for debit"
    385421msgstr ""
    386422
    387 #: includes/class-wc-valorpay-gateway.php:571
     423#: includes/class-wc-valorpay-gateway.php:611
    388424msgid "AVS"
    389425msgstr ""
    390426
    391 #: includes/class-wc-valorpay-gateway.php:581
     427#: includes/class-wc-valorpay-gateway.php:621
    392428msgid "The address verification service will add a text field to the checkout page based on the above option."
    393429msgstr ""
    394430
    395 #: includes/class-wc-valorpay-gateway.php:585
     431#: includes/class-wc-valorpay-gateway.php:624
     432#: includes/class-wc-valorpay-gateway.php:625
     433msgid "Enable L2 & L3 Processing"
     434msgstr ""
     435
     436#: includes/class-wc-valorpay-gateway.php:627
     437msgid "Enable L2 & L3 processing for detailed data"
     438msgstr ""
     439
     440#: includes/class-wc-valorpay-gateway.php:632
    396441msgid "Enable Protection"
    397442msgstr ""
    398443
    399444#. translators: 1: Tracker URL.
    400 #: includes/class-wc-valorpay-gateway.php:589
     445#: includes/class-wc-valorpay-gateway.php:636
    401446msgid "Disable the payment method in the checkout page for failed transactions. <a id=\"valorpay-goto-tracker\" href=\"%s\">Unblock IP</a>"
    402447msgstr ""
    403448
    404 #: includes/class-wc-valorpay-gateway.php:595
     449#: includes/class-wc-valorpay-gateway.php:642
    405450msgid "Declined Transaction Count"
    406451msgstr ""
    407452
    408 #: includes/class-wc-valorpay-gateway.php:596
     453#: includes/class-wc-valorpay-gateway.php:643
    409454msgid "Number of declined transaction count."
    410455msgstr ""
    411456
    412 #: includes/class-wc-valorpay-gateway.php:600
     457#: includes/class-wc-valorpay-gateway.php:647
    413458msgid "3"
    414459msgstr ""
    415460
    416 #: includes/class-wc-valorpay-gateway.php:601
     461#: includes/class-wc-valorpay-gateway.php:648
    417462msgid "5"
    418463msgstr ""
    419464
    420 #: includes/class-wc-valorpay-gateway.php:602
     465#: includes/class-wc-valorpay-gateway.php:649
    421466msgid "6"
    422467msgstr ""
    423468
    424 #: includes/class-wc-valorpay-gateway.php:606
     469#: includes/class-wc-valorpay-gateway.php:653
    425470msgid "Block Payment For"
    426471msgstr ""
    427472
    428 #: includes/class-wc-valorpay-gateway.php:607
     473#: includes/class-wc-valorpay-gateway.php:654
    429474msgid "Minutes to block payment gateway in checkout."
    430475msgstr ""
    431476
    432 #: includes/class-wc-valorpay-gateway.php:611
     477#: includes/class-wc-valorpay-gateway.php:658
    433478msgid "1 min"
    434479msgstr ""
    435480
    436 #: includes/class-wc-valorpay-gateway.php:612
     481#: includes/class-wc-valorpay-gateway.php:659
    437482msgid "5 min"
    438483msgstr ""
    439484
    440 #: includes/class-wc-valorpay-gateway.php:613
     485#: includes/class-wc-valorpay-gateway.php:660
    441486msgid "10 min"
    442487msgstr ""
    443488
    444 #: includes/class-wc-valorpay-gateway.php:614
     489#: includes/class-wc-valorpay-gateway.php:661
    445490msgid "1 hour"
    446491msgstr ""
    447492
    448 #: includes/class-wc-valorpay-gateway.php:615
     493#: includes/class-wc-valorpay-gateway.php:662
    449494msgid "3 hour"
    450495msgstr ""
    451496
    452 #: includes/class-wc-valorpay-gateway.php:616
     497#: includes/class-wc-valorpay-gateway.php:663
    453498msgid "5 hour"
    454499msgstr ""
    455500
    456 #: includes/class-wc-valorpay-gateway.php:617
     501#: includes/class-wc-valorpay-gateway.php:664
    457502msgid "10 hour"
    458503msgstr ""
    459504
    460 #: includes/class-wc-valorpay-gateway.php:618
     505#: includes/class-wc-valorpay-gateway.php:665
    461506msgid "1 day"
    462507msgstr ""
    463508
    464 #: includes/class-wc-valorpay-gateway.php:622
     509#: includes/class-wc-valorpay-gateway.php:669
    465510msgid "Accepted Cards"
    466511msgstr ""
    467512
    468 #: includes/class-wc-valorpay-gateway.php:626
     513#: includes/class-wc-valorpay-gateway.php:673
    469514msgid "Select the card types to accept."
    470515msgstr ""
    471516
    472517#. translators: 1: Maximum percentage.
    473 #: includes/class-wc-valorpay-gateway.php:651
     518#: includes/class-wc-valorpay-gateway.php:698
    474519msgid "Surcharge percentage cannot be more than %s"
    475520msgstr ""
    476521
    477522#. translators: 1: Maximum flat rate.
    478 #: includes/class-wc-valorpay-gateway.php:656
     523#: includes/class-wc-valorpay-gateway.php:703
    479524msgid "Surcharge flat rate cannot be more than %s"
    480525msgstr ""
    481526
    482 #: includes/class-wc-valorpay-gateway.php:701
     527#: includes/class-wc-valorpay-gateway.php:748
    483528msgid "Invalid card information."
    484529msgstr ""
    485530
    486 #: includes/class-wc-valorpay-gateway.php:734
     531#: includes/class-wc-valorpay-gateway.php:781
    487532msgid "Valor Pay: Card token added to subscription."
    488533msgstr ""
    489534
    490535#. translators: 1: Error Message, 2: Amount, 3: Line Break, 4: Approval Code, 5: Line Break, 6: RRN Number.
    491 #: includes/class-wc-valorpay-gateway.php:751
     536#: includes/class-wc-valorpay-gateway.php:798
    492537msgid "Valor Pay %1$s for %2$s.%3$s <strong>Approval Code:</strong> %4$s.%5$s <strong>RRN:</strong> %6$s"
    493538msgstr ""
    494539
    495540#. translators: %s: API Error Message.
    496 #: includes/class-wc-valorpay-gateway.php:792
    497 #: includes/class-wc-valorpay-gateway.php:795
     541#: includes/class-wc-valorpay-gateway.php:839
     542#: includes/class-wc-valorpay-gateway.php:842
    498543msgid "Payment error: %s"
    499544msgstr ""
    500545
    501 #: includes/class-wc-valorpay-gateway.php:797
     546#: includes/class-wc-valorpay-gateway.php:844
    502547msgid "Unable to process the transaction using Valor Pay, please try again."
    503548msgstr ""
    504549
    505550#. translators: 1: Disable Time, 2: Unblock IP URL, 3: Customer IP.
    506 #: includes/class-wc-valorpay-gateway.php:888
     551#: includes/class-wc-valorpay-gateway.php:935
    507552msgid "Valor Pay method is disabled for %1$s. <a target=\"_blank\" href=\"%2$s\">To Unblock IP</a> %3$s"
    508553msgstr ""
    509554
    510 #: includes/class-wc-valorpay-gateway.php:951
     555#: includes/class-wc-valorpay-gateway.php:998
    511556msgid "Refund failed."
    512557msgstr ""
    513558
    514559#. translators: 1: Amount, 2: Line Break, 3: Approval code, 4: Line Break, 5: RRN Code
    515 #: includes/class-wc-valorpay-gateway.php:963
     560#: includes/class-wc-valorpay-gateway.php:1010
    516561msgid "Valor Pay Refund for %1$s.%2$s <strong>Approval Code:</strong> %3$s.%4$s <strong>RRN:</strong> %5$s"
    517562msgstr ""
  • valorpos/trunk/wc-valorpay.php

    r3115531 r3142613  
    1616 * Plugin URI:        https://valorpaytech.com
    1717 * Description:       Adds the Valor Payment Gateway to WooCommerce.
    18  * Version:           7.6.1
     18 * Version:           7.7.0
    1919 * Author:            Valor Paytech LLC
    2020 * Author URI:        https://valorpaytech.com
     
    3737 * Rename this for your plugin and update it as you release new versions.
    3838 */
    39 define( 'WC_VALORPAY_VERSION', '7.6.1' );
     39define( 'WC_VALORPAY_VERSION', '7.7.0' );
    4040// Directory i.e. /home/user/public_html...
    4141define( 'WC_VALORPAY_DIR', plugin_dir_path( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.