Plugin Directory

Changeset 2758807


Ignore:
Timestamp:
07/19/2022 07:12:09 PM (4 years ago)
Author:
idokd
Message:

Update to version 2.2.8 from GitHub

Location:
simple-payment
Files:
4 added
24 edited
1 copied

Legend:

Unmodified
Added
Removed
  • simple-payment/tags/2.2.8/addons/gravityforms/init.php

    r2733391 r2758807  
    9999        $this->SPWP = SimplePaymentPlugin::instance();
    100100        $this->_version = $this->SPWP::$version;
    101        
    102101    }
    103102   
     
    182181                'name'     => 'settings',
    183182                'label'    => esc_html__( 'Settings', 'simple-payment' ),
    184                 'type'     => 'textarea',
     183                'type'     => 'json',
    185184                'class'    => 'medium',
    186185                'tooltip'       => '<h6>' . esc_html__( 'Custom & advanced checkout settings', 'simple-payment' ) . '</h6>' . esc_html__( 'Use if carefully', 'simple-payment' ),
     
    188187            )
    189188        )
    190             );
     189        );
    191190    }
    192191
     
    208207     */
    209208    public function feed_settings_fields() {
     209        require_once( 'class-json.php' );
    210210        $default_settings = parent::feed_settings_fields();
    211211
     
    429429                        'required' => false,
    430430                ),
     431                array(
     432                    'name'     => 'phone',
     433                    'label'    => esc_html__( 'Phone', 'simple-payment' ),
     434                    'required' => false,
     435                ),
     436                array(
     437                    'name'     => 'company',
     438                    'label'    => esc_html__( 'Company', 'simple-payment' ),
     439                    'required' => false,
     440                ),
    431441        );
    432442        return array_merge( $fields, parent::billing_info_fields() );
     
    529539
    530540    public function return_url( $form_id, $lead_id ) {
    531         $pageURL = GFCommon::is_ssl() ? 'https://' : 'http://';
     541        // Lets use wordpress built-in function site_url
     542        /*$pageURL = GFCommon::is_ssl() ? 'https://' : 'http://';
    532543        $server_port = apply_filters( 'gform_simplepayment_return_url_port', $_SERVER['SERVER_PORT'] );
    533544        if ( $server_port != '80' && $server_port != 443) {
     
    535546        } else {
    536547            $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    537         }
     548        }*/
     549        $pageURL = site_url( $_SERVER[ 'REQUEST_URI' ] );
    538550        $ids_query = "ids={$form_id}|{$lead_id}";
    539551        $ids_query .= '&hash=' . wp_hash( $ids_query );
    540         $url = remove_query_arg('gf_simplepayment_retry', $pageURL);
    541         $url = add_query_arg('gf_simplepayment_return', base64_encode( $ids_query ), $url);
     552        $url = remove_query_arg( 'gf_simplepayment_retry', $pageURL );
     553        $url = add_query_arg( 'gf_simplepayment_return', base64_encode( $ids_query ), $url );
    542554        /**
    543555         * Filters SimplePayment's return URL, which is the URL that users will be sent to after completing the payment on SimplePayment's site.
     
    551563         * @param string $query The query string portion of the URL.
    552564         */
    553         return apply_filters( 'gform_simplepayment_return_url', $url, $form_id, $lead_id );
     565        return( apply_filters( 'gform_simplepayment_return_url', $url, $form_id, $lead_id ) );
    554566    }
    555567
     
    658670       
    659671        $this->add_sp_pre_process( $feed, $submission_data, $form, $entry );
    660 
    661672        $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form['id'], $submission_data, $feed, $entry );
    662673        GFAPI::update_entry_property( $entry['id'], 'payment_method', 'SimplePayment' );
     
    685696            GFSimplePayment::$params = $params;
    686697            $this->redirect_url = null;
    687             add_filter( 'gform_confirmation', function ($confirmation, $form, $entry, $ajax ) {
     698            add_filter( 'gform_confirmation', function ( $confirmation, $form, $entry, $ajax ) {
    688699                if (isset($confirmation['redirect'])) {
    689700                    $url = esc_url_raw( $confirmation['redirect'] );
     
    695706                // otherwise preset html/text from confirmation
    696707                $confirmation = $this->SPWP->checkout(GFSimplePayment::$params);
    697 
     708                remove_all_filters( 'gform_confirmation' );
    698709                return $confirmation;
    699710            }, 10, 4 );
     
    751762         */
    752763        $params[ 'redirect_url' ] = get_bloginfo( 'url' ) . '/?page=gf_simplepayment_ipn&entry_id=' . $entry[ 'id' ].'&redirect_url=' . urlencode($this->return_url( $form['id'], $entry['id'])).(isset($params['target']) && $params['target'] ? '&target='.$params['target'] : '');
    753        
    754764        $this->add_sp_pre_process( $feed, $submission_data, $form, $entry );
    755765
    756766        $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form[ 'id' ], $submission_data, $feed, $entry );
    757767        $is_subscription = $feed[ 'meta' ][ 'transactionType' ] == 'subscription';
    758 
    759768        try {
    760769            $this->redirect_url = $this->SPWP->payment( $params, $engine );
     
    847856        } else {
    848857            $subscription = $this->subscribe( $feed, $submission_data, $form, $entry );
    849             $this->authorization[ 'is_authorized' ] = rgar( $subscription,'is_success' );
    850             $this->authorization[ 'error_message' ] = rgar( $subscription, 'error_message' );
    851             $this->authorization[ 'subscription' ]  = $subscription;
    852             $performed_authorization = true;
     858            if ( $subscription !== false ) {
     859                $this->authorization[ 'is_authorized' ] = rgar( $subscription,'is_success' );
     860                $this->authorization[ 'error_message' ] = rgar( $subscription, 'error_message' );
     861                $this->authorization[ 'subscription' ]  = $subscription;
     862                $performed_authorization = true;
     863            }
    853864        }
    854865
     
    892903    public function subscribe( $feed, $submission_data, $form, $entry ) {
    893904        $subscription = $this->authorize( $feed, $submission_data, $form, $entry );
     905        if ( $subscription === false ) return( false );
    894906        $subscription[ 'is_success' ] = $subscription[ 'captured_payment' ][ 'is_success' ];
    895907        $subscription[ 'subscription_id' ] = $subscription[ 'subscription_id' ];
     
    12141226        if ( $engine_field ) {
    12151227            $engine = rgpost( "input_{$engine_field[0]->id}" );
    1216             if ($engine) $args['engine'] = $engine;
     1228            if ($engine) $args[ 'engine' ] = $engine;
    12171229        }
    12181230       
     
    12401252        // Customer Information
    12411253        if (isset($submission_data['firstName'])) $args[$this->SPWP::FIRST_NAME] = $submission_data['firstName'];
    1242         if (isset($submission_data['lastName'])) $args[$this->SPWP::LAST_NAME]  = $submission_data['lastName'];
    1243         if (isset($submission_data['email'])) $args[$this->SPWP::EMAIL]     = $submission_data['email'];
     1254        if (isset($submission_data['lastName'])) $args[$this->SPWP::LAST_NAME] = $submission_data['lastName'];
     1255        if (isset($submission_data['email'])) $args[ $this->SPWP::EMAIL ] = $submission_data['email'];
     1256        if (isset($submission_data['phone'])) $args[ $this->SPWP::PHONE ] = $submission_data['phone'];
     1257        if (isset($submission_data['company'])) $args[ $this->SPWP::COMPANY ] = $submission_data['company'];
    12441258
    12451259        // Product Information
     
    13001314    }
    13011315
    1302     public function settings_json( $field, $echo = true ) {
    1303         $field['type'] = 'textarea'; //making sure type is set to textarea
     1316    /*public function settings_json( $field, $echo = true ) {
     1317        $field[ 'type' ] = 'textarea'; //making sure type is set to textarea
    13041318        $attributes    = $this->get_field_attributes( $field );
    13051319        $default_value = rgar( $field, 'value' ) ? rgar( $field, 'value' ) : rgar( $field, 'default_value' );
    1306         $value         = $this->get_setting( $field['name'], $default_value );
    1307 
    1308         $name    = '' . esc_attr( $field['name'] );
    1309         $html    = '';
    1310 
     1320        $value = $this->get_setting( $field[ 'name' ], $default_value );
     1321
     1322        $name = '' . esc_attr( $field['name'] );
     1323        $html = '';
     1324        $html .= print_r( $value, true );
    13111325        $html .= '<textarea
    13121326                name="_gaddon_setting_' . $name . '" ' .
    13131327                implode( ' ', $attributes ) .
    1314                 '>' .
    1315                 ($value ? json_encode($value) : '').
     1328                '>' . 
     1329                ( $value ? json_encode( $value ) : '' ).
    13161330                '</textarea>';
    13171331
     
    13251339
    13261340        return $html;
    1327     }
     1341    }*/
    13281342}
    13291343
  • simple-payment/tags/2.2.8/addons/woocommerce-subscriptions/init.php

    r2448085 r2758807  
    4343}, 100, 2);
    4444
    45 add_filter('sp_woocommerce_supports', function($supports, $engine = null) {
     45add_filter('sp_woocommerce_supports', function( $supports, $engine = null ) {
    4646   // TODO: apply this support when it is gateway which handles the renewals: gateway_scheduled_payments
    47     return(array_merge($supports, [ 'subscription_suspension', 'subscription_cancellation', 'subscription_reactivation' ] ));
    48 }, 10, 2);
     47    return( array_merge( $supports, [ 'subscription_suspension', 'subscription_cancellation', 'subscription_reactivation' ] ));
     48}, 10, 2 );
    4949
    5050function sp_wcs_test($order_id) {
  • simple-payment/tags/2.2.8/addons/woocommerce/init.php

    r2589463 r2758807  
    5959       
    6060        public function __construct() {
     61            $supports = [ 'products', 'subscriptions', 'refunds',  'default_credit_card_form' ];
     62
    6163            $this->SPWP = SimplePaymentPlugin::instance();
    62 //
    6364            $this->id = 'simple-payment';
    64             $this->icon = apply_filters('woocommerce_offline_icon', '');
    65             $engine = $this->get_option('engine') ? $this->get_option('engine') : null;
    66             $this->has_fields =  $this->SPWP->supports('cvv', $engine);
     65            $this->icon = apply_filters( 'woocommerce_offline_icon', '' );
     66            $engine = $this->get_option( 'engine' ) ? $this->get_option( 'engine' ) : null;
     67            if ( $this->SPWP->supports( 'cvv', $engine ) ) {
     68                $this->has_fields = true;
     69                //$supports[] = 'credit_card_form_cvc_on_saved_method';
     70            }
    6771            $this->method_title = __( 'Simple Payment', 'simple-payment' );
    6872            $this->method_description = __( 'Allows integration of Simple Payment gateways into woocommerce', 'simple-payment' );
    69             $this->supports =  apply_filters('sp_woocommerce_supports', [ 'products', 'tokenization', 'subscriptions', 'refunds',  'default_credit_card_form' ], $engine);
     73            if ( $this->SPWP->supports( 'cvv', $engine ) ) {
     74                $supports[] = 'tokenization';
     75            }
     76
     77            $this->supports = apply_filters( 'sp_woocommerce_supports', $supports, $engine );
    7078           
    7179            // TODO: consider taking these values from the specific engine; tokenization, subscriptions
     
    7381            // TODO: credit_card_form_cvc_on_saved_method - add this to support when CVV is not required on tokenized cards - credit_card_form_cvc_on_saved_method
    7482            // TODO: tokenization- in order to support tokinzation consider using the javascript
    75             $this->new_method_label = __('new payment method', 'simple-payment');
     83            $this->new_method_label = __( 'new payment method', 'simple-payment' );
    7684
    7785            // Load the settings.
     
    8896            add_action( 'woocommerce_thankyou_'.$this->id, array($this, 'thankyou_page'));
    8997         
    90             if (!$this->has_fields || in_array($this->get_option('display'), ['iframe', 'modal'])) add_action('woocommerce_receipt_'.$this->id, array(&$this, 'provider_step'));
     98            if ( !$this->has_fields || in_array($this->get_option('display'), ['iframe', 'modal'])) add_action( 'woocommerce_receipt_'.$this->id, array( &$this, 'provider_step' ) );
    9199            add_action( "woocommerce_api_{$this}", array( $this, 'gateway_response' ) );
    92100           
     
    105113                $this->description = ' ';
    106114            }
     115
     116            add_filter( 'woocommerce_credit_card_form_fields', [ $this, 'fields' ], 50, 2 );
    107117        }
    108118   
    109119        public function needs_setup() {
    110120            return( false );
     121        }
     122
     123        public function fields( $default_fields, $id ) {
     124            if ( $id != $this->id ) return( $fields );
     125            $fields = [
     126                'card-name-field' => '<p class="form-row form-row-first">
     127                    <label for="' . esc_attr( $this->id ) . '-card-name">' . esc_html__( 'Name on card', 'simple-payment' ) . '&nbsp;<span class="required">*</span></label>
     128                    <input id="' . esc_attr( $this->id ) . '-card-name" class="input-text wc-credit-card-form-card-name" inputmode="text" autocomplete="cc-name" autocorrect="no" autocapitalize="no" spellcheck="no" type="text" placeholder="" ' . $this->field_name
     129                    ( 'card-name' ) . ' />
     130                </p>',
     131                'card-owner-id-field' => '<p class="form-row form-row-last">
     132                    <label for="' . esc_attr( $this->id ) . '-card-owner-id">' . esc_html__( 'Card Owner ID', 'simple-payment' ) . '&nbsp;<span class="required">*</span></label>
     133                    <input id="' . esc_attr( $this->id ) . '-card-owner-id" class="input-text wc-credit-card-form-card-owner-id" inputmode="numeric" autocomplete="cc-owner-id" autocorrect="no" autocapitalize="no" spellcheck="no" type="tel" placeholder="" ' . $this->field_name( 'card-owner-id' ) . ' />
     134                </p>',
     135            ];
     136
     137            $default_fields = array_merge( $fields, $default_fields );
     138            $installments = $this->get_option( 'installments' ) == 'yes' ? $this->SPWP->param( 'installments_default' ) : false;
     139            $installments_min = $this->SPWP->param( 'installments_min' );
     140            $installments_max = $this->SPWP->param( 'installments_max' );
     141            if ( isset( $installments ) && $installments
     142                 && isset( $installments_min ) && $installments_min
     143                && isset( $installments_max ) && $installments_max && $installments_max > 1 ) {
     144                    $options = '';
     145                    for ( $installment = $installments_min; $installment <= $installments_max; $installment++ ) $options .= '<option' . selected( $installments, $installment, false ) . '>' . $installment . '</option>';
     146                    $fields = [
     147                        'card-insallments-field' => '<p class="form-row form-row-first">
     148                            <label for="' . esc_attr( $this->id ) . '-card-payments">' . esc_html__( 'Installments', 'simple-payment' ) . '</label>
     149                            <select id="' . esc_attr( $this->id ) . '-card-payments" class="input-text wc-credit-card-form-card-name" inputmode="text" autocomplete="cc-payments" autocorrect="no" autocapitalize="no" spellcheck="no" type="text" placeholder="" ' . $this->field_name
     150                            ( 'payments' ) . ' />' . $options . '</select>
     151                        </p>' ];
     152                $default_fields = array_merge( $default_fields, $fields );
     153            }
     154            return( $default_fields );
    111155        }
    112156
     
    392436        public function validate_fields() {
    393437            $ok = parent::validate_fields();
    394             if ($this->has_fields) {
     438            if ( $this->has_fields ) {
    395439                $params = $this->params($_REQUEST);
    396440                $validations = $this->SPWP->validate($params);
     
    426470            if ($this->has_fields) {
    427471                // TODO: when tokenized we do not have this value
    428                 if (isset($params[$this->id.'-card-owner-id'])) $params[$this->SPWP::CARD_OWNER_ID] = $params[$this->id.'-card-owner-id'];
    429                 if (!isset($params[$this->SPWP::CARD_OWNER])) $params[$this->SPWP::CARD_OWNER] = $params['first_name'].' '.$params['last_name'];
    430                 if (!isset($params[$this->SPWP::CARD_OWNER]) || !$params[$this->SPWP::CARD_OWNER]) $params[$this->SPWP::CARD_OWNER] = $params['billing_first_name'].' '.$params['billing_last_name'];
    431                 if (isset($params[$this->id.'-card-number'])) $params[$this->SPWP::CARD_NUMBER] = str_replace(' ', '', $params[$this->id.'-card-number']);
    432                 if (isset($params[$this->id.'-card-cvc'])) {
     472                if ( !isset( $params[$this->SPWP::CARD_OWNER])) $params[ $this->SPWP::CARD_OWNER ] = $params[ $this->id.'-card-name' ];
     473
     474                if ( isset($params[$this->id.'-card-owner-id'])) $params[$this->SPWP::CARD_OWNER_ID] = $params[$this->id.'-card-owner-id'];
     475                if ( !isset($params[$this->SPWP::CARD_OWNER])) $params[$this->SPWP::CARD_OWNER] = $params['first_name'].' '.$params['last_name'];
     476                if ( !isset($params[$this->SPWP::CARD_OWNER]) || !$params[$this->SPWP::CARD_OWNER]) $params[$this->SPWP::CARD_OWNER] = $params['billing_first_name'].' '.$params['billing_last_name'];
     477                if ( isset($params[$this->id.'-card-number'])) $params[$this->SPWP::CARD_NUMBER] = str_replace(' ', '', $params[$this->id.'-card-number']);
     478                if ( isset($params[$this->id.'-card-cvc'])) {
    433479                    $params[$this->SPWP::CARD_CVV] = $params[$this->id.'-card-cvc'];
    434480                    $expiry = $params[$this->id.'-card-expiry'];
     
    546592        }
    547593       
     594        public function field_name( $name ) {
     595            // $this->supports( 'tokenization' ) ? '' :
     596            return  ' name="' . esc_attr( $this->id . '-' . $name ) . '" ';
     597        }
     598
    548599        public function save_token( $payment_id, $user_id = 0 ) {
    549600            $transaction = $this->SPWP->fetch($payment_id);
    550             if (!$this->SPWP::supports('tokenization', $transaction['engine'])) return(null);
     601            if ( !$this->SPWP::supports( 'tokenization', $transaction[ 'engine' ] ) ) return( null );
    551602            //$token_number         = $transaction->Token;
    552603            //$token_card_type  = $this->get_card_type( $transaction );
     
    554605            //$token_expiry_month = substr( $transaction->CreditCardExpDate, 0, 2 );
    555606            //$token_expiry_year    = substr( date( 'Y' ), 0, 2 ) . substr( $transaction->CreditCardExpDate, -2 );
    556             require('payment-token.php');
     607            require( 'payment-token.php' );
    557608            $token = new WC_Payment_Token_SimplePayment();
    558609            $token->set_token( $transaction['transaction_id'] );
     
    632683            ) ) );
    633684        }
     685
     686        /*
     687        <div class="col-md-4 mb-3">
     688        <?php if (isset($installments) && $installments && isset($installments_min) && $installments_min && isset($installments_max) && $installments_max && $installments_max > 1) { ?>
     689        <label for="payments"><?php _e('Installments', 'simple-payment'); ?></label>
     690        <select class="custom-select d-block w-100 form-control" id="payments" name="<?php echo $SPWP::PAYMENTS; ?>" required="">
     691          <?php for ($installment = $installments_min; $installment <= $installments_max; $installment++) echo '<option'.selected( $installments, $installment, true).'>'.$installment.'</option>'; ?>
     692        </select>
     693        <div class="invalid-feedback">
     694          <?php _e('Number of Installments is required.', 'simple-payment'); ?>
     695        </div>
     696        <?php } ?>
     697      </div>
     698    </div>
     699    <?php if (isset($owner_id) && $owner_id) { ?>
     700    <div class="row form-row">
     701      <div class="col-md-6 mb-3">
     702        <label for="cc-card-owner-id"><?php _e('Card Owner ID', 'simple-payment'); ?></label>
     703        <input type="text" class="form-control" id="cc-card-owner-id" name="<?php echo $SPWP::CARD_OWNER_ID; ?>" placeholder="">
     704        <small class="text-muted"><?php _e('Document ID as registered with card company', 'simple-payment'); ?></small>
     705        <div class="invalid-feedback">
     706          <?php _e('Card owner Id is required or invalid.', 'simple-payment'); ?>
     707        </div>
     708      </div>
     709    </div>
     710    <?php } ?>
     711    */
    634712  }
    635713
  • simple-payment/tags/2.2.8/languages/simple-payment.pot

    r2733393 r2758807  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Simple Payment 2.2.6\n"
     5"Project-Id-Version: Simple Payment 2.2.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-payment\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-05-29T09:51:34+00:00\n"
     12"POT-Creation-Date: 2022-07-19T19:10:59+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: addons/elementor/widget.php:31
    19 #: addons/woocommerce/init.php:67
    20 #: addons/woocommerce/init.php:130
     19#: addons/woocommerce/init.php:71
     20#: addons/woocommerce/init.php:174
    2121#: addons/wpjobboard/config.php:8
    2222#: simple-payment-plugin.php:361
     
    7373
    7474#: addons/elementor/widget.php:97
    75 #: addons/woocommerce/init.php:179
     75#: addons/woocommerce/init.php:223
    7676#: addons/wpjobboard/config.php:34
    7777msgid "Product"
     
    9797#: addons/elementor/widget.php:123
    9898#: addons/elementor/widget.php:137
    99 #: settings.php:119
     99#: settings.php:126
    100100msgid "Bootstrap Basic"
    101101msgstr ""
     
    103103#: addons/elementor/widget.php:124
    104104#: addons/elementor/widget.php:147
    105 #: addons/gravityforms/init.php:176
     105#: addons/gravityforms/init.php:175
    106106#: addons/gravityforms/init.php:368
    107 #: addons/woocommerce/init.php:203
     107#: addons/woocommerce/init.php:247
    108108#: addons/wpjobboard/config.php:47
    109109msgid "Template"
     
    120120
    121121#: addons/elementor/widget.php:136
    122 #: settings.php:119
     122#: settings.php:126
    123123msgid "Legacy"
    124124msgstr ""
    125125
    126126#: addons/elementor/widget.php:138
    127 #: settings.php:119
     127#: settings.php:126
    128128msgid "Bootstrap"
    129129msgstr ""
     
    143143
    144144#: addons/elementor/widget.php:160
    145 #: addons/gravityforms/init.php:148
     145#: addons/gravityforms/init.php:147
    146146#: addons/gravityforms/init.php:325
    147147msgid "IFRAME"
     
    149149
    150150#: addons/elementor/widget.php:161
    151 #: addons/gravityforms/init.php:152
     151#: addons/gravityforms/init.php:151
    152152#: addons/gravityforms/init.php:329
    153153msgid "Modal"
     
    175175
    176176#: addons/elementor/widget.php:184
    177 #: settings.php:115
     177#: settings.php:122
    178178msgid "Redirect URL"
    179179msgstr ""
     
    184184
    185185#: addons/elementor/widget.php:204
    186 #: addons/gravityforms/init.php:131
     186#: addons/gravityforms/init.php:130
    187187#: addons/gravityforms/init.php:306
    188 #: addons/woocommerce/init.php:148
     188#: addons/woocommerce/init.php:192
    189189#: addons/wpjobboard/config.php:12
    190190#: admin/transaction-list-table.php:242
    191 #: settings.php:98
     191#: settings.php:105
    192192msgid "Engine"
    193193msgstr ""
     
    198198
    199199#: addons/elementor/widget.php:221
    200 #: addons/gravityforms/init.php:164
     200#: addons/gravityforms/init.php:163
    201201#: addons/gravityforms/init.php:341
    202 #: addons/woocommerce/init.php:195
     202#: addons/woocommerce/init.php:148
     203#: addons/woocommerce/init.php:239
    203204#: addons/wpjobboard/config.php:41
    204205#: templates/form-bootstrap-basic-id.php:76
     
    224225msgstr ""
    225226
    226 #: addons/gravityforms/init.php:119
     227#: addons/gravityforms/init.php:118
    227228msgid "Simple Payment is a merchant account and gateway in one. Use Gravity Forms to collect payment information and automatically integrate to your Simple Payment account. If you don't have a Simple Payment account, you can %ssign up for one here.%s"
    228229msgstr ""
    229230
    230 #: addons/gravityforms/init.php:133
     231#: addons/gravityforms/init.php:132
    231232#: addons/gravityforms/init.php:309
    232 #: addons/woocommerce/init.php:150
     233#: addons/woocommerce/init.php:194
    233234msgid "Select Payment Gateway"
    234235msgstr ""
    235236
    236 #: addons/gravityforms/init.php:133
     237#: addons/gravityforms/init.php:132
    237238#: addons/gravityforms/init.php:309
    238239msgid "If none selected it will use Simple Payment default"
    239240msgstr ""
    240241
    241 #: addons/gravityforms/init.php:139
    242 #: addons/gravityforms/init.php:141
     242#: addons/gravityforms/init.php:138
     243#: addons/gravityforms/init.php:140
    243244#: addons/gravityforms/init.php:315
    244245#: addons/gravityforms/init.php:318
    245 #: addons/woocommerce/init.php:162
    246 #: addons/woocommerce/init.php:164
     246#: addons/woocommerce/init.php:206
     247#: addons/woocommerce/init.php:208
    247248#: addons/wpjobboard/config.php:23
    248249msgid "Display Method"
    249250msgstr ""
    250251
    251 #: addons/gravityforms/init.php:141
     252#: addons/gravityforms/init.php:140
    252253#: addons/gravityforms/init.php:318
    253 #: addons/woocommerce/init.php:151
    254 #: addons/woocommerce/init.php:165
     254#: addons/woocommerce/init.php:195
     255#: addons/woocommerce/init.php:209
    255256#: addons/wpjobboard/config.php:13
    256257#: addons/wpjobboard/config.php:24
     
    258259msgstr ""
    259260
    260 #: addons/gravityforms/init.php:144
     261#: addons/gravityforms/init.php:143
    261262#: addons/gravityforms/init.php:321
    262263#: addons/wpjobboard/config.php:6
     
    264265msgstr ""
    265266
    266 #: addons/gravityforms/init.php:156
     267#: addons/gravityforms/init.php:155
    267268#: addons/gravityforms/init.php:333
    268269msgid "redirect"
    269270msgstr ""
    270271
    271 #: addons/gravityforms/init.php:166
     272#: addons/gravityforms/init.php:165
    272273#: addons/gravityforms/init.php:344
    273 #: addons/woocommerce/init.php:197
     274#: addons/woocommerce/init.php:241
    274275msgid "Enable Insallments"
    275276msgstr ""
    276277
    277 #: addons/gravityforms/init.php:166
     278#: addons/gravityforms/init.php:165
    278279#: addons/gravityforms/init.php:344
    279280msgid "Enable installments on checkout page."
    280281msgstr ""
    281282
    282 #: addons/gravityforms/init.php:179
     283#: addons/gravityforms/init.php:178
    283284#: addons/gravityforms/init.php:372
    284 #: addons/woocommerce/init.php:205
     285#: addons/woocommerce/init.php:249
    285286#: addons/wpjobboard/config.php:48
    286287msgid "Custom checkout template form"
    287288msgstr ""
    288289
    289 #: addons/gravityforms/init.php:179
     290#: addons/gravityforms/init.php:178
    290291#: addons/gravityforms/init.php:372
    291 #: addons/woocommerce/init.php:206
     292#: addons/woocommerce/init.php:250
    292293msgid "If you wish to use a custom form template."
    293294msgstr ""
    294295
    295 #: addons/gravityforms/init.php:183
     296#: addons/gravityforms/init.php:182
    296297#: addons/gravityforms/init.php:376
    297 #: addons/woocommerce/init.php:211
     298#: addons/woocommerce/init.php:255
    298299#: addons/wpjobboard/config.php:53
    299300msgid "Settings"
    300301msgstr ""
    301302
    302 #: addons/gravityforms/init.php:186
     303#: addons/gravityforms/init.php:185
    303304#: addons/gravityforms/init.php:380
    304 #: addons/woocommerce/init.php:213
     305#: addons/woocommerce/init.php:257
    305306#: addons/wpjobboard/config.php:54
    306307msgid "Custom & advanced checkout settings"
    307308msgstr ""
    308309
    309 #: addons/gravityforms/init.php:186
     310#: addons/gravityforms/init.php:185
    310311#: addons/gravityforms/init.php:380
    311 #: addons/woocommerce/init.php:214
     312#: addons/woocommerce/init.php:258
    312313msgid "Use if carefully"
    313314msgstr ""
     
    404405msgstr ""
    405406
    406 #: addons/gravityforms/init.php:940
     407#: addons/gravityforms/init.php:433
     408#: templates/form-bootstrap.php:36
     409#: templates/form-cardcom-example.php:36
     410#: templates/form-donation.php:48
     411#: templates/form-experimental.php:36
     412msgid "Phone"
     413msgstr ""
     414
     415#: addons/gravityforms/init.php:438
     416msgid "Company"
     417msgstr ""
     418
     419#: addons/gravityforms/init.php:952
    407420msgid "Payment Completed"
    408421msgstr ""
    409422
    410 #: addons/gravityforms/init.php:941
     423#: addons/gravityforms/init.php:953
    411424msgid "Payment Failed"
    412425msgstr ""
    413426
    414 #: addons/gravityforms/init.php:942
     427#: addons/gravityforms/init.php:954
    415428msgid "Subscription Created"
    416429msgstr ""
    417430
    418 #: addons/gravityforms/init.php:1335
     431#: addons/gravityforms/init.php:1349
     432#: addons/woocommerce/init.php:132
    419433#: templates/form-woocommerce.php:65
    420434msgid "Card Owner ID"
     
    429443msgstr ""
    430444
    431 #: addons/woocommerce/init.php:68
     445#: addons/woocommerce/init.php:72
    432446msgid "Allows integration of Simple Payment gateways into woocommerce"
    433447msgstr ""
    434448
    435 #: addons/woocommerce/init.php:75
     449#: addons/woocommerce/init.php:83
    436450msgid "new payment method"
    437451msgstr ""
    438452
    439 #: addons/woocommerce/init.php:121
     453#: addons/woocommerce/init.php:127
     454#: templates/form-bootstrap-basic-id.php:31
     455#: templates/form-bootstrap-basic.php:34
     456#: templates/form-bootstrap.php:147
     457#: templates/form-donation.php:159
     458#: templates/form-experimental.php:147
     459#: templates/form-legacy.php:43
     460#: templates/form-woocommerce.php:7
     461msgid "Name on card"
     462msgstr ""
     463
     464#: addons/woocommerce/init.php:165
    440465msgid "Enable/Disable"
    441466msgstr ""
    442467
    443 #: addons/woocommerce/init.php:123
     468#: addons/woocommerce/init.php:167
    444469msgid "Enable Simple Payment"
    445470msgstr ""
    446471
    447 #: addons/woocommerce/init.php:127
     472#: addons/woocommerce/init.php:171
    448473msgid "Title"
    449474msgstr ""
    450475
    451 #: addons/woocommerce/init.php:129
     476#: addons/woocommerce/init.php:173
    452477msgid "This controls the title for the payment method the customer sees during checkout."
    453478msgstr ""
    454479
    455 #: addons/woocommerce/init.php:134
     480#: addons/woocommerce/init.php:178
    456481msgid "Description"
    457482msgstr ""
    458483
    459 #: addons/woocommerce/init.php:136
     484#: addons/woocommerce/init.php:180
    460485msgid "Payment method description that the customer will see on your checkout."
    461486msgstr ""
    462487
    463 #: addons/woocommerce/init.php:137
     488#: addons/woocommerce/init.php:181
    464489msgid "Please remit payment to Store Name upon pickup or delivery."
    465490msgstr ""
    466491
    467 #: addons/woocommerce/init.php:141
     492#: addons/woocommerce/init.php:185
    468493msgid "Instructions"
    469494msgstr ""
    470495
    471 #: addons/woocommerce/init.php:143
     496#: addons/woocommerce/init.php:187
    472497msgid "Instructions that will be added to the thank you page and emails."
    473498msgstr ""
    474499
    475 #: addons/woocommerce/init.php:171
     500#: addons/woocommerce/init.php:215
    476501msgid "Show in Checkout"
    477502msgstr ""
    478503
    479 #: addons/woocommerce/init.php:173
     504#: addons/woocommerce/init.php:217
    480505msgid "Show in Modal or IFRAME in Checkout page, instead of Order Review"
    481506msgstr ""
    482507
    483 #: addons/woocommerce/init.php:175
     508#: addons/woocommerce/init.php:219
    484509msgid "For Modal & IFRAME Only, If none selected it will use Simple Payment default."
    485510msgstr ""
    486511
    487 #: addons/woocommerce/init.php:181
     512#: addons/woocommerce/init.php:225
    488513msgid "Custom product name to use in Simple Payment"
    489514msgstr ""
    490515
    491 #: addons/woocommerce/init.php:182
     516#: addons/woocommerce/init.php:226
    492517msgid "Simple Payment globalize the purchase to single product on the Payment Gateway."
    493518msgstr ""
    494519
    495 #: addons/woocommerce/init.php:183
     520#: addons/woocommerce/init.php:227
    496521msgid "WooCommerce Order %s"
    497522msgstr ""
    498523
    499 #: addons/woocommerce/init.php:187
     524#: addons/woocommerce/init.php:231
    500525msgid "Single Item Orders"
    501526msgstr ""
    502527
    503 #: addons/woocommerce/init.php:189
     528#: addons/woocommerce/init.php:233
    504529msgid "Single Item Order use as Product Name"
    505530msgstr ""
    506531
    507 #: addons/woocommerce/init.php:191
     532#: addons/woocommerce/init.php:235
    508533msgid "When order has a single item use item name as product name"
    509534msgstr ""
    510535
    511 #: addons/woocommerce/init.php:199
     536#: addons/woocommerce/init.php:243
    512537#: addons/wpjobboard/config.php:42
    513538msgid "Enable installments on checkout page"
    514539msgstr ""
    515540
    516 #: addons/woocommerce/init.php:398
     541#: addons/woocommerce/init.php:442
    517542msgid "Payment error: %s"
    518543msgstr ""
    519544
    520 #: addons/woocommerce/init.php:526
     545#: addons/woocommerce/init.php:572
    521546msgid "Payment error: "
    522547msgstr ""
    523548
    524 #: addons/woocommerce/init.php:605
     549#: addons/woocommerce/init.php:656
    525550msgid "Pay for order"
    526551msgstr ""
    527552
    528 #: addons/woocommerce/init.php:629
     553#: addons/woocommerce/init.php:680
    529554msgid "Visa"
    530555msgstr ""
    531556
    532 #: addons/woocommerce/init.php:630
     557#: addons/woocommerce/init.php:681
    533558msgid "Mastercard"
    534559msgstr ""
    535560
    536 #: addons/woocommerce/init.php:631
     561#: addons/woocommerce/init.php:682
    537562msgid "American Express"
    538563msgstr ""
     
    742767#: admin/transaction-list-table.php:160
    743768#: admin/transaction-list-table.php:181
    744 #: settings.php:148
     769#: settings.php:155
    745770msgid "Archive"
    746771msgstr ""
     
    806831
    807832#: admin/transaction-list-table.php:253
    808 #: settings.php:104
     833#: settings.php:111
    809834msgid "Sandbox"
    810835msgstr ""
     
    852877
    853878#: settings.php:6
    854 #: settings.php:372
     879#: settings.php:379
    855880msgid "Invoice"
    856881msgstr ""
     
    865890
    866891#: settings.php:6
    867 #: settings.php:372
     892#: settings.php:379
    868893msgid "Receipt"
    869894msgstr ""
     
    10051030msgstr ""
    10061031
    1007 #: settings.php:85
     1032#: settings.php:86
     1033msgid "Meshulam Gateway Settings"
     1034msgstr ""
     1035
     1036#: settings.php:87
     1037msgid "Setup your Simple Payment to accept Meshulam Payments"
     1038msgstr ""
     1039
     1040#: settings.php:92
    10081041msgid "CreditGuard Gateway Settings"
    10091042msgstr ""
    10101043
    1011 #: settings.php:86
     1044#: settings.php:93
    10121045msgid "Setup your Simple Payment to accept CreditGuard Payments"
    10131046msgstr ""
    10141047
    1015 #: settings.php:90
     1048#: settings.php:97
    10161049msgid "Credit 2000 Gateway Settings"
    10171050msgstr ""
    10181051
    1019 #: settings.php:91
     1052#: settings.php:98
    10201053msgid "Setup your Simple Payment to accept Credit 2000 Payments"
    10211054msgstr ""
    10221055
    1023 #: settings.php:100
     1056#: settings.php:107
    10241057#: templates/form-bootstrap.php:142
    10251058#: templates/form-donation.php:154
     
    10291062msgstr ""
    10301063
    1031 #: settings.php:100
     1064#: settings.php:107
    10321065msgid "Cardcom"
    10331066msgstr ""
    10341067
    1035 #: settings.php:100
     1068#: settings.php:107
    10361069msgid "iCount"
    10371070msgstr ""
    10381071
    1039 #: settings.php:100
     1072#: settings.php:107
    10401073msgid "PayMe"
    10411074msgstr ""
    10421075
    1043 #: settings.php:100
     1076#: settings.php:107
    10441077msgid "iCredit"
    10451078msgstr ""
    10461079
    1047 #: settings.php:100
     1080#: settings.php:107
    10481081msgid "CreditGuard"
    10491082msgstr ""
    10501083
    1051 #: settings.php:100
     1084#: settings.php:107
     1085msgid "Meshulam"
     1086msgstr ""
     1087
     1088#: settings.php:107
    10521089msgid "Credit2000"
    10531090msgstr ""
    10541091
    1055 #: settings.php:100
     1092#: settings.php:107
    10561093msgid "Custom"
    10571094msgstr ""
    10581095
    1059 #: settings.php:102
     1096#: settings.php:109
    10601097msgid "Mode"
    10611098msgstr ""
    10621099
    1063 #: settings.php:104
     1100#: settings.php:111
    10641101msgid "Live"
    10651102msgstr ""
    10661103
    1067 #: settings.php:106
     1104#: settings.php:113
    10681105msgid "Currency"
    10691106msgstr ""
    10701107
    1071 #: settings.php:110
     1108#: settings.php:117
    10721109#: simple-payment-plugin.php:321
    10731110#: simple-payment-plugin.php:354
     
    10751112msgstr ""
    10761113
    1077 #: settings.php:113
     1114#: settings.php:120
    10781115msgid "Callback URL"
    10791116msgstr ""
    10801117
    1081 #: settings.php:117
     1118#: settings.php:124
    10821119msgid "Form Template"
    10831120msgstr ""
    10841121
    1085 #: settings.php:119
     1122#: settings.php:126
    10861123msgid "Experimental"
    10871124msgstr ""
    10881125
    1089 #: settings.php:121
     1126#: settings.php:128
    10901127msgid "Create Wordpress User"
    10911128msgstr ""
    10921129
    1093 #: settings.php:123
     1130#: settings.php:130
    10941131msgid "No Creation"
    10951132msgstr ""
    10961133
    1097 #: settings.php:123
     1134#: settings.php:130
    10981135msgid "Silent Creation"
    10991136msgstr ""
    11001137
    1101 #: settings.php:123
     1138#: settings.php:130
    11021139msgid "Registration"
    11031140msgstr ""
    11041141
    1105 #: settings.php:125
     1142#: settings.php:132
    11061143msgid "Create User Upon"
    11071144msgstr ""
    11081145
    1109 #: settings.php:127
     1146#: settings.php:134
    11101147msgid "Preprocessing"
    11111148msgstr ""
    11121149
    1113 #: settings.php:127
     1150#: settings.php:134
    11141151msgid "Post processing"
    11151152msgstr ""
    11161153
    1117 #: settings.php:130
     1154#: settings.php:137
    11181155msgid "Cron Schedule"
    11191156msgstr ""
    11201157
    1121 #: settings.php:132
     1158#: settings.php:139
    11221159msgid "Minute"
    11231160msgstr ""
    11241161
    1125 #: settings.php:132
    1126 #: settings.php:137
    1127 #: settings.php:143
     1162#: settings.php:139
     1163#: settings.php:144
     1164#: settings.php:150
    11281165msgid "10 Min"
    11291166msgstr ""
    11301167
    1131 #: settings.php:132
    1132 #: settings.php:137
    1133 #: settings.php:143
     1168#: settings.php:139
     1169#: settings.php:144
     1170#: settings.php:150
    11341171msgid "30 Min"
    11351172msgstr ""
    11361173
    1137 #: settings.php:132
    1138 #: settings.php:137
    1139 #: settings.php:143
     1174#: settings.php:139
     1175#: settings.php:144
     1176#: settings.php:150
    11401177msgid "1 Hour"
    11411178msgstr ""
    11421179
    1143 #: settings.php:132
    1144 #: settings.php:137
    1145 #: settings.php:143
     1180#: settings.php:139
     1181#: settings.php:144
     1182#: settings.php:150
    11461183msgid "12 Hours"
    11471184msgstr ""
    11481185
    1149 #: settings.php:132
    1150 #: settings.php:137
    1151 #: settings.php:143
     1186#: settings.php:139
     1187#: settings.php:144
     1188#: settings.php:150
    11521189msgid "1 Day"
    11531190msgstr ""
    11541191
    1155 #: settings.php:132
    1156 #: settings.php:137
    1157 #: settings.php:143
     1192#: settings.php:139
     1193#: settings.php:144
     1194#: settings.php:150
    11581195msgid "3 Days"
    11591196msgstr ""
    11601197
    1161 #: settings.php:132
    1162 #: settings.php:137
    1163 #: settings.php:143
     1198#: settings.php:139
     1199#: settings.php:144
     1200#: settings.php:150
    11641201msgid "7 Days"
    11651202msgstr ""
    11661203
    1167 #: settings.php:132
    1168 #: settings.php:137
    1169 #: settings.php:143
     1204#: settings.php:139
     1205#: settings.php:144
     1206#: settings.php:150
    11701207msgid "30 Days"
    11711208msgstr ""
    11721209
    1173 #: settings.php:135
     1210#: settings.php:142
    11741211msgid "Auto Transaction Verification"
    11751212msgstr ""
    11761213
    1177 #: settings.php:141
     1214#: settings.php:148
    11781215msgid "Fail Pending Transaction"
    11791216msgstr ""
    11801217
    1181 #: settings.php:146
     1218#: settings.php:153
    11821219msgid "Purge Transactions"
    11831220msgstr ""
    11841221
    1185 #: settings.php:148
    1186 #: settings.php:319
    1187 #: settings.php:396
     1222#: settings.php:155
     1223#: settings.php:326
     1224#: settings.php:403
    11881225msgid "Disabled"
    11891226msgstr ""
    11901227
    1191 #: settings.php:148
     1228#: settings.php:155
    11921229msgid "Purge"
    11931230msgstr ""
    11941231
    1195 #: settings.php:148
     1232#: settings.php:155
    11961233msgid "Archive & Purge"
    11971234msgstr ""
    11981235
    1199 #: settings.php:150
     1236#: settings.php:157
    12001237msgid "Purge Period (days)"
    12011238msgstr ""
    12021239
    1203 #: settings.php:153
    1204 #: settings.php:293
     1240#: settings.php:160
     1241#: settings.php:300
    12051242msgid "CSS"
    12061243msgstr ""
    12071244
    1208 #: settings.php:157
     1245#: settings.php:164
    12091246msgid "Upon Uninstall"
    12101247msgstr ""
    12111248
    1212 #: settings.php:161
     1249#: settings.php:168
    12131250msgid "Keep Database & Settings"
    12141251msgstr ""
    12151252
    1216 #: settings.php:161
     1253#: settings.php:168
    12171254msgid "Erase Settings"
    12181255msgstr ""
    12191256
    1220 #: settings.php:161
     1257#: settings.php:168
    12211258msgid "Erase Database"
    12221259msgstr ""
    12231260
    1224 #: settings.php:161
     1261#: settings.php:168
    12251262msgid "Erase All Database & Settings"
    12261263msgstr ""
    12271264
    1228 #: settings.php:164
     1265#: settings.php:171
    12291266msgid "Min # of Payments"
    12301267msgstr ""
    12311268
    1232 #: settings.php:170
     1269#: settings.php:177
    12331270msgid "Max # of Payments"
    12341271msgstr ""
    12351272
    1236 #: settings.php:176
     1273#: settings.php:183
    12371274msgid "Default # of Payments"
    12381275msgstr ""
    12391276
    1240 #: settings.php:183
     1277#: settings.php:190
    12411278msgid "Client ID"
    12421279msgstr ""
    12431280
    1244 #: settings.php:186
     1281#: settings.php:193
    12451282msgid "Client Secret"
    12461283msgstr ""
    12471284
    1248 #: settings.php:190
     1285#: settings.php:197
    12491286msgid "Business"
    12501287msgstr ""
    12511288
    1252 #: settings.php:193
     1289#: settings.php:200
    12531290msgid "Hosted Button ID"
    12541291msgstr ""
    12551292
    1256 #: settings.php:197
     1293#: settings.php:204
    12571294msgid "Terminal ID"
    12581295msgstr ""
    12591296
    1260 #: settings.php:201
    1261 #: settings.php:356
    1262 #: settings.php:487
     1297#: settings.php:208
     1298#: settings.php:363
     1299#: settings.php:528
    12631300msgid "Username"
    12641301msgstr ""
    12651302
    1266 #: settings.php:205
     1303#: settings.php:212
    12671304msgid "API Password"
    12681305msgstr ""
    12691306
    1270 #: settings.php:210
    1271 #: settings.php:441
    1272 #: settings.php:456
     1307#: settings.php:217
     1308#: settings.php:482
     1309#: settings.php:497
     1310#: settings.php:588
     1311msgid "Operation"
     1312msgstr ""
     1313
     1314#: settings.php:223
     1315#: settings.php:576
     1316msgid "Force Language Interface"
     1317msgstr ""
     1318
     1319#: settings.php:230
     1320msgid "Credit Type"
     1321msgstr ""
     1322
     1323#: settings.php:238
     1324msgid "Name field settings"
     1325msgstr ""
     1326
     1327#: settings.php:244
     1328msgid "Phone field settings"
     1329msgstr ""
     1330
     1331#: settings.php:250
     1332msgid "Email field settings"
     1333msgstr ""
     1334
     1335#: settings.php:256
     1336msgid "Hide Credit Card User ID"
     1337msgstr ""
     1338
     1339#: settings.php:261
     1340msgid "Invoice Processing"
     1341msgstr ""
     1342
     1343#: settings.php:268
     1344#: settings.php:377
     1345msgid "Document Type Upon Success"
     1346msgstr ""
     1347
     1348#: settings.php:276
     1349msgid "Auto Create/Update Account"
     1350msgstr ""
     1351
     1352#: settings.php:281
     1353msgid "Load Account Info to Invoice"
     1354msgstr ""
     1355
     1356#: settings.php:287
     1357msgid "Information to print on document"
     1358msgstr ""
     1359
     1360#: settings.php:295
     1361msgid "Show Invoice Information"
     1362msgstr ""
     1363
     1364#: settings.php:306
     1365msgid "Prices Globally VAT Free"
     1366msgstr ""
     1367
     1368#: settings.php:311
     1369msgid "Email Invoice to Client"
     1370msgstr ""
     1371
     1372#: settings.php:316
     1373msgid "Department ID"
     1374msgstr ""
     1375
     1376#: settings.php:318
     1377msgid "Numeric ID"
     1378msgstr ""
     1379
     1380#: settings.php:323
     1381#: settings.php:400
     1382msgid "Enable Recurring (Direct Debit) Payments"
     1383msgstr ""
     1384
     1385#: settings.php:326
     1386#: settings.php:403
     1387msgid "Provider"
     1388msgstr ""
     1389
     1390#: settings.php:330
     1391msgid "Process Recurring Upon"
     1392msgstr ""
     1393
     1394#: settings.php:333
     1395msgid "Post Process"
     1396msgstr ""
     1397
     1398#: settings.php:333
     1399msgid "Status Process"
     1400msgstr ""
     1401
     1402#: settings.php:337
     1403msgid "Direct Debit Terminal"
     1404msgstr ""
     1405
     1406#: settings.php:342
     1407msgid "Direct Debit Operation"
     1408msgstr ""
     1409
     1410#: settings.php:349
     1411msgid "Repeated Recurring"
     1412msgstr ""
     1413
     1414#: settings.php:354
     1415msgid "Recurring Interval ID"
     1416msgstr ""
     1417
     1418#: settings.php:359
     1419msgid "Business ID"
     1420msgstr ""
     1421
     1422#: settings.php:367
    12731423#: settings.php:532
    1274 msgid "Operation"
    1275 msgstr ""
    1276 
    1277 #: settings.php:216
    1278 #: settings.php:520
    1279 msgid "Force Language Interface"
    1280 msgstr ""
    1281 
    1282 #: settings.php:223
    1283 msgid "Credit Type"
    1284 msgstr ""
    1285 
    1286 #: settings.php:231
    1287 msgid "Name field settings"
    1288 msgstr ""
    1289 
    1290 #: settings.php:237
    1291 msgid "Phone field settings"
    1292 msgstr ""
    1293 
    1294 #: settings.php:243
    1295 msgid "Email field settings"
    1296 msgstr ""
    1297 
    1298 #: settings.php:249
    1299 msgid "Hide Credit Card User ID"
    1300 msgstr ""
    1301 
    1302 #: settings.php:254
    1303 msgid "Invoice Processing"
    1304 msgstr ""
    1305 
    1306 #: settings.php:261
    1307 #: settings.php:370
    1308 msgid "Document Type Upon Success"
    1309 msgstr ""
    1310 
    1311 #: settings.php:269
    1312 msgid "Auto Create/Update Account"
    1313 msgstr ""
    1314 
    1315 #: settings.php:274
    1316 msgid "Load Account Info to Invoice"
    1317 msgstr ""
    1318 
    1319 #: settings.php:280
    1320 msgid "Information to print on document"
    1321 msgstr ""
    1322 
    1323 #: settings.php:288
    1324 msgid "Show Invoice Information"
    1325 msgstr ""
    1326 
    1327 #: settings.php:299
    1328 msgid "Prices Globally VAT Free"
    1329 msgstr ""
    1330 
    1331 #: settings.php:304
    1332 msgid "Email Invoice to Client"
    1333 msgstr ""
    1334 
    1335 #: settings.php:309
    1336 msgid "Department ID"
    1337 msgstr ""
    1338 
    1339 #: settings.php:311
    1340 msgid "Numeric ID"
    1341 msgstr ""
    1342 
    1343 #: settings.php:316
    1344 #: settings.php:393
    1345 msgid "Enable Recurring (Direct Debit) Payments"
    1346 msgstr ""
    1347 
    1348 #: settings.php:319
    1349 #: settings.php:396
    1350 msgid "Provider"
    1351 msgstr ""
    1352 
    1353 #: settings.php:323
    1354 msgid "Process Recurring Upon"
    1355 msgstr ""
    1356 
    1357 #: settings.php:326
    1358 msgid "Post Process"
    1359 msgstr ""
    1360 
    1361 #: settings.php:326
    1362 msgid "Status Process"
    1363 msgstr ""
    1364 
    1365 #: settings.php:330
    1366 msgid "Direct Debit Terminal"
    1367 msgstr ""
    1368 
    1369 #: settings.php:335
    1370 msgid "Direct Debit Operation"
    1371 msgstr ""
    1372 
    1373 #: settings.php:342
    1374 msgid "Repeated Recurring"
    1375 msgstr ""
    1376 
    1377 #: settings.php:347
    1378 msgid "Recurring Interval ID"
    1379 msgstr ""
    1380 
    1381 #: settings.php:352
    1382 msgid "Business ID"
    1383 msgstr ""
    1384 
    1385 #: settings.php:360
    1386 #: settings.php:491
    13871424msgid "Password"
    13881425msgstr ""
    13891426
    1390 #: settings.php:365
     1427#: settings.php:372
    13911428msgid "Use CC Storage"
    13921429msgstr ""
    13931430
    1394 #: settings.php:372
    1395 #: settings.php:378
     1431#: settings.php:379
     1432#: settings.php:385
    13961433msgid "None"
    13971434msgstr ""
    13981435
    1399 #: settings.php:372
     1436#: settings.php:379
    14001437msgid "Invoice / Receipt"
    14011438msgstr ""
    14021439
    1403 #: settings.php:372
     1440#: settings.php:379
    14041441msgid "Deal"
    14051442msgstr ""
    14061443
    1407 #: settings.php:372
     1444#: settings.php:379
    14081445msgid "Offer"
    14091446msgstr ""
    14101447
    1411 #: settings.php:372
     1448#: settings.php:379
    14121449msgid "Order"
    14131450msgstr ""
    14141451
    1415 #: settings.php:376
     1452#: settings.php:383
    14161453msgid "Document VAT Type"
    14171454msgstr ""
    14181455
    1419 #: settings.php:378
     1456#: settings.php:385
    14201457msgid "Included"
    14211458msgstr ""
    14221459
    1423 #: settings.php:378
     1460#: settings.php:385
    14241461msgid "Exempt"
    14251462msgstr ""
    14261463
    1427 #: settings.php:382
     1464#: settings.php:389
    14281465msgid "Auto invoice on installments"
    14291466msgstr ""
    14301467
    1431 #: settings.php:387
     1468#: settings.php:394
    14321469msgid "Email Document to Client"
    14331470msgstr ""
    14341471
    1435 #: settings.php:400
     1472#: settings.php:407
    14361473msgid "Seller ID"
    14371474msgstr ""
    14381475
    1439 #: settings.php:405
     1476#: settings.php:412
    14401477msgid "Client Key"
    14411478msgstr ""
    14421479
    1443 #: settings.php:410
     1480#: settings.php:417
    14441481msgid "Merchant Secret"
    14451482msgstr ""
    14461483
    1447 #: settings.php:415
     1484#: settings.php:422
    14481485msgid "Notify Client"
    14491486msgstr ""
    14501487
    1451 #: settings.php:421
     1488#: settings.php:428
     1489msgid "User ID"
     1490msgstr ""
     1491
     1492#: settings.php:433
     1493msgid "Page Code (CC)"
     1494msgstr ""
     1495
     1496#: settings.php:438
     1497msgid "Page Code (Subscriptions)"
     1498msgstr ""
     1499
     1500#: settings.php:443
     1501msgid "Page Code (bit)"
     1502msgstr ""
     1503
     1504#: settings.php:448
     1505#: settings.php:612
     1506msgid "API KEY"
     1507msgstr ""
     1508
     1509#: settings.php:452
     1510msgid "Tokenize"
     1511msgstr ""
     1512
     1513#: settings.php:457
     1514msgid "Commission"
     1515msgstr ""
     1516
     1517#: settings.php:462
    14521518msgid "Payment Token"
    14531519msgstr ""
    14541520
    1455 #: settings.php:426
    1456 #: settings.php:527
     1521#: settings.php:467
     1522#: settings.php:583
    14571523msgid "Create Tokens"
    14581524msgstr ""
    14591525
    1460 #: settings.php:431
     1526#: settings.php:472
    14611527msgid "Token Box"
    14621528msgstr ""
    14631529
    1464 #: settings.php:435
     1530#: settings.php:476
    14651531msgid "Apply Credit Above Payments"
    14661532msgstr ""
    14671533
    1468 #: settings.php:447
     1534#: settings.php:488
    14691535msgid "VAT Free"
    14701536msgstr ""
    14711537
    1472 #: settings.php:452
     1538#: settings.php:493
    14731539msgid "Company Name"
    14741540msgstr ""
    14751541
    1476 #: settings.php:462
     1542#: settings.php:503
    14771543msgid "Vendor Name"
    14781544msgstr ""
    14791545
    1480 #: settings.php:466
     1546#: settings.php:507
    14811547msgid "Company Key"
    14821548msgstr ""
    14831549
    1484 #: settings.php:472
     1550#: settings.php:513
    14851551msgid "Company Logo"
    14861552msgstr ""
    14871553
    1488 #: settings.php:476
     1554#: settings.php:517
    14891555msgid "Use CVV"
    14901556msgstr ""
    14911557
    1492 #: settings.php:483
     1558#: settings.php:524
    14931559msgid "Gateway URL"
    14941560msgstr ""
    14951561
    1496 #: settings.php:496
     1562#: settings.php:537
    14971563msgid "Terminal"
    14981564msgstr ""
    14991565
    1500 #: settings.php:500
     1566#: settings.php:541
    15011567msgid "Merchant ID"
    15021568msgstr ""
    15031569
    1504 #: settings.php:504
     1570#: settings.php:545
    15051571msgid "Supplier ID"
    15061572msgstr ""
    15071573
    1508 #: settings.php:508
     1574#: settings.php:549
    15091575msgid "Integration Mode"
    15101576msgstr ""
    15111577
    1512 #: settings.php:515
     1578#: settings.php:556
    15131579msgid "Check May Be Duplicate"
    15141580msgstr ""
    15151581
    1516 #: settings.php:538
     1582#: settings.php:561
     1583msgid "Use CVV on Payment Page"
     1584msgstr ""
     1585
     1586#: settings.php:566
     1587msgid "Use Personal ID on Payment Page"
     1588msgstr ""
     1589
     1590#: settings.php:571
     1591msgid "Use frameAncestorURLs Protection"
     1592msgstr ""
     1593
     1594#: settings.php:594
    15171595msgid "Validation"
    15181596msgstr ""
    15191597
    1520 #: settings.php:546
    1521 msgid "API KEY"
     1598#: settings.php:600
     1599msgid "Custom CSS"
     1600msgstr ""
     1601
     1602#: settings.php:605
     1603msgid "Custom Texts ( JSON )"
    15221604msgstr ""
    15231605
     
    16391721#: templates/form-legacy.php:34
    16401722msgid "Debit card"
    1641 msgstr ""
    1642 
    1643 #: templates/form-bootstrap-basic-id.php:31
    1644 #: templates/form-bootstrap-basic.php:34
    1645 #: templates/form-bootstrap.php:147
    1646 #: templates/form-donation.php:159
    1647 #: templates/form-experimental.php:147
    1648 #: templates/form-legacy.php:43
    1649 #: templates/form-woocommerce.php:7
    1650 msgid "Name on card"
    16511723msgstr ""
    16521724
     
    17921864msgstr ""
    17931865
    1794 #: templates/form-bootstrap.php:36
    1795 #: templates/form-cardcom-example.php:36
    1796 #: templates/form-donation.php:48
    1797 #: templates/form-experimental.php:36
    1798 msgid "Phone"
    1799 msgstr ""
    1800 
    18011866#: templates/form-bootstrap.php:39
    18021867#: templates/form-cardcom-example.php:39
  • simple-payment/tags/2.2.8/readme.txt

    r2733393 r2758807  
    55Requires at least: 4.6
    66Tested up to: 6.0
    7 Stable tag: 2.2.7
     7Stable tag: 2.2.8
    88Requires PHP: 5.4
    99License: GPLv2 or later
  • simple-payment/tags/2.2.8/settings.php

    r2724151 r2758807  
    8282    'section' => 'icredit'
    8383  ],
     84
     85  'meshulam_settings' => [
     86    'title' => __( 'Meshulam Gateway Settings', 'simple-payment' ),
     87    'description' => __( 'Setup your Simple Payment to accept Meshulam Payments', 'simple-payment' ),
     88    'section' => 'meshulam'
     89  ],
     90
    8491  'creditguard_settings' => [
    8592    'title' => __('CreditGuard Gateway Settings', 'simple-payment'),
     
    98105    'title' => __('Engine', 'simple-payment'),
    99106    'type' => 'select',
    100     'options' => ['PayPal' => __('PayPal', 'simple-payment'), 'Cardcom' => __('Cardcom', 'simple-payment'), 'iCount' => __('iCount', 'simple-payment'), 'PayMe' => __('PayMe', 'simple-payment'), 'iCredit' => __('iCredit', 'simple-payment'), 'CreditGuard' => __( 'CreditGuard', 'simple-payment' ), 'Credit2000' => __('Credit2000', 'simple-payment'), 'Custom' => __('Custom', 'simple-payment')]],
     107    'options' => ['PayPal' => __('PayPal', 'simple-payment'), 'Cardcom' => __('Cardcom', 'simple-payment'), 'iCount' => __('iCount', 'simple-payment'), 'PayMe' => __('PayMe', 'simple-payment'), 'iCredit' => __('iCredit', 'simple-payment'), 'CreditGuard' => __( 'CreditGuard', 'simple-payment' ), 'Meshulam' => __( 'Meshulam', 'simple-payment' ), 'Credit2000' => __('Credit2000', 'simple-payment'), 'Custom' => __('Custom', 'simple-payment')]],
    101108  'mode' => [ //Mode
    102109    'title' => __('Mode', 'simple-payment'),
     
    151158    ],
    152159    'css' => [
    153     'title' => __('CSS', 'simple-payment'),
     160    'title' => __( 'CSS', 'simple-payment' ),
    154161    'type' => 'textarea'
    155162  ],
     
    418425  ],
    419426
     427  'meshulam.username' => [
     428    'title' => __( 'User ID', 'simple-payment' ),
     429    'section' => 'meshulam_settings',
     430    'type' => 'text'
     431  ],
     432  'meshulam.password' => [
     433    'title' => __( 'Page Code (CC)', 'simple-payment' ),
     434    'section' => 'meshulam_settings',
     435    'type' => 'password'
     436  ],
     437  'meshulam.subscriptions' => [
     438    'title' => __( 'Page Code (Subscriptions)', 'simple-payment' ),
     439    'section' => 'meshulam_settings',
     440    'type' => 'password'
     441  ],
     442  'meshulam.bit' => [
     443    'title' => __( 'Page Code (bit)', 'simple-payment' ),
     444    'section' => 'meshulam_settings',
     445    'type' => 'password'
     446  ],
     447  'meshulam.apikey' => [
     448    'title' => __( 'API KEY', 'simple-payment' ),
     449    'section' => 'meshulam_settings',
     450  ],
     451  'meshulam.tokenize' => [
     452    'title' => __( 'Tokenize', 'simple-payment' ),
     453    'section' => 'meshulam_settings',
     454    'type' => 'check'
     455  ],
     456  'meshulam.commision' => [
     457    'title' => __( 'Commission', 'simple-payment' ),
     458    'section' => 'meshulam_settings',
     459  ],
     460
    420461  'icredit.password' => [
    421     'title' => __('Payment Token', 'simple-payment'),
     462    'title' => __( 'Payment Token', 'simple-payment'),
    422463    'section' => 'icredit_settings',
    423464    'type' => 'password'
     
    517558    'section' => 'creditguard_settings'
    518559  ],
     560  'creditguard.usecvv' => [
     561    'title' => __( 'Use CVV on Payment Page', 'simple-payment'),
     562    'type' => 'check',
     563    'section' => 'creditguard_settings'
     564  ],
     565  'creditguard.useid' => [
     566    'title' => __( 'Use Personal ID on Payment Page', 'simple-payment'),
     567    'type' => 'check',
     568    'section' => 'creditguard_settings'
     569  ],
     570  'creditguard.urls' => [
     571    'title' => __( 'Use frameAncestorURLs Protection', 'simple-payment'),
     572    'type' => 'check',
     573    'section' => 'creditguard_settings'
     574  ],
    519575  'creditguard.language' => [ // Language
    520576    'title' => __( 'Force Language Interface', 'simple-payment' ),
     
    541597    'options' => [ 'NoComm' => 'NoComm', 'Normal' => 'Normal', 'CreditLimit' => 'CreditLimit', 'AutoComm' => 'AutoComm', 'Verify' => 'Verify', 'Dealer' => 'Dealer', 'AutoCommHold' => 'AutoCommHold', 'Token' => 'Token', 'AutoCommRelease' => 'AutoCommRelease', 'cardNo' => 'cardNo' ], 
    542598  ],
    543 
     599  'creditguard.css' => [
     600    'title' => __( 'Custom CSS', 'simple-payment' ),
     601    'section' => 'creditguard_settings',
     602    'type' => 'textarea'
     603  ],
     604  'creditguard.texts' => [
     605    'title' => __( 'Custom Texts ( JSON )', 'simple-payment' ),
     606    'section' => 'creditguard_settings',
     607    'type' => 'textarea'
     608  ],
     609 
    544610
    545611  'api_key' => [
  • simple-payment/tags/2.2.8/simple-payment-plugin.php

    r2733393 r2758807  
    44 * Plugin URI: https://simple-payment.yalla-ya.com
    55 * Description: Simple Payment enables integration with multiple payment gateways, and customize multiple payment forms.
    6  * Version: 2.2.7
     6 * Version: 2.2.8
    77 * Author: Ido Kobelkowsky / yalla ya!
    88 * Author URI: https://github.com/idokd
     
    4545
    4646  public static $table_name = 'sp_transactions';
    47   public static $engines = [ 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'iCredit', 'CreditGuard', 'Credit2000', 'Custom' ];
     47  public static $engines = [ 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'iCredit', 'CreditGuard', 'Meshulam', 'Credit2000', 'Custom' ];
    4848
    4949  public static $fields = [ 'payment_id', 'transaction_id', 'target', 'type', 'callback', 'display', 'concept', 'redirect_url', 'source', 'source_id', self::ENGINE, self::AMOUNT, self::PRODUCT, self::PRODUCT_CODE, self::PRODUCTS, self::METHOD, self::FULL_NAME, self::FIRST_NAME, self::LAST_NAME, self::PHONE, self::MOBILE, self::ADDRESS, self::ADDRESS2, self::EMAIL, self::COUNTRY, self::STATE, self::ZIPCODE, self::PAYMENTS, self::INSTALLMENTS, self::CARD_CVV, self::CARD_EXPIRY_MONTH, self::CARD_EXPIRY_YEAR, self::CARD_NUMBER, self::CURRENCY, self::COMMENT, self::CITY, self::COMPANY, self::TAX_ID, self::CARD_OWNER, self::CARD_OWNER_ID, self::LANGUAGE ];
     
    7979  public function __construct( $params = [] ) {
    8080    $option = get_option( 'sp' ) ? : [];
    81     parent::__construct( array_merge( array_merge( $this->defaults, $params ), $option ) );
     81    parent::__construct( apply_filters( 'sp_settings', array_merge( array_merge( $this->defaults, $params ), $option ) ) );
    8282    self::$license = get_option( 'sp_license' );
    8383    $plugin = get_file_data( __FILE__, array( 'Version' => 'Version' ), false );
     
    400400    $tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'sp';
    401401    $section = $tab;
    402     $tabs = apply_filters( 'sp_admin_tabs', [ 'General', 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'iCredit', 'CreditGuard', 'Credit2000', 'License', 'Extensions', 'Shortcode', 'Instructions' ] );
     402    $tabs = apply_filters( 'sp_admin_tabs', [ 'General', 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'Meshulam', 'iCredit', 'CreditGuard', 'Credit2000', 'License', 'Extensions', 'Shortcode', 'Instructions' ] );
    403403    ?>
    404404    <div class="wrap">
     
    787787 
    788788  public static function supports($feature, $engine = null) {
    789     return(parent::supports( $feature, $engine ? : self::param( 'engine' ) ) );
     789    return( parent::supports( $feature, $engine ? : self::param( 'engine' ) ) );
    790790  }
    791791
  • simple-payment/tags/2.2.8/templates/form-woocommerce.php

    r2589463 r2758807  
    11<?php
    2 require(SPWP_PLUGIN_DIR.'/templates/preparation.php');
     2require( SPWP_PLUGIN_DIR.'/templates/preparation.php' );
    33?>
    44<div class="col-md-8 order-md-1" id="simple-payment">
    5     <div class="row">
     5    <div class="row form-row">
    66      <div class="col-md-6 mb-3">
    77        <label for="cc-name"><?php _e('Name on card', 'simple-payment'); ?></label>
    8         <input type="text" class="form-control" id="cc-name" name="<?php echo $SPWP::CARD_OWNER; ?>" placeholder="" required="">
     8        <input type="text" class="form-control input-text" id="cc-name" name="<?php echo $SPWP::CARD_OWNER; ?>" placeholder="" required="">
    99        <small class="text-muted"><?php _e('Full name as displayed on card', 'simple-payment'); ?></small>
    1010        <div class="invalid-feedback">
     
    1414      <div class="col-md-6 mb-3">
    1515        <label for="cc-number"><?php _e('Credit card number', 'simple-payment'); ?></label>
    16         <input type="text" class="form-control" id="cc-number" name="<?php echo $SPWP::CARD_NUMBER; ?>" maxlength="16" placeholder="" required="">
     16        <input type="text" class="form-control input-text wc-credit-card-form-card-number" id="cc-number" name="<?php echo $SPWP::CARD_NUMBER; ?>" maxlength="16" placeholder="" required="" inputmode="numeric" autocomplete="cc-number" autocorrect="no" autocapitalize="no" spellcheck="no" type="tel">
    1717        <div class="invalid-feedback">
    1818          <?php _e('Credit card number is required.', 'simple-payment'); ?>
     
    2020      </div>
    2121    </div>
    22     <div class="row">
     22    <div class="row form-row">
    2323      <div class="col-md-3 mb-3">
    2424        <label for="cc-expiry-month"><?php _e('Expiration', 'simple-payment'); ?></label>
     
    4343      <div class="col-md-2 mb-3">
    4444        <label for="cc-cvv"><?php _e('CVV', 'simple-payment'); ?></label>
    45         <input type="text" class="form-control" id="cc-cvv" name="<?php echo $SPWP::CARD_CVV; ?>" maxlength="4" placeholder="" required="">
     45        <input type="text" class="form-control input-text wc-credit-card-form-card-cvc" id="cc-cvv" name="<?php echo $SPWP::CARD_CVV; ?>" maxlength="4" placeholder="" required="" inputmode="numeric" autocomplete="off" autocorrect="no" autocapitalize="no" spellcheck="no" type="tel">
    4646        <div class="invalid-feedback">
    4747          <?php _e('Required.', 'simple-payment'); ?>
     
    6161    </div>
    6262    <?php if (isset($owner_id) && $owner_id) { ?>
    63     <div class="row">
     63    <div class="row form-row">
    6464      <div class="col-md-6 mb-3">
    6565        <label for="cc-card-owner-id"><?php _e('Card Owner ID', 'simple-payment'); ?></label>
  • simple-payment/tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/CreditGuard.php

    r2730843 r2758807  
    108108      'response' => $response
    109109    ] );
    110     return( $data  );
     110    return( $data );
    111111  }
    112112
     
    177177
    178178  public function post_process( $params ) {
     179    $response = $_REQUEST;
    179180    if ( $this->param( 'mode' ) == 'redirect' ) {
    180       $response = $_REQUEST;
    181       $status = isset( $params[ 'ErrorCode' ] ) && intval( $params[ 'ErrorCode' ] ) == 0;
     181      $status = !isset( $params[ 'ErrorCode' ] ) || intval( $params[ 'ErrorCode' ] ) == 0;
    182182      $this->transaction = $params[ 'txId' ];
    183183      $token = ( isset( $params[ 'cardToken' ] ) && $params[ 'cardToken' ] ) ? $params[ 'cardToken' ] : null;
     
    185185      $uniqueId = ( isset( $params[ 'uniqueID' ] ) && $params[ 'uniqueID' ] ) ? $params[ 'uniqueID' ] : null;
    186186      $signature = hash( 'sha256',
    187         $this->password . $this->transaction . $params[ 'ErrorCode' ] . $token . $params[ 'cardExp' ] . $owner_id . $uniqueId
     187        $this->password . $this->transaction . ( $params[ 'ErrorCode' ] ? : '000' ) . $token . $params[ 'cardExp' ] . $owner_id . $uniqueId
    188188      );
    189189      $status = $status && $signature == $params[ 'responseMac' ];
    190190      $this->save( [
    191191        'transaction_id' => $this->transaction,
    192         'url' => ':post_process',
     192        'url' => ':signature_process',
    193193        'status' => $status,
    194194        'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null,
     
    196196        'response' => json_encode( $response )
    197197      ] );
    198       if ( $status ) $status = $this->verify();
     198      if ( $status ) {
     199        $status = $this->verify();
     200      }
    199201      $expiration = $params[ 'cardExp' ];
    200202    } else {
    201203      $status = isset( $params[ 'status' ] ) && intval( $params[ 'status' ] ) == 0;
    202     }
    203 
    204     $token = $params[ 'cardId' ];
    205     $expiration = $params[ 'cardExpiration' ];
    206 
     204      $token = $params[ 'cardId' ];
     205      $expiration = $params[ 'cardExpiration' ];
     206    }
    207207    $this->confirmation_code = $params[ 'authNumber' ];
    208     $response = $_REQUEST;
    209208    $args = [
    210209      'transaction_id' => $this->transaction,
    211       'url' => ':verify_process',
     210      'url' => 'post_process',
    212211      'status' => isset( $params[ 'status' ] ) ? $params[ 'status' ] : '',
    213212      'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null,
     
    215214      'response' => $this->param( 'mode' ) == 'redirect' ? json_encode( $response ) : null,
    216215    ];
    217 
    218216    // TODO: should we consider the engine confirmation for keeping tokens?
    219217    if ( $status && $token && $this->param( 'tokenize' ) ) $args[ 'token' ] = [
     
    311309
    312310      //$this->param('tokenize') ? true : false;
    313 
     311    // TODO: implement
    314312    // paymentPageData
    315 
     313    // useId, useCvv, customStyle, customText, iframeAnchestor
     314   
    316315    $response = $this->post( 'doDeal', $post );
    317316    $this->transaction = $mode == 'redirect' ? ( isset( $response[ 'response' ][ 'doDeal' ][ 'token' ] ) ? $response[ 'response' ][ 'doDeal' ][ 'token' ] : $this->transaction ) : $response[ 'response' ][ 'tranId' ];
  • simple-payment/tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/Engine.php

    r2733393 r2758807  
    99}
    1010
    11 class Engine {
     11abstract class Engine {
    1212
    1313  public static $name = 'Base';
  • simple-payment/tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/iCount.php

    r2730843 r2758807  
    2626    public static $supports = [ 'cvv', 'tokenization', 'card_owner_id' ];
    2727
     28    public function __construct($params = null, $handler = null, $sandbox = true) {
     29      parent::__construct( $params, $handler, $sandbox );
     30      //if ( $this->param( 'use_storage' ) ) self::$supports[] = 'tokenization';
     31      //$this->password = $this->sandbox ? $this->password : $this->param('password');
     32      //$this->box = $this->sandbox ? $this->box : $this->param('box');
     33      //$this->api = $this->api[$this->sandbox? 'sandbox' : 'live'];
     34    }
     35
     36
     37    //
    2838    public static function is_subscription( $params ) {
    2939      if ( !isset( $params[ 'payments' ] ) ) return( false );
  • simple-payment/tags/2.2.8/vendor/yalla-ya/simple-payment/SimplePayment.php

    r2733391 r2758807  
    5252      if ( !$this->is_cli() && ( !isset( $_SERVER[ 'HTTPS' ] ) || !$_SERVER[ 'HTTPS' ] ) ) throw new Exception( 'HTTPS_REQUIRED_LIVE_TRANSACTIONS', 500 );
    5353    }
    54     $class = __NAMESPACE__ . '\\Engines\\' . $engine;
     54    $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine;
    5555    $settings = self::param( strtolower( isset( $class::$name ) ? $class::$name : $engine ) );
    5656    foreach ( self::$params as $key => $value ) if ( !is_array( $value ) && !isset( $settings[ $key ] ) ) $settings[ $key ] = $value;
     
    6262      $engine = $this->engine;
    6363      $class = get_class($this->engine);
    64     } else $class = __NAMESPACE__ . '\\Engines\\' . $engine;
     64    } else $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine;
    6565    return(in_array($feature, $class::$supports) || self::param(strtolower($engine).'.'.$feature));
    6666  }
  • simple-payment/trunk/addons/gravityforms/init.php

    r2733391 r2758807  
    9999        $this->SPWP = SimplePaymentPlugin::instance();
    100100        $this->_version = $this->SPWP::$version;
    101        
    102101    }
    103102   
     
    182181                'name'     => 'settings',
    183182                'label'    => esc_html__( 'Settings', 'simple-payment' ),
    184                 'type'     => 'textarea',
     183                'type'     => 'json',
    185184                'class'    => 'medium',
    186185                'tooltip'       => '<h6>' . esc_html__( 'Custom & advanced checkout settings', 'simple-payment' ) . '</h6>' . esc_html__( 'Use if carefully', 'simple-payment' ),
     
    188187            )
    189188        )
    190             );
     189        );
    191190    }
    192191
     
    208207     */
    209208    public function feed_settings_fields() {
     209        require_once( 'class-json.php' );
    210210        $default_settings = parent::feed_settings_fields();
    211211
     
    429429                        'required' => false,
    430430                ),
     431                array(
     432                    'name'     => 'phone',
     433                    'label'    => esc_html__( 'Phone', 'simple-payment' ),
     434                    'required' => false,
     435                ),
     436                array(
     437                    'name'     => 'company',
     438                    'label'    => esc_html__( 'Company', 'simple-payment' ),
     439                    'required' => false,
     440                ),
    431441        );
    432442        return array_merge( $fields, parent::billing_info_fields() );
     
    529539
    530540    public function return_url( $form_id, $lead_id ) {
    531         $pageURL = GFCommon::is_ssl() ? 'https://' : 'http://';
     541        // Lets use wordpress built-in function site_url
     542        /*$pageURL = GFCommon::is_ssl() ? 'https://' : 'http://';
    532543        $server_port = apply_filters( 'gform_simplepayment_return_url_port', $_SERVER['SERVER_PORT'] );
    533544        if ( $server_port != '80' && $server_port != 443) {
     
    535546        } else {
    536547            $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    537         }
     548        }*/
     549        $pageURL = site_url( $_SERVER[ 'REQUEST_URI' ] );
    538550        $ids_query = "ids={$form_id}|{$lead_id}";
    539551        $ids_query .= '&hash=' . wp_hash( $ids_query );
    540         $url = remove_query_arg('gf_simplepayment_retry', $pageURL);
    541         $url = add_query_arg('gf_simplepayment_return', base64_encode( $ids_query ), $url);
     552        $url = remove_query_arg( 'gf_simplepayment_retry', $pageURL );
     553        $url = add_query_arg( 'gf_simplepayment_return', base64_encode( $ids_query ), $url );
    542554        /**
    543555         * Filters SimplePayment's return URL, which is the URL that users will be sent to after completing the payment on SimplePayment's site.
     
    551563         * @param string $query The query string portion of the URL.
    552564         */
    553         return apply_filters( 'gform_simplepayment_return_url', $url, $form_id, $lead_id );
     565        return( apply_filters( 'gform_simplepayment_return_url', $url, $form_id, $lead_id ) );
    554566    }
    555567
     
    658670       
    659671        $this->add_sp_pre_process( $feed, $submission_data, $form, $entry );
    660 
    661672        $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form['id'], $submission_data, $feed, $entry );
    662673        GFAPI::update_entry_property( $entry['id'], 'payment_method', 'SimplePayment' );
     
    685696            GFSimplePayment::$params = $params;
    686697            $this->redirect_url = null;
    687             add_filter( 'gform_confirmation', function ($confirmation, $form, $entry, $ajax ) {
     698            add_filter( 'gform_confirmation', function ( $confirmation, $form, $entry, $ajax ) {
    688699                if (isset($confirmation['redirect'])) {
    689700                    $url = esc_url_raw( $confirmation['redirect'] );
     
    695706                // otherwise preset html/text from confirmation
    696707                $confirmation = $this->SPWP->checkout(GFSimplePayment::$params);
    697 
     708                remove_all_filters( 'gform_confirmation' );
    698709                return $confirmation;
    699710            }, 10, 4 );
     
    751762         */
    752763        $params[ 'redirect_url' ] = get_bloginfo( 'url' ) . '/?page=gf_simplepayment_ipn&entry_id=' . $entry[ 'id' ].'&redirect_url=' . urlencode($this->return_url( $form['id'], $entry['id'])).(isset($params['target']) && $params['target'] ? '&target='.$params['target'] : '');
    753        
    754764        $this->add_sp_pre_process( $feed, $submission_data, $form, $entry );
    755765
    756766        $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form[ 'id' ], $submission_data, $feed, $entry );
    757767        $is_subscription = $feed[ 'meta' ][ 'transactionType' ] == 'subscription';
    758 
    759768        try {
    760769            $this->redirect_url = $this->SPWP->payment( $params, $engine );
     
    847856        } else {
    848857            $subscription = $this->subscribe( $feed, $submission_data, $form, $entry );
    849             $this->authorization[ 'is_authorized' ] = rgar( $subscription,'is_success' );
    850             $this->authorization[ 'error_message' ] = rgar( $subscription, 'error_message' );
    851             $this->authorization[ 'subscription' ]  = $subscription;
    852             $performed_authorization = true;
     858            if ( $subscription !== false ) {
     859                $this->authorization[ 'is_authorized' ] = rgar( $subscription,'is_success' );
     860                $this->authorization[ 'error_message' ] = rgar( $subscription, 'error_message' );
     861                $this->authorization[ 'subscription' ]  = $subscription;
     862                $performed_authorization = true;
     863            }
    853864        }
    854865
     
    892903    public function subscribe( $feed, $submission_data, $form, $entry ) {
    893904        $subscription = $this->authorize( $feed, $submission_data, $form, $entry );
     905        if ( $subscription === false ) return( false );
    894906        $subscription[ 'is_success' ] = $subscription[ 'captured_payment' ][ 'is_success' ];
    895907        $subscription[ 'subscription_id' ] = $subscription[ 'subscription_id' ];
     
    12141226        if ( $engine_field ) {
    12151227            $engine = rgpost( "input_{$engine_field[0]->id}" );
    1216             if ($engine) $args['engine'] = $engine;
     1228            if ($engine) $args[ 'engine' ] = $engine;
    12171229        }
    12181230       
     
    12401252        // Customer Information
    12411253        if (isset($submission_data['firstName'])) $args[$this->SPWP::FIRST_NAME] = $submission_data['firstName'];
    1242         if (isset($submission_data['lastName'])) $args[$this->SPWP::LAST_NAME]  = $submission_data['lastName'];
    1243         if (isset($submission_data['email'])) $args[$this->SPWP::EMAIL]     = $submission_data['email'];
     1254        if (isset($submission_data['lastName'])) $args[$this->SPWP::LAST_NAME] = $submission_data['lastName'];
     1255        if (isset($submission_data['email'])) $args[ $this->SPWP::EMAIL ] = $submission_data['email'];
     1256        if (isset($submission_data['phone'])) $args[ $this->SPWP::PHONE ] = $submission_data['phone'];
     1257        if (isset($submission_data['company'])) $args[ $this->SPWP::COMPANY ] = $submission_data['company'];
    12441258
    12451259        // Product Information
     
    13001314    }
    13011315
    1302     public function settings_json( $field, $echo = true ) {
    1303         $field['type'] = 'textarea'; //making sure type is set to textarea
     1316    /*public function settings_json( $field, $echo = true ) {
     1317        $field[ 'type' ] = 'textarea'; //making sure type is set to textarea
    13041318        $attributes    = $this->get_field_attributes( $field );
    13051319        $default_value = rgar( $field, 'value' ) ? rgar( $field, 'value' ) : rgar( $field, 'default_value' );
    1306         $value         = $this->get_setting( $field['name'], $default_value );
    1307 
    1308         $name    = '' . esc_attr( $field['name'] );
    1309         $html    = '';
    1310 
     1320        $value = $this->get_setting( $field[ 'name' ], $default_value );
     1321
     1322        $name = '' . esc_attr( $field['name'] );
     1323        $html = '';
     1324        $html .= print_r( $value, true );
    13111325        $html .= '<textarea
    13121326                name="_gaddon_setting_' . $name . '" ' .
    13131327                implode( ' ', $attributes ) .
    1314                 '>' .
    1315                 ($value ? json_encode($value) : '').
     1328                '>' . 
     1329                ( $value ? json_encode( $value ) : '' ).
    13161330                '</textarea>';
    13171331
     
    13251339
    13261340        return $html;
    1327     }
     1341    }*/
    13281342}
    13291343
  • simple-payment/trunk/addons/woocommerce-subscriptions/init.php

    r2448085 r2758807  
    4343}, 100, 2);
    4444
    45 add_filter('sp_woocommerce_supports', function($supports, $engine = null) {
     45add_filter('sp_woocommerce_supports', function( $supports, $engine = null ) {
    4646   // TODO: apply this support when it is gateway which handles the renewals: gateway_scheduled_payments
    47     return(array_merge($supports, [ 'subscription_suspension', 'subscription_cancellation', 'subscription_reactivation' ] ));
    48 }, 10, 2);
     47    return( array_merge( $supports, [ 'subscription_suspension', 'subscription_cancellation', 'subscription_reactivation' ] ));
     48}, 10, 2 );
    4949
    5050function sp_wcs_test($order_id) {
  • simple-payment/trunk/addons/woocommerce/init.php

    r2589463 r2758807  
    5959       
    6060        public function __construct() {
     61            $supports = [ 'products', 'subscriptions', 'refunds',  'default_credit_card_form' ];
     62
    6163            $this->SPWP = SimplePaymentPlugin::instance();
    62 //
    6364            $this->id = 'simple-payment';
    64             $this->icon = apply_filters('woocommerce_offline_icon', '');
    65             $engine = $this->get_option('engine') ? $this->get_option('engine') : null;
    66             $this->has_fields =  $this->SPWP->supports('cvv', $engine);
     65            $this->icon = apply_filters( 'woocommerce_offline_icon', '' );
     66            $engine = $this->get_option( 'engine' ) ? $this->get_option( 'engine' ) : null;
     67            if ( $this->SPWP->supports( 'cvv', $engine ) ) {
     68                $this->has_fields = true;
     69                //$supports[] = 'credit_card_form_cvc_on_saved_method';
     70            }
    6771            $this->method_title = __( 'Simple Payment', 'simple-payment' );
    6872            $this->method_description = __( 'Allows integration of Simple Payment gateways into woocommerce', 'simple-payment' );
    69             $this->supports =  apply_filters('sp_woocommerce_supports', [ 'products', 'tokenization', 'subscriptions', 'refunds',  'default_credit_card_form' ], $engine);
     73            if ( $this->SPWP->supports( 'cvv', $engine ) ) {
     74                $supports[] = 'tokenization';
     75            }
     76
     77            $this->supports = apply_filters( 'sp_woocommerce_supports', $supports, $engine );
    7078           
    7179            // TODO: consider taking these values from the specific engine; tokenization, subscriptions
     
    7381            // TODO: credit_card_form_cvc_on_saved_method - add this to support when CVV is not required on tokenized cards - credit_card_form_cvc_on_saved_method
    7482            // TODO: tokenization- in order to support tokinzation consider using the javascript
    75             $this->new_method_label = __('new payment method', 'simple-payment');
     83            $this->new_method_label = __( 'new payment method', 'simple-payment' );
    7684
    7785            // Load the settings.
     
    8896            add_action( 'woocommerce_thankyou_'.$this->id, array($this, 'thankyou_page'));
    8997         
    90             if (!$this->has_fields || in_array($this->get_option('display'), ['iframe', 'modal'])) add_action('woocommerce_receipt_'.$this->id, array(&$this, 'provider_step'));
     98            if ( !$this->has_fields || in_array($this->get_option('display'), ['iframe', 'modal'])) add_action( 'woocommerce_receipt_'.$this->id, array( &$this, 'provider_step' ) );
    9199            add_action( "woocommerce_api_{$this}", array( $this, 'gateway_response' ) );
    92100           
     
    105113                $this->description = ' ';
    106114            }
     115
     116            add_filter( 'woocommerce_credit_card_form_fields', [ $this, 'fields' ], 50, 2 );
    107117        }
    108118   
    109119        public function needs_setup() {
    110120            return( false );
     121        }
     122
     123        public function fields( $default_fields, $id ) {
     124            if ( $id != $this->id ) return( $fields );
     125            $fields = [
     126                'card-name-field' => '<p class="form-row form-row-first">
     127                    <label for="' . esc_attr( $this->id ) . '-card-name">' . esc_html__( 'Name on card', 'simple-payment' ) . '&nbsp;<span class="required">*</span></label>
     128                    <input id="' . esc_attr( $this->id ) . '-card-name" class="input-text wc-credit-card-form-card-name" inputmode="text" autocomplete="cc-name" autocorrect="no" autocapitalize="no" spellcheck="no" type="text" placeholder="" ' . $this->field_name
     129                    ( 'card-name' ) . ' />
     130                </p>',
     131                'card-owner-id-field' => '<p class="form-row form-row-last">
     132                    <label for="' . esc_attr( $this->id ) . '-card-owner-id">' . esc_html__( 'Card Owner ID', 'simple-payment' ) . '&nbsp;<span class="required">*</span></label>
     133                    <input id="' . esc_attr( $this->id ) . '-card-owner-id" class="input-text wc-credit-card-form-card-owner-id" inputmode="numeric" autocomplete="cc-owner-id" autocorrect="no" autocapitalize="no" spellcheck="no" type="tel" placeholder="" ' . $this->field_name( 'card-owner-id' ) . ' />
     134                </p>',
     135            ];
     136
     137            $default_fields = array_merge( $fields, $default_fields );
     138            $installments = $this->get_option( 'installments' ) == 'yes' ? $this->SPWP->param( 'installments_default' ) : false;
     139            $installments_min = $this->SPWP->param( 'installments_min' );
     140            $installments_max = $this->SPWP->param( 'installments_max' );
     141            if ( isset( $installments ) && $installments
     142                 && isset( $installments_min ) && $installments_min
     143                && isset( $installments_max ) && $installments_max && $installments_max > 1 ) {
     144                    $options = '';
     145                    for ( $installment = $installments_min; $installment <= $installments_max; $installment++ ) $options .= '<option' . selected( $installments, $installment, false ) . '>' . $installment . '</option>';
     146                    $fields = [
     147                        'card-insallments-field' => '<p class="form-row form-row-first">
     148                            <label for="' . esc_attr( $this->id ) . '-card-payments">' . esc_html__( 'Installments', 'simple-payment' ) . '</label>
     149                            <select id="' . esc_attr( $this->id ) . '-card-payments" class="input-text wc-credit-card-form-card-name" inputmode="text" autocomplete="cc-payments" autocorrect="no" autocapitalize="no" spellcheck="no" type="text" placeholder="" ' . $this->field_name
     150                            ( 'payments' ) . ' />' . $options . '</select>
     151                        </p>' ];
     152                $default_fields = array_merge( $default_fields, $fields );
     153            }
     154            return( $default_fields );
    111155        }
    112156
     
    392436        public function validate_fields() {
    393437            $ok = parent::validate_fields();
    394             if ($this->has_fields) {
     438            if ( $this->has_fields ) {
    395439                $params = $this->params($_REQUEST);
    396440                $validations = $this->SPWP->validate($params);
     
    426470            if ($this->has_fields) {
    427471                // TODO: when tokenized we do not have this value
    428                 if (isset($params[$this->id.'-card-owner-id'])) $params[$this->SPWP::CARD_OWNER_ID] = $params[$this->id.'-card-owner-id'];
    429                 if (!isset($params[$this->SPWP::CARD_OWNER])) $params[$this->SPWP::CARD_OWNER] = $params['first_name'].' '.$params['last_name'];
    430                 if (!isset($params[$this->SPWP::CARD_OWNER]) || !$params[$this->SPWP::CARD_OWNER]) $params[$this->SPWP::CARD_OWNER] = $params['billing_first_name'].' '.$params['billing_last_name'];
    431                 if (isset($params[$this->id.'-card-number'])) $params[$this->SPWP::CARD_NUMBER] = str_replace(' ', '', $params[$this->id.'-card-number']);
    432                 if (isset($params[$this->id.'-card-cvc'])) {
     472                if ( !isset( $params[$this->SPWP::CARD_OWNER])) $params[ $this->SPWP::CARD_OWNER ] = $params[ $this->id.'-card-name' ];
     473
     474                if ( isset($params[$this->id.'-card-owner-id'])) $params[$this->SPWP::CARD_OWNER_ID] = $params[$this->id.'-card-owner-id'];
     475                if ( !isset($params[$this->SPWP::CARD_OWNER])) $params[$this->SPWP::CARD_OWNER] = $params['first_name'].' '.$params['last_name'];
     476                if ( !isset($params[$this->SPWP::CARD_OWNER]) || !$params[$this->SPWP::CARD_OWNER]) $params[$this->SPWP::CARD_OWNER] = $params['billing_first_name'].' '.$params['billing_last_name'];
     477                if ( isset($params[$this->id.'-card-number'])) $params[$this->SPWP::CARD_NUMBER] = str_replace(' ', '', $params[$this->id.'-card-number']);
     478                if ( isset($params[$this->id.'-card-cvc'])) {
    433479                    $params[$this->SPWP::CARD_CVV] = $params[$this->id.'-card-cvc'];
    434480                    $expiry = $params[$this->id.'-card-expiry'];
     
    546592        }
    547593       
     594        public function field_name( $name ) {
     595            // $this->supports( 'tokenization' ) ? '' :
     596            return  ' name="' . esc_attr( $this->id . '-' . $name ) . '" ';
     597        }
     598
    548599        public function save_token( $payment_id, $user_id = 0 ) {
    549600            $transaction = $this->SPWP->fetch($payment_id);
    550             if (!$this->SPWP::supports('tokenization', $transaction['engine'])) return(null);
     601            if ( !$this->SPWP::supports( 'tokenization', $transaction[ 'engine' ] ) ) return( null );
    551602            //$token_number         = $transaction->Token;
    552603            //$token_card_type  = $this->get_card_type( $transaction );
     
    554605            //$token_expiry_month = substr( $transaction->CreditCardExpDate, 0, 2 );
    555606            //$token_expiry_year    = substr( date( 'Y' ), 0, 2 ) . substr( $transaction->CreditCardExpDate, -2 );
    556             require('payment-token.php');
     607            require( 'payment-token.php' );
    557608            $token = new WC_Payment_Token_SimplePayment();
    558609            $token->set_token( $transaction['transaction_id'] );
     
    632683            ) ) );
    633684        }
     685
     686        /*
     687        <div class="col-md-4 mb-3">
     688        <?php if (isset($installments) && $installments && isset($installments_min) && $installments_min && isset($installments_max) && $installments_max && $installments_max > 1) { ?>
     689        <label for="payments"><?php _e('Installments', 'simple-payment'); ?></label>
     690        <select class="custom-select d-block w-100 form-control" id="payments" name="<?php echo $SPWP::PAYMENTS; ?>" required="">
     691          <?php for ($installment = $installments_min; $installment <= $installments_max; $installment++) echo '<option'.selected( $installments, $installment, true).'>'.$installment.'</option>'; ?>
     692        </select>
     693        <div class="invalid-feedback">
     694          <?php _e('Number of Installments is required.', 'simple-payment'); ?>
     695        </div>
     696        <?php } ?>
     697      </div>
     698    </div>
     699    <?php if (isset($owner_id) && $owner_id) { ?>
     700    <div class="row form-row">
     701      <div class="col-md-6 mb-3">
     702        <label for="cc-card-owner-id"><?php _e('Card Owner ID', 'simple-payment'); ?></label>
     703        <input type="text" class="form-control" id="cc-card-owner-id" name="<?php echo $SPWP::CARD_OWNER_ID; ?>" placeholder="">
     704        <small class="text-muted"><?php _e('Document ID as registered with card company', 'simple-payment'); ?></small>
     705        <div class="invalid-feedback">
     706          <?php _e('Card owner Id is required or invalid.', 'simple-payment'); ?>
     707        </div>
     708      </div>
     709    </div>
     710    <?php } ?>
     711    */
    634712  }
    635713
  • simple-payment/trunk/languages/simple-payment.pot

    r2733393 r2758807  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Simple Payment 2.2.6\n"
     5"Project-Id-Version: Simple Payment 2.2.7\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-payment\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2022-05-29T09:51:34+00:00\n"
     12"POT-Creation-Date: 2022-07-19T19:10:59+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.6.0\n"
     
    1717#. Plugin Name of the plugin
    1818#: addons/elementor/widget.php:31
    19 #: addons/woocommerce/init.php:67
    20 #: addons/woocommerce/init.php:130
     19#: addons/woocommerce/init.php:71
     20#: addons/woocommerce/init.php:174
    2121#: addons/wpjobboard/config.php:8
    2222#: simple-payment-plugin.php:361
     
    7373
    7474#: addons/elementor/widget.php:97
    75 #: addons/woocommerce/init.php:179
     75#: addons/woocommerce/init.php:223
    7676#: addons/wpjobboard/config.php:34
    7777msgid "Product"
     
    9797#: addons/elementor/widget.php:123
    9898#: addons/elementor/widget.php:137
    99 #: settings.php:119
     99#: settings.php:126
    100100msgid "Bootstrap Basic"
    101101msgstr ""
     
    103103#: addons/elementor/widget.php:124
    104104#: addons/elementor/widget.php:147
    105 #: addons/gravityforms/init.php:176
     105#: addons/gravityforms/init.php:175
    106106#: addons/gravityforms/init.php:368
    107 #: addons/woocommerce/init.php:203
     107#: addons/woocommerce/init.php:247
    108108#: addons/wpjobboard/config.php:47
    109109msgid "Template"
     
    120120
    121121#: addons/elementor/widget.php:136
    122 #: settings.php:119
     122#: settings.php:126
    123123msgid "Legacy"
    124124msgstr ""
    125125
    126126#: addons/elementor/widget.php:138
    127 #: settings.php:119
     127#: settings.php:126
    128128msgid "Bootstrap"
    129129msgstr ""
     
    143143
    144144#: addons/elementor/widget.php:160
    145 #: addons/gravityforms/init.php:148
     145#: addons/gravityforms/init.php:147
    146146#: addons/gravityforms/init.php:325
    147147msgid "IFRAME"
     
    149149
    150150#: addons/elementor/widget.php:161
    151 #: addons/gravityforms/init.php:152
     151#: addons/gravityforms/init.php:151
    152152#: addons/gravityforms/init.php:329
    153153msgid "Modal"
     
    175175
    176176#: addons/elementor/widget.php:184
    177 #: settings.php:115
     177#: settings.php:122
    178178msgid "Redirect URL"
    179179msgstr ""
     
    184184
    185185#: addons/elementor/widget.php:204
    186 #: addons/gravityforms/init.php:131
     186#: addons/gravityforms/init.php:130
    187187#: addons/gravityforms/init.php:306
    188 #: addons/woocommerce/init.php:148
     188#: addons/woocommerce/init.php:192
    189189#: addons/wpjobboard/config.php:12
    190190#: admin/transaction-list-table.php:242
    191 #: settings.php:98
     191#: settings.php:105
    192192msgid "Engine"
    193193msgstr ""
     
    198198
    199199#: addons/elementor/widget.php:221
    200 #: addons/gravityforms/init.php:164
     200#: addons/gravityforms/init.php:163
    201201#: addons/gravityforms/init.php:341
    202 #: addons/woocommerce/init.php:195
     202#: addons/woocommerce/init.php:148
     203#: addons/woocommerce/init.php:239
    203204#: addons/wpjobboard/config.php:41
    204205#: templates/form-bootstrap-basic-id.php:76
     
    224225msgstr ""
    225226
    226 #: addons/gravityforms/init.php:119
     227#: addons/gravityforms/init.php:118
    227228msgid "Simple Payment is a merchant account and gateway in one. Use Gravity Forms to collect payment information and automatically integrate to your Simple Payment account. If you don't have a Simple Payment account, you can %ssign up for one here.%s"
    228229msgstr ""
    229230
    230 #: addons/gravityforms/init.php:133
     231#: addons/gravityforms/init.php:132
    231232#: addons/gravityforms/init.php:309
    232 #: addons/woocommerce/init.php:150
     233#: addons/woocommerce/init.php:194
    233234msgid "Select Payment Gateway"
    234235msgstr ""
    235236
    236 #: addons/gravityforms/init.php:133
     237#: addons/gravityforms/init.php:132
    237238#: addons/gravityforms/init.php:309
    238239msgid "If none selected it will use Simple Payment default"
    239240msgstr ""
    240241
    241 #: addons/gravityforms/init.php:139
    242 #: addons/gravityforms/init.php:141
     242#: addons/gravityforms/init.php:138
     243#: addons/gravityforms/init.php:140
    243244#: addons/gravityforms/init.php:315
    244245#: addons/gravityforms/init.php:318
    245 #: addons/woocommerce/init.php:162
    246 #: addons/woocommerce/init.php:164
     246#: addons/woocommerce/init.php:206
     247#: addons/woocommerce/init.php:208
    247248#: addons/wpjobboard/config.php:23
    248249msgid "Display Method"
    249250msgstr ""
    250251
    251 #: addons/gravityforms/init.php:141
     252#: addons/gravityforms/init.php:140
    252253#: addons/gravityforms/init.php:318
    253 #: addons/woocommerce/init.php:151
    254 #: addons/woocommerce/init.php:165
     254#: addons/woocommerce/init.php:195
     255#: addons/woocommerce/init.php:209
    255256#: addons/wpjobboard/config.php:13
    256257#: addons/wpjobboard/config.php:24
     
    258259msgstr ""
    259260
    260 #: addons/gravityforms/init.php:144
     261#: addons/gravityforms/init.php:143
    261262#: addons/gravityforms/init.php:321
    262263#: addons/wpjobboard/config.php:6
     
    264265msgstr ""
    265266
    266 #: addons/gravityforms/init.php:156
     267#: addons/gravityforms/init.php:155
    267268#: addons/gravityforms/init.php:333
    268269msgid "redirect"
    269270msgstr ""
    270271
    271 #: addons/gravityforms/init.php:166
     272#: addons/gravityforms/init.php:165
    272273#: addons/gravityforms/init.php:344
    273 #: addons/woocommerce/init.php:197
     274#: addons/woocommerce/init.php:241
    274275msgid "Enable Insallments"
    275276msgstr ""
    276277
    277 #: addons/gravityforms/init.php:166
     278#: addons/gravityforms/init.php:165
    278279#: addons/gravityforms/init.php:344
    279280msgid "Enable installments on checkout page."
    280281msgstr ""
    281282
    282 #: addons/gravityforms/init.php:179
     283#: addons/gravityforms/init.php:178
    283284#: addons/gravityforms/init.php:372
    284 #: addons/woocommerce/init.php:205
     285#: addons/woocommerce/init.php:249
    285286#: addons/wpjobboard/config.php:48
    286287msgid "Custom checkout template form"
    287288msgstr ""
    288289
    289 #: addons/gravityforms/init.php:179
     290#: addons/gravityforms/init.php:178
    290291#: addons/gravityforms/init.php:372
    291 #: addons/woocommerce/init.php:206
     292#: addons/woocommerce/init.php:250
    292293msgid "If you wish to use a custom form template."
    293294msgstr ""
    294295
    295 #: addons/gravityforms/init.php:183
     296#: addons/gravityforms/init.php:182
    296297#: addons/gravityforms/init.php:376
    297 #: addons/woocommerce/init.php:211
     298#: addons/woocommerce/init.php:255
    298299#: addons/wpjobboard/config.php:53
    299300msgid "Settings"
    300301msgstr ""
    301302
    302 #: addons/gravityforms/init.php:186
     303#: addons/gravityforms/init.php:185
    303304#: addons/gravityforms/init.php:380
    304 #: addons/woocommerce/init.php:213
     305#: addons/woocommerce/init.php:257
    305306#: addons/wpjobboard/config.php:54
    306307msgid "Custom & advanced checkout settings"
    307308msgstr ""
    308309
    309 #: addons/gravityforms/init.php:186
     310#: addons/gravityforms/init.php:185
    310311#: addons/gravityforms/init.php:380
    311 #: addons/woocommerce/init.php:214
     312#: addons/woocommerce/init.php:258
    312313msgid "Use if carefully"
    313314msgstr ""
     
    404405msgstr ""
    405406
    406 #: addons/gravityforms/init.php:940
     407#: addons/gravityforms/init.php:433
     408#: templates/form-bootstrap.php:36
     409#: templates/form-cardcom-example.php:36
     410#: templates/form-donation.php:48
     411#: templates/form-experimental.php:36
     412msgid "Phone"
     413msgstr ""
     414
     415#: addons/gravityforms/init.php:438
     416msgid "Company"
     417msgstr ""
     418
     419#: addons/gravityforms/init.php:952
    407420msgid "Payment Completed"
    408421msgstr ""
    409422
    410 #: addons/gravityforms/init.php:941
     423#: addons/gravityforms/init.php:953
    411424msgid "Payment Failed"
    412425msgstr ""
    413426
    414 #: addons/gravityforms/init.php:942
     427#: addons/gravityforms/init.php:954
    415428msgid "Subscription Created"
    416429msgstr ""
    417430
    418 #: addons/gravityforms/init.php:1335
     431#: addons/gravityforms/init.php:1349
     432#: addons/woocommerce/init.php:132
    419433#: templates/form-woocommerce.php:65
    420434msgid "Card Owner ID"
     
    429443msgstr ""
    430444
    431 #: addons/woocommerce/init.php:68
     445#: addons/woocommerce/init.php:72
    432446msgid "Allows integration of Simple Payment gateways into woocommerce"
    433447msgstr ""
    434448
    435 #: addons/woocommerce/init.php:75
     449#: addons/woocommerce/init.php:83
    436450msgid "new payment method"
    437451msgstr ""
    438452
    439 #: addons/woocommerce/init.php:121
     453#: addons/woocommerce/init.php:127
     454#: templates/form-bootstrap-basic-id.php:31
     455#: templates/form-bootstrap-basic.php:34
     456#: templates/form-bootstrap.php:147
     457#: templates/form-donation.php:159
     458#: templates/form-experimental.php:147
     459#: templates/form-legacy.php:43
     460#: templates/form-woocommerce.php:7
     461msgid "Name on card"
     462msgstr ""
     463
     464#: addons/woocommerce/init.php:165
    440465msgid "Enable/Disable"
    441466msgstr ""
    442467
    443 #: addons/woocommerce/init.php:123
     468#: addons/woocommerce/init.php:167
    444469msgid "Enable Simple Payment"
    445470msgstr ""
    446471
    447 #: addons/woocommerce/init.php:127
     472#: addons/woocommerce/init.php:171
    448473msgid "Title"
    449474msgstr ""
    450475
    451 #: addons/woocommerce/init.php:129
     476#: addons/woocommerce/init.php:173
    452477msgid "This controls the title for the payment method the customer sees during checkout."
    453478msgstr ""
    454479
    455 #: addons/woocommerce/init.php:134
     480#: addons/woocommerce/init.php:178
    456481msgid "Description"
    457482msgstr ""
    458483
    459 #: addons/woocommerce/init.php:136
     484#: addons/woocommerce/init.php:180
    460485msgid "Payment method description that the customer will see on your checkout."
    461486msgstr ""
    462487
    463 #: addons/woocommerce/init.php:137
     488#: addons/woocommerce/init.php:181
    464489msgid "Please remit payment to Store Name upon pickup or delivery."
    465490msgstr ""
    466491
    467 #: addons/woocommerce/init.php:141
     492#: addons/woocommerce/init.php:185
    468493msgid "Instructions"
    469494msgstr ""
    470495
    471 #: addons/woocommerce/init.php:143
     496#: addons/woocommerce/init.php:187
    472497msgid "Instructions that will be added to the thank you page and emails."
    473498msgstr ""
    474499
    475 #: addons/woocommerce/init.php:171
     500#: addons/woocommerce/init.php:215
    476501msgid "Show in Checkout"
    477502msgstr ""
    478503
    479 #: addons/woocommerce/init.php:173
     504#: addons/woocommerce/init.php:217
    480505msgid "Show in Modal or IFRAME in Checkout page, instead of Order Review"
    481506msgstr ""
    482507
    483 #: addons/woocommerce/init.php:175
     508#: addons/woocommerce/init.php:219
    484509msgid "For Modal & IFRAME Only, If none selected it will use Simple Payment default."
    485510msgstr ""
    486511
    487 #: addons/woocommerce/init.php:181
     512#: addons/woocommerce/init.php:225
    488513msgid "Custom product name to use in Simple Payment"
    489514msgstr ""
    490515
    491 #: addons/woocommerce/init.php:182
     516#: addons/woocommerce/init.php:226
    492517msgid "Simple Payment globalize the purchase to single product on the Payment Gateway."
    493518msgstr ""
    494519
    495 #: addons/woocommerce/init.php:183
     520#: addons/woocommerce/init.php:227
    496521msgid "WooCommerce Order %s"
    497522msgstr ""
    498523
    499 #: addons/woocommerce/init.php:187
     524#: addons/woocommerce/init.php:231
    500525msgid "Single Item Orders"
    501526msgstr ""
    502527
    503 #: addons/woocommerce/init.php:189
     528#: addons/woocommerce/init.php:233
    504529msgid "Single Item Order use as Product Name"
    505530msgstr ""
    506531
    507 #: addons/woocommerce/init.php:191
     532#: addons/woocommerce/init.php:235
    508533msgid "When order has a single item use item name as product name"
    509534msgstr ""
    510535
    511 #: addons/woocommerce/init.php:199
     536#: addons/woocommerce/init.php:243
    512537#: addons/wpjobboard/config.php:42
    513538msgid "Enable installments on checkout page"
    514539msgstr ""
    515540
    516 #: addons/woocommerce/init.php:398
     541#: addons/woocommerce/init.php:442
    517542msgid "Payment error: %s"
    518543msgstr ""
    519544
    520 #: addons/woocommerce/init.php:526
     545#: addons/woocommerce/init.php:572
    521546msgid "Payment error: "
    522547msgstr ""
    523548
    524 #: addons/woocommerce/init.php:605
     549#: addons/woocommerce/init.php:656
    525550msgid "Pay for order"
    526551msgstr ""
    527552
    528 #: addons/woocommerce/init.php:629
     553#: addons/woocommerce/init.php:680
    529554msgid "Visa"
    530555msgstr ""
    531556
    532 #: addons/woocommerce/init.php:630
     557#: addons/woocommerce/init.php:681
    533558msgid "Mastercard"
    534559msgstr ""
    535560
    536 #: addons/woocommerce/init.php:631
     561#: addons/woocommerce/init.php:682
    537562msgid "American Express"
    538563msgstr ""
     
    742767#: admin/transaction-list-table.php:160
    743768#: admin/transaction-list-table.php:181
    744 #: settings.php:148
     769#: settings.php:155
    745770msgid "Archive"
    746771msgstr ""
     
    806831
    807832#: admin/transaction-list-table.php:253
    808 #: settings.php:104
     833#: settings.php:111
    809834msgid "Sandbox"
    810835msgstr ""
     
    852877
    853878#: settings.php:6
    854 #: settings.php:372
     879#: settings.php:379
    855880msgid "Invoice"
    856881msgstr ""
     
    865890
    866891#: settings.php:6
    867 #: settings.php:372
     892#: settings.php:379
    868893msgid "Receipt"
    869894msgstr ""
     
    10051030msgstr ""
    10061031
    1007 #: settings.php:85
     1032#: settings.php:86
     1033msgid "Meshulam Gateway Settings"
     1034msgstr ""
     1035
     1036#: settings.php:87
     1037msgid "Setup your Simple Payment to accept Meshulam Payments"
     1038msgstr ""
     1039
     1040#: settings.php:92
    10081041msgid "CreditGuard Gateway Settings"
    10091042msgstr ""
    10101043
    1011 #: settings.php:86
     1044#: settings.php:93
    10121045msgid "Setup your Simple Payment to accept CreditGuard Payments"
    10131046msgstr ""
    10141047
    1015 #: settings.php:90
     1048#: settings.php:97
    10161049msgid "Credit 2000 Gateway Settings"
    10171050msgstr ""
    10181051
    1019 #: settings.php:91
     1052#: settings.php:98
    10201053msgid "Setup your Simple Payment to accept Credit 2000 Payments"
    10211054msgstr ""
    10221055
    1023 #: settings.php:100
     1056#: settings.php:107
    10241057#: templates/form-bootstrap.php:142
    10251058#: templates/form-donation.php:154
     
    10291062msgstr ""
    10301063
    1031 #: settings.php:100
     1064#: settings.php:107
    10321065msgid "Cardcom"
    10331066msgstr ""
    10341067
    1035 #: settings.php:100
     1068#: settings.php:107
    10361069msgid "iCount"
    10371070msgstr ""
    10381071
    1039 #: settings.php:100
     1072#: settings.php:107
    10401073msgid "PayMe"
    10411074msgstr ""
    10421075
    1043 #: settings.php:100
     1076#: settings.php:107
    10441077msgid "iCredit"
    10451078msgstr ""
    10461079
    1047 #: settings.php:100
     1080#: settings.php:107
    10481081msgid "CreditGuard"
    10491082msgstr ""
    10501083
    1051 #: settings.php:100
     1084#: settings.php:107
     1085msgid "Meshulam"
     1086msgstr ""
     1087
     1088#: settings.php:107
    10521089msgid "Credit2000"
    10531090msgstr ""
    10541091
    1055 #: settings.php:100
     1092#: settings.php:107
    10561093msgid "Custom"
    10571094msgstr ""
    10581095
    1059 #: settings.php:102
     1096#: settings.php:109
    10601097msgid "Mode"
    10611098msgstr ""
    10621099
    1063 #: settings.php:104
     1100#: settings.php:111
    10641101msgid "Live"
    10651102msgstr ""
    10661103
    1067 #: settings.php:106
     1104#: settings.php:113
    10681105msgid "Currency"
    10691106msgstr ""
    10701107
    1071 #: settings.php:110
     1108#: settings.php:117
    10721109#: simple-payment-plugin.php:321
    10731110#: simple-payment-plugin.php:354
     
    10751112msgstr ""
    10761113
    1077 #: settings.php:113
     1114#: settings.php:120
    10781115msgid "Callback URL"
    10791116msgstr ""
    10801117
    1081 #: settings.php:117
     1118#: settings.php:124
    10821119msgid "Form Template"
    10831120msgstr ""
    10841121
    1085 #: settings.php:119
     1122#: settings.php:126
    10861123msgid "Experimental"
    10871124msgstr ""
    10881125
    1089 #: settings.php:121
     1126#: settings.php:128
    10901127msgid "Create Wordpress User"
    10911128msgstr ""
    10921129
    1093 #: settings.php:123
     1130#: settings.php:130
    10941131msgid "No Creation"
    10951132msgstr ""
    10961133
    1097 #: settings.php:123
     1134#: settings.php:130
    10981135msgid "Silent Creation"
    10991136msgstr ""
    11001137
    1101 #: settings.php:123
     1138#: settings.php:130
    11021139msgid "Registration"
    11031140msgstr ""
    11041141
    1105 #: settings.php:125
     1142#: settings.php:132
    11061143msgid "Create User Upon"
    11071144msgstr ""
    11081145
    1109 #: settings.php:127
     1146#: settings.php:134
    11101147msgid "Preprocessing"
    11111148msgstr ""
    11121149
    1113 #: settings.php:127
     1150#: settings.php:134
    11141151msgid "Post processing"
    11151152msgstr ""
    11161153
    1117 #: settings.php:130
     1154#: settings.php:137
    11181155msgid "Cron Schedule"
    11191156msgstr ""
    11201157
    1121 #: settings.php:132
     1158#: settings.php:139
    11221159msgid "Minute"
    11231160msgstr ""
    11241161
    1125 #: settings.php:132
    1126 #: settings.php:137
    1127 #: settings.php:143
     1162#: settings.php:139
     1163#: settings.php:144
     1164#: settings.php:150
    11281165msgid "10 Min"
    11291166msgstr ""
    11301167
    1131 #: settings.php:132
    1132 #: settings.php:137
    1133 #: settings.php:143
     1168#: settings.php:139
     1169#: settings.php:144
     1170#: settings.php:150
    11341171msgid "30 Min"
    11351172msgstr ""
    11361173
    1137 #: settings.php:132
    1138 #: settings.php:137
    1139 #: settings.php:143
     1174#: settings.php:139
     1175#: settings.php:144
     1176#: settings.php:150
    11401177msgid "1 Hour"
    11411178msgstr ""
    11421179
    1143 #: settings.php:132
    1144 #: settings.php:137
    1145 #: settings.php:143
     1180#: settings.php:139
     1181#: settings.php:144
     1182#: settings.php:150
    11461183msgid "12 Hours"
    11471184msgstr ""
    11481185
    1149 #: settings.php:132
    1150 #: settings.php:137
    1151 #: settings.php:143
     1186#: settings.php:139
     1187#: settings.php:144
     1188#: settings.php:150
    11521189msgid "1 Day"
    11531190msgstr ""
    11541191
    1155 #: settings.php:132
    1156 #: settings.php:137
    1157 #: settings.php:143
     1192#: settings.php:139
     1193#: settings.php:144
     1194#: settings.php:150
    11581195msgid "3 Days"
    11591196msgstr ""
    11601197
    1161 #: settings.php:132
    1162 #: settings.php:137
    1163 #: settings.php:143
     1198#: settings.php:139
     1199#: settings.php:144
     1200#: settings.php:150
    11641201msgid "7 Days"
    11651202msgstr ""
    11661203
    1167 #: settings.php:132
    1168 #: settings.php:137
    1169 #: settings.php:143
     1204#: settings.php:139
     1205#: settings.php:144
     1206#: settings.php:150
    11701207msgid "30 Days"
    11711208msgstr ""
    11721209
    1173 #: settings.php:135
     1210#: settings.php:142
    11741211msgid "Auto Transaction Verification"
    11751212msgstr ""
    11761213
    1177 #: settings.php:141
     1214#: settings.php:148
    11781215msgid "Fail Pending Transaction"
    11791216msgstr ""
    11801217
    1181 #: settings.php:146
     1218#: settings.php:153
    11821219msgid "Purge Transactions"
    11831220msgstr ""
    11841221
    1185 #: settings.php:148
    1186 #: settings.php:319
    1187 #: settings.php:396
     1222#: settings.php:155
     1223#: settings.php:326
     1224#: settings.php:403
    11881225msgid "Disabled"
    11891226msgstr ""
    11901227
    1191 #: settings.php:148
     1228#: settings.php:155
    11921229msgid "Purge"
    11931230msgstr ""
    11941231
    1195 #: settings.php:148
     1232#: settings.php:155
    11961233msgid "Archive & Purge"
    11971234msgstr ""
    11981235
    1199 #: settings.php:150
     1236#: settings.php:157
    12001237msgid "Purge Period (days)"
    12011238msgstr ""
    12021239
    1203 #: settings.php:153
    1204 #: settings.php:293
     1240#: settings.php:160
     1241#: settings.php:300
    12051242msgid "CSS"
    12061243msgstr ""
    12071244
    1208 #: settings.php:157
     1245#: settings.php:164
    12091246msgid "Upon Uninstall"
    12101247msgstr ""
    12111248
    1212 #: settings.php:161
     1249#: settings.php:168
    12131250msgid "Keep Database & Settings"
    12141251msgstr ""
    12151252
    1216 #: settings.php:161
     1253#: settings.php:168
    12171254msgid "Erase Settings"
    12181255msgstr ""
    12191256
    1220 #: settings.php:161
     1257#: settings.php:168
    12211258msgid "Erase Database"
    12221259msgstr ""
    12231260
    1224 #: settings.php:161
     1261#: settings.php:168
    12251262msgid "Erase All Database & Settings"
    12261263msgstr ""
    12271264
    1228 #: settings.php:164
     1265#: settings.php:171
    12291266msgid "Min # of Payments"
    12301267msgstr ""
    12311268
    1232 #: settings.php:170
     1269#: settings.php:177
    12331270msgid "Max # of Payments"
    12341271msgstr ""
    12351272
    1236 #: settings.php:176
     1273#: settings.php:183
    12371274msgid "Default # of Payments"
    12381275msgstr ""
    12391276
    1240 #: settings.php:183
     1277#: settings.php:190
    12411278msgid "Client ID"
    12421279msgstr ""
    12431280
    1244 #: settings.php:186
     1281#: settings.php:193
    12451282msgid "Client Secret"
    12461283msgstr ""
    12471284
    1248 #: settings.php:190
     1285#: settings.php:197
    12491286msgid "Business"
    12501287msgstr ""
    12511288
    1252 #: settings.php:193
     1289#: settings.php:200
    12531290msgid "Hosted Button ID"
    12541291msgstr ""
    12551292
    1256 #: settings.php:197
     1293#: settings.php:204
    12571294msgid "Terminal ID"
    12581295msgstr ""
    12591296
    1260 #: settings.php:201
    1261 #: settings.php:356
    1262 #: settings.php:487
     1297#: settings.php:208
     1298#: settings.php:363
     1299#: settings.php:528
    12631300msgid "Username"
    12641301msgstr ""
    12651302
    1266 #: settings.php:205
     1303#: settings.php:212
    12671304msgid "API Password"
    12681305msgstr ""
    12691306
    1270 #: settings.php:210
    1271 #: settings.php:441
    1272 #: settings.php:456
     1307#: settings.php:217
     1308#: settings.php:482
     1309#: settings.php:497
     1310#: settings.php:588
     1311msgid "Operation"
     1312msgstr ""
     1313
     1314#: settings.php:223
     1315#: settings.php:576
     1316msgid "Force Language Interface"
     1317msgstr ""
     1318
     1319#: settings.php:230
     1320msgid "Credit Type"
     1321msgstr ""
     1322
     1323#: settings.php:238
     1324msgid "Name field settings"
     1325msgstr ""
     1326
     1327#: settings.php:244
     1328msgid "Phone field settings"
     1329msgstr ""
     1330
     1331#: settings.php:250
     1332msgid "Email field settings"
     1333msgstr ""
     1334
     1335#: settings.php:256
     1336msgid "Hide Credit Card User ID"
     1337msgstr ""
     1338
     1339#: settings.php:261
     1340msgid "Invoice Processing"
     1341msgstr ""
     1342
     1343#: settings.php:268
     1344#: settings.php:377
     1345msgid "Document Type Upon Success"
     1346msgstr ""
     1347
     1348#: settings.php:276
     1349msgid "Auto Create/Update Account"
     1350msgstr ""
     1351
     1352#: settings.php:281
     1353msgid "Load Account Info to Invoice"
     1354msgstr ""
     1355
     1356#: settings.php:287
     1357msgid "Information to print on document"
     1358msgstr ""
     1359
     1360#: settings.php:295
     1361msgid "Show Invoice Information"
     1362msgstr ""
     1363
     1364#: settings.php:306
     1365msgid "Prices Globally VAT Free"
     1366msgstr ""
     1367
     1368#: settings.php:311
     1369msgid "Email Invoice to Client"
     1370msgstr ""
     1371
     1372#: settings.php:316
     1373msgid "Department ID"
     1374msgstr ""
     1375
     1376#: settings.php:318
     1377msgid "Numeric ID"
     1378msgstr ""
     1379
     1380#: settings.php:323
     1381#: settings.php:400
     1382msgid "Enable Recurring (Direct Debit) Payments"
     1383msgstr ""
     1384
     1385#: settings.php:326
     1386#: settings.php:403
     1387msgid "Provider"
     1388msgstr ""
     1389
     1390#: settings.php:330
     1391msgid "Process Recurring Upon"
     1392msgstr ""
     1393
     1394#: settings.php:333
     1395msgid "Post Process"
     1396msgstr ""
     1397
     1398#: settings.php:333
     1399msgid "Status Process"
     1400msgstr ""
     1401
     1402#: settings.php:337
     1403msgid "Direct Debit Terminal"
     1404msgstr ""
     1405
     1406#: settings.php:342
     1407msgid "Direct Debit Operation"
     1408msgstr ""
     1409
     1410#: settings.php:349
     1411msgid "Repeated Recurring"
     1412msgstr ""
     1413
     1414#: settings.php:354
     1415msgid "Recurring Interval ID"
     1416msgstr ""
     1417
     1418#: settings.php:359
     1419msgid "Business ID"
     1420msgstr ""
     1421
     1422#: settings.php:367
    12731423#: settings.php:532
    1274 msgid "Operation"
    1275 msgstr ""
    1276 
    1277 #: settings.php:216
    1278 #: settings.php:520
    1279 msgid "Force Language Interface"
    1280 msgstr ""
    1281 
    1282 #: settings.php:223
    1283 msgid "Credit Type"
    1284 msgstr ""
    1285 
    1286 #: settings.php:231
    1287 msgid "Name field settings"
    1288 msgstr ""
    1289 
    1290 #: settings.php:237
    1291 msgid "Phone field settings"
    1292 msgstr ""
    1293 
    1294 #: settings.php:243
    1295 msgid "Email field settings"
    1296 msgstr ""
    1297 
    1298 #: settings.php:249
    1299 msgid "Hide Credit Card User ID"
    1300 msgstr ""
    1301 
    1302 #: settings.php:254
    1303 msgid "Invoice Processing"
    1304 msgstr ""
    1305 
    1306 #: settings.php:261
    1307 #: settings.php:370
    1308 msgid "Document Type Upon Success"
    1309 msgstr ""
    1310 
    1311 #: settings.php:269
    1312 msgid "Auto Create/Update Account"
    1313 msgstr ""
    1314 
    1315 #: settings.php:274
    1316 msgid "Load Account Info to Invoice"
    1317 msgstr ""
    1318 
    1319 #: settings.php:280
    1320 msgid "Information to print on document"
    1321 msgstr ""
    1322 
    1323 #: settings.php:288
    1324 msgid "Show Invoice Information"
    1325 msgstr ""
    1326 
    1327 #: settings.php:299
    1328 msgid "Prices Globally VAT Free"
    1329 msgstr ""
    1330 
    1331 #: settings.php:304
    1332 msgid "Email Invoice to Client"
    1333 msgstr ""
    1334 
    1335 #: settings.php:309
    1336 msgid "Department ID"
    1337 msgstr ""
    1338 
    1339 #: settings.php:311
    1340 msgid "Numeric ID"
    1341 msgstr ""
    1342 
    1343 #: settings.php:316
    1344 #: settings.php:393
    1345 msgid "Enable Recurring (Direct Debit) Payments"
    1346 msgstr ""
    1347 
    1348 #: settings.php:319
    1349 #: settings.php:396
    1350 msgid "Provider"
    1351 msgstr ""
    1352 
    1353 #: settings.php:323
    1354 msgid "Process Recurring Upon"
    1355 msgstr ""
    1356 
    1357 #: settings.php:326
    1358 msgid "Post Process"
    1359 msgstr ""
    1360 
    1361 #: settings.php:326
    1362 msgid "Status Process"
    1363 msgstr ""
    1364 
    1365 #: settings.php:330
    1366 msgid "Direct Debit Terminal"
    1367 msgstr ""
    1368 
    1369 #: settings.php:335
    1370 msgid "Direct Debit Operation"
    1371 msgstr ""
    1372 
    1373 #: settings.php:342
    1374 msgid "Repeated Recurring"
    1375 msgstr ""
    1376 
    1377 #: settings.php:347
    1378 msgid "Recurring Interval ID"
    1379 msgstr ""
    1380 
    1381 #: settings.php:352
    1382 msgid "Business ID"
    1383 msgstr ""
    1384 
    1385 #: settings.php:360
    1386 #: settings.php:491
    13871424msgid "Password"
    13881425msgstr ""
    13891426
    1390 #: settings.php:365
     1427#: settings.php:372
    13911428msgid "Use CC Storage"
    13921429msgstr ""
    13931430
    1394 #: settings.php:372
    1395 #: settings.php:378
     1431#: settings.php:379
     1432#: settings.php:385
    13961433msgid "None"
    13971434msgstr ""
    13981435
    1399 #: settings.php:372
     1436#: settings.php:379
    14001437msgid "Invoice / Receipt"
    14011438msgstr ""
    14021439
    1403 #: settings.php:372
     1440#: settings.php:379
    14041441msgid "Deal"
    14051442msgstr ""
    14061443
    1407 #: settings.php:372
     1444#: settings.php:379
    14081445msgid "Offer"
    14091446msgstr ""
    14101447
    1411 #: settings.php:372
     1448#: settings.php:379
    14121449msgid "Order"
    14131450msgstr ""
    14141451
    1415 #: settings.php:376
     1452#: settings.php:383
    14161453msgid "Document VAT Type"
    14171454msgstr ""
    14181455
    1419 #: settings.php:378
     1456#: settings.php:385
    14201457msgid "Included"
    14211458msgstr ""
    14221459
    1423 #: settings.php:378
     1460#: settings.php:385
    14241461msgid "Exempt"
    14251462msgstr ""
    14261463
    1427 #: settings.php:382
     1464#: settings.php:389
    14281465msgid "Auto invoice on installments"
    14291466msgstr ""
    14301467
    1431 #: settings.php:387
     1468#: settings.php:394
    14321469msgid "Email Document to Client"
    14331470msgstr ""
    14341471
    1435 #: settings.php:400
     1472#: settings.php:407
    14361473msgid "Seller ID"
    14371474msgstr ""
    14381475
    1439 #: settings.php:405
     1476#: settings.php:412
    14401477msgid "Client Key"
    14411478msgstr ""
    14421479
    1443 #: settings.php:410
     1480#: settings.php:417
    14441481msgid "Merchant Secret"
    14451482msgstr ""
    14461483
    1447 #: settings.php:415
     1484#: settings.php:422
    14481485msgid "Notify Client"
    14491486msgstr ""
    14501487
    1451 #: settings.php:421
     1488#: settings.php:428
     1489msgid "User ID"
     1490msgstr ""
     1491
     1492#: settings.php:433
     1493msgid "Page Code (CC)"
     1494msgstr ""
     1495
     1496#: settings.php:438
     1497msgid "Page Code (Subscriptions)"
     1498msgstr ""
     1499
     1500#: settings.php:443
     1501msgid "Page Code (bit)"
     1502msgstr ""
     1503
     1504#: settings.php:448
     1505#: settings.php:612
     1506msgid "API KEY"
     1507msgstr ""
     1508
     1509#: settings.php:452
     1510msgid "Tokenize"
     1511msgstr ""
     1512
     1513#: settings.php:457
     1514msgid "Commission"
     1515msgstr ""
     1516
     1517#: settings.php:462
    14521518msgid "Payment Token"
    14531519msgstr ""
    14541520
    1455 #: settings.php:426
    1456 #: settings.php:527
     1521#: settings.php:467
     1522#: settings.php:583
    14571523msgid "Create Tokens"
    14581524msgstr ""
    14591525
    1460 #: settings.php:431
     1526#: settings.php:472
    14611527msgid "Token Box"
    14621528msgstr ""
    14631529
    1464 #: settings.php:435
     1530#: settings.php:476
    14651531msgid "Apply Credit Above Payments"
    14661532msgstr ""
    14671533
    1468 #: settings.php:447
     1534#: settings.php:488
    14691535msgid "VAT Free"
    14701536msgstr ""
    14711537
    1472 #: settings.php:452
     1538#: settings.php:493
    14731539msgid "Company Name"
    14741540msgstr ""
    14751541
    1476 #: settings.php:462
     1542#: settings.php:503
    14771543msgid "Vendor Name"
    14781544msgstr ""
    14791545
    1480 #: settings.php:466
     1546#: settings.php:507
    14811547msgid "Company Key"
    14821548msgstr ""
    14831549
    1484 #: settings.php:472
     1550#: settings.php:513
    14851551msgid "Company Logo"
    14861552msgstr ""
    14871553
    1488 #: settings.php:476
     1554#: settings.php:517
    14891555msgid "Use CVV"
    14901556msgstr ""
    14911557
    1492 #: settings.php:483
     1558#: settings.php:524
    14931559msgid "Gateway URL"
    14941560msgstr ""
    14951561
    1496 #: settings.php:496
     1562#: settings.php:537
    14971563msgid "Terminal"
    14981564msgstr ""
    14991565
    1500 #: settings.php:500
     1566#: settings.php:541
    15011567msgid "Merchant ID"
    15021568msgstr ""
    15031569
    1504 #: settings.php:504
     1570#: settings.php:545
    15051571msgid "Supplier ID"
    15061572msgstr ""
    15071573
    1508 #: settings.php:508
     1574#: settings.php:549
    15091575msgid "Integration Mode"
    15101576msgstr ""
    15111577
    1512 #: settings.php:515
     1578#: settings.php:556
    15131579msgid "Check May Be Duplicate"
    15141580msgstr ""
    15151581
    1516 #: settings.php:538
     1582#: settings.php:561
     1583msgid "Use CVV on Payment Page"
     1584msgstr ""
     1585
     1586#: settings.php:566
     1587msgid "Use Personal ID on Payment Page"
     1588msgstr ""
     1589
     1590#: settings.php:571
     1591msgid "Use frameAncestorURLs Protection"
     1592msgstr ""
     1593
     1594#: settings.php:594
    15171595msgid "Validation"
    15181596msgstr ""
    15191597
    1520 #: settings.php:546
    1521 msgid "API KEY"
     1598#: settings.php:600
     1599msgid "Custom CSS"
     1600msgstr ""
     1601
     1602#: settings.php:605
     1603msgid "Custom Texts ( JSON )"
    15221604msgstr ""
    15231605
     
    16391721#: templates/form-legacy.php:34
    16401722msgid "Debit card"
    1641 msgstr ""
    1642 
    1643 #: templates/form-bootstrap-basic-id.php:31
    1644 #: templates/form-bootstrap-basic.php:34
    1645 #: templates/form-bootstrap.php:147
    1646 #: templates/form-donation.php:159
    1647 #: templates/form-experimental.php:147
    1648 #: templates/form-legacy.php:43
    1649 #: templates/form-woocommerce.php:7
    1650 msgid "Name on card"
    16511723msgstr ""
    16521724
     
    17921864msgstr ""
    17931865
    1794 #: templates/form-bootstrap.php:36
    1795 #: templates/form-cardcom-example.php:36
    1796 #: templates/form-donation.php:48
    1797 #: templates/form-experimental.php:36
    1798 msgid "Phone"
    1799 msgstr ""
    1800 
    18011866#: templates/form-bootstrap.php:39
    18021867#: templates/form-cardcom-example.php:39
  • simple-payment/trunk/readme.txt

    r2733393 r2758807  
    55Requires at least: 4.6
    66Tested up to: 6.0
    7 Stable tag: 2.2.7
     7Stable tag: 2.2.8
    88Requires PHP: 5.4
    99License: GPLv2 or later
  • simple-payment/trunk/settings.php

    r2724151 r2758807  
    8282    'section' => 'icredit'
    8383  ],
     84
     85  'meshulam_settings' => [
     86    'title' => __( 'Meshulam Gateway Settings', 'simple-payment' ),
     87    'description' => __( 'Setup your Simple Payment to accept Meshulam Payments', 'simple-payment' ),
     88    'section' => 'meshulam'
     89  ],
     90
    8491  'creditguard_settings' => [
    8592    'title' => __('CreditGuard Gateway Settings', 'simple-payment'),
     
    98105    'title' => __('Engine', 'simple-payment'),
    99106    'type' => 'select',
    100     'options' => ['PayPal' => __('PayPal', 'simple-payment'), 'Cardcom' => __('Cardcom', 'simple-payment'), 'iCount' => __('iCount', 'simple-payment'), 'PayMe' => __('PayMe', 'simple-payment'), 'iCredit' => __('iCredit', 'simple-payment'), 'CreditGuard' => __( 'CreditGuard', 'simple-payment' ), 'Credit2000' => __('Credit2000', 'simple-payment'), 'Custom' => __('Custom', 'simple-payment')]],
     107    'options' => ['PayPal' => __('PayPal', 'simple-payment'), 'Cardcom' => __('Cardcom', 'simple-payment'), 'iCount' => __('iCount', 'simple-payment'), 'PayMe' => __('PayMe', 'simple-payment'), 'iCredit' => __('iCredit', 'simple-payment'), 'CreditGuard' => __( 'CreditGuard', 'simple-payment' ), 'Meshulam' => __( 'Meshulam', 'simple-payment' ), 'Credit2000' => __('Credit2000', 'simple-payment'), 'Custom' => __('Custom', 'simple-payment')]],
    101108  'mode' => [ //Mode
    102109    'title' => __('Mode', 'simple-payment'),
     
    151158    ],
    152159    'css' => [
    153     'title' => __('CSS', 'simple-payment'),
     160    'title' => __( 'CSS', 'simple-payment' ),
    154161    'type' => 'textarea'
    155162  ],
     
    418425  ],
    419426
     427  'meshulam.username' => [
     428    'title' => __( 'User ID', 'simple-payment' ),
     429    'section' => 'meshulam_settings',
     430    'type' => 'text'
     431  ],
     432  'meshulam.password' => [
     433    'title' => __( 'Page Code (CC)', 'simple-payment' ),
     434    'section' => 'meshulam_settings',
     435    'type' => 'password'
     436  ],
     437  'meshulam.subscriptions' => [
     438    'title' => __( 'Page Code (Subscriptions)', 'simple-payment' ),
     439    'section' => 'meshulam_settings',
     440    'type' => 'password'
     441  ],
     442  'meshulam.bit' => [
     443    'title' => __( 'Page Code (bit)', 'simple-payment' ),
     444    'section' => 'meshulam_settings',
     445    'type' => 'password'
     446  ],
     447  'meshulam.apikey' => [
     448    'title' => __( 'API KEY', 'simple-payment' ),
     449    'section' => 'meshulam_settings',
     450  ],
     451  'meshulam.tokenize' => [
     452    'title' => __( 'Tokenize', 'simple-payment' ),
     453    'section' => 'meshulam_settings',
     454    'type' => 'check'
     455  ],
     456  'meshulam.commision' => [
     457    'title' => __( 'Commission', 'simple-payment' ),
     458    'section' => 'meshulam_settings',
     459  ],
     460
    420461  'icredit.password' => [
    421     'title' => __('Payment Token', 'simple-payment'),
     462    'title' => __( 'Payment Token', 'simple-payment'),
    422463    'section' => 'icredit_settings',
    423464    'type' => 'password'
     
    517558    'section' => 'creditguard_settings'
    518559  ],
     560  'creditguard.usecvv' => [
     561    'title' => __( 'Use CVV on Payment Page', 'simple-payment'),
     562    'type' => 'check',
     563    'section' => 'creditguard_settings'
     564  ],
     565  'creditguard.useid' => [
     566    'title' => __( 'Use Personal ID on Payment Page', 'simple-payment'),
     567    'type' => 'check',
     568    'section' => 'creditguard_settings'
     569  ],
     570  'creditguard.urls' => [
     571    'title' => __( 'Use frameAncestorURLs Protection', 'simple-payment'),
     572    'type' => 'check',
     573    'section' => 'creditguard_settings'
     574  ],
    519575  'creditguard.language' => [ // Language
    520576    'title' => __( 'Force Language Interface', 'simple-payment' ),
     
    541597    'options' => [ 'NoComm' => 'NoComm', 'Normal' => 'Normal', 'CreditLimit' => 'CreditLimit', 'AutoComm' => 'AutoComm', 'Verify' => 'Verify', 'Dealer' => 'Dealer', 'AutoCommHold' => 'AutoCommHold', 'Token' => 'Token', 'AutoCommRelease' => 'AutoCommRelease', 'cardNo' => 'cardNo' ], 
    542598  ],
    543 
     599  'creditguard.css' => [
     600    'title' => __( 'Custom CSS', 'simple-payment' ),
     601    'section' => 'creditguard_settings',
     602    'type' => 'textarea'
     603  ],
     604  'creditguard.texts' => [
     605    'title' => __( 'Custom Texts ( JSON )', 'simple-payment' ),
     606    'section' => 'creditguard_settings',
     607    'type' => 'textarea'
     608  ],
     609 
    544610
    545611  'api_key' => [
  • simple-payment/trunk/simple-payment-plugin.php

    r2733393 r2758807  
    44 * Plugin URI: https://simple-payment.yalla-ya.com
    55 * Description: Simple Payment enables integration with multiple payment gateways, and customize multiple payment forms.
    6  * Version: 2.2.7
     6 * Version: 2.2.8
    77 * Author: Ido Kobelkowsky / yalla ya!
    88 * Author URI: https://github.com/idokd
     
    4545
    4646  public static $table_name = 'sp_transactions';
    47   public static $engines = [ 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'iCredit', 'CreditGuard', 'Credit2000', 'Custom' ];
     47  public static $engines = [ 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'iCredit', 'CreditGuard', 'Meshulam', 'Credit2000', 'Custom' ];
    4848
    4949  public static $fields = [ 'payment_id', 'transaction_id', 'target', 'type', 'callback', 'display', 'concept', 'redirect_url', 'source', 'source_id', self::ENGINE, self::AMOUNT, self::PRODUCT, self::PRODUCT_CODE, self::PRODUCTS, self::METHOD, self::FULL_NAME, self::FIRST_NAME, self::LAST_NAME, self::PHONE, self::MOBILE, self::ADDRESS, self::ADDRESS2, self::EMAIL, self::COUNTRY, self::STATE, self::ZIPCODE, self::PAYMENTS, self::INSTALLMENTS, self::CARD_CVV, self::CARD_EXPIRY_MONTH, self::CARD_EXPIRY_YEAR, self::CARD_NUMBER, self::CURRENCY, self::COMMENT, self::CITY, self::COMPANY, self::TAX_ID, self::CARD_OWNER, self::CARD_OWNER_ID, self::LANGUAGE ];
     
    7979  public function __construct( $params = [] ) {
    8080    $option = get_option( 'sp' ) ? : [];
    81     parent::__construct( array_merge( array_merge( $this->defaults, $params ), $option ) );
     81    parent::__construct( apply_filters( 'sp_settings', array_merge( array_merge( $this->defaults, $params ), $option ) ) );
    8282    self::$license = get_option( 'sp_license' );
    8383    $plugin = get_file_data( __FILE__, array( 'Version' => 'Version' ), false );
     
    400400    $tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'sp';
    401401    $section = $tab;
    402     $tabs = apply_filters( 'sp_admin_tabs', [ 'General', 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'iCredit', 'CreditGuard', 'Credit2000', 'License', 'Extensions', 'Shortcode', 'Instructions' ] );
     402    $tabs = apply_filters( 'sp_admin_tabs', [ 'General', 'PayPal', 'Cardcom', 'iCount', 'PayMe', 'Meshulam', 'iCredit', 'CreditGuard', 'Credit2000', 'License', 'Extensions', 'Shortcode', 'Instructions' ] );
    403403    ?>
    404404    <div class="wrap">
     
    787787 
    788788  public static function supports($feature, $engine = null) {
    789     return(parent::supports( $feature, $engine ? : self::param( 'engine' ) ) );
     789    return( parent::supports( $feature, $engine ? : self::param( 'engine' ) ) );
    790790  }
    791791
  • simple-payment/trunk/templates/form-woocommerce.php

    r2589463 r2758807  
    11<?php
    2 require(SPWP_PLUGIN_DIR.'/templates/preparation.php');
     2require( SPWP_PLUGIN_DIR.'/templates/preparation.php' );
    33?>
    44<div class="col-md-8 order-md-1" id="simple-payment">
    5     <div class="row">
     5    <div class="row form-row">
    66      <div class="col-md-6 mb-3">
    77        <label for="cc-name"><?php _e('Name on card', 'simple-payment'); ?></label>
    8         <input type="text" class="form-control" id="cc-name" name="<?php echo $SPWP::CARD_OWNER; ?>" placeholder="" required="">
     8        <input type="text" class="form-control input-text" id="cc-name" name="<?php echo $SPWP::CARD_OWNER; ?>" placeholder="" required="">
    99        <small class="text-muted"><?php _e('Full name as displayed on card', 'simple-payment'); ?></small>
    1010        <div class="invalid-feedback">
     
    1414      <div class="col-md-6 mb-3">
    1515        <label for="cc-number"><?php _e('Credit card number', 'simple-payment'); ?></label>
    16         <input type="text" class="form-control" id="cc-number" name="<?php echo $SPWP::CARD_NUMBER; ?>" maxlength="16" placeholder="" required="">
     16        <input type="text" class="form-control input-text wc-credit-card-form-card-number" id="cc-number" name="<?php echo $SPWP::CARD_NUMBER; ?>" maxlength="16" placeholder="" required="" inputmode="numeric" autocomplete="cc-number" autocorrect="no" autocapitalize="no" spellcheck="no" type="tel">
    1717        <div class="invalid-feedback">
    1818          <?php _e('Credit card number is required.', 'simple-payment'); ?>
     
    2020      </div>
    2121    </div>
    22     <div class="row">
     22    <div class="row form-row">
    2323      <div class="col-md-3 mb-3">
    2424        <label for="cc-expiry-month"><?php _e('Expiration', 'simple-payment'); ?></label>
     
    4343      <div class="col-md-2 mb-3">
    4444        <label for="cc-cvv"><?php _e('CVV', 'simple-payment'); ?></label>
    45         <input type="text" class="form-control" id="cc-cvv" name="<?php echo $SPWP::CARD_CVV; ?>" maxlength="4" placeholder="" required="">
     45        <input type="text" class="form-control input-text wc-credit-card-form-card-cvc" id="cc-cvv" name="<?php echo $SPWP::CARD_CVV; ?>" maxlength="4" placeholder="" required="" inputmode="numeric" autocomplete="off" autocorrect="no" autocapitalize="no" spellcheck="no" type="tel">
    4646        <div class="invalid-feedback">
    4747          <?php _e('Required.', 'simple-payment'); ?>
     
    6161    </div>
    6262    <?php if (isset($owner_id) && $owner_id) { ?>
    63     <div class="row">
     63    <div class="row form-row">
    6464      <div class="col-md-6 mb-3">
    6565        <label for="cc-card-owner-id"><?php _e('Card Owner ID', 'simple-payment'); ?></label>
  • simple-payment/trunk/vendor/yalla-ya/simple-payment/Engines/CreditGuard.php

    r2730843 r2758807  
    108108      'response' => $response
    109109    ] );
    110     return( $data  );
     110    return( $data );
    111111  }
    112112
     
    177177
    178178  public function post_process( $params ) {
     179    $response = $_REQUEST;
    179180    if ( $this->param( 'mode' ) == 'redirect' ) {
    180       $response = $_REQUEST;
    181       $status = isset( $params[ 'ErrorCode' ] ) && intval( $params[ 'ErrorCode' ] ) == 0;
     181      $status = !isset( $params[ 'ErrorCode' ] ) || intval( $params[ 'ErrorCode' ] ) == 0;
    182182      $this->transaction = $params[ 'txId' ];
    183183      $token = ( isset( $params[ 'cardToken' ] ) && $params[ 'cardToken' ] ) ? $params[ 'cardToken' ] : null;
     
    185185      $uniqueId = ( isset( $params[ 'uniqueID' ] ) && $params[ 'uniqueID' ] ) ? $params[ 'uniqueID' ] : null;
    186186      $signature = hash( 'sha256',
    187         $this->password . $this->transaction . $params[ 'ErrorCode' ] . $token . $params[ 'cardExp' ] . $owner_id . $uniqueId
     187        $this->password . $this->transaction . ( $params[ 'ErrorCode' ] ? : '000' ) . $token . $params[ 'cardExp' ] . $owner_id . $uniqueId
    188188      );
    189189      $status = $status && $signature == $params[ 'responseMac' ];
    190190      $this->save( [
    191191        'transaction_id' => $this->transaction,
    192         'url' => ':post_process',
     192        'url' => ':signature_process',
    193193        'status' => $status,
    194194        'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null,
     
    196196        'response' => json_encode( $response )
    197197      ] );
    198       if ( $status ) $status = $this->verify();
     198      if ( $status ) {
     199        $status = $this->verify();
     200      }
    199201      $expiration = $params[ 'cardExp' ];
    200202    } else {
    201203      $status = isset( $params[ 'status' ] ) && intval( $params[ 'status' ] ) == 0;
    202     }
    203 
    204     $token = $params[ 'cardId' ];
    205     $expiration = $params[ 'cardExpiration' ];
    206 
     204      $token = $params[ 'cardId' ];
     205      $expiration = $params[ 'cardExpiration' ];
     206    }
    207207    $this->confirmation_code = $params[ 'authNumber' ];
    208     $response = $_REQUEST;
    209208    $args = [
    210209      'transaction_id' => $this->transaction,
    211       'url' => ':verify_process',
     210      'url' => 'post_process',
    212211      'status' => isset( $params[ 'status' ] ) ? $params[ 'status' ] : '',
    213212      'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null,
     
    215214      'response' => $this->param( 'mode' ) == 'redirect' ? json_encode( $response ) : null,
    216215    ];
    217 
    218216    // TODO: should we consider the engine confirmation for keeping tokens?
    219217    if ( $status && $token && $this->param( 'tokenize' ) ) $args[ 'token' ] = [
     
    311309
    312310      //$this->param('tokenize') ? true : false;
    313 
     311    // TODO: implement
    314312    // paymentPageData
    315 
     313    // useId, useCvv, customStyle, customText, iframeAnchestor
     314   
    316315    $response = $this->post( 'doDeal', $post );
    317316    $this->transaction = $mode == 'redirect' ? ( isset( $response[ 'response' ][ 'doDeal' ][ 'token' ] ) ? $response[ 'response' ][ 'doDeal' ][ 'token' ] : $this->transaction ) : $response[ 'response' ][ 'tranId' ];
  • simple-payment/trunk/vendor/yalla-ya/simple-payment/Engines/Engine.php

    r2733393 r2758807  
    99}
    1010
    11 class Engine {
     11abstract class Engine {
    1212
    1313  public static $name = 'Base';
  • simple-payment/trunk/vendor/yalla-ya/simple-payment/Engines/iCount.php

    r2730843 r2758807  
    2626    public static $supports = [ 'cvv', 'tokenization', 'card_owner_id' ];
    2727
     28    public function __construct($params = null, $handler = null, $sandbox = true) {
     29      parent::__construct( $params, $handler, $sandbox );
     30      //if ( $this->param( 'use_storage' ) ) self::$supports[] = 'tokenization';
     31      //$this->password = $this->sandbox ? $this->password : $this->param('password');
     32      //$this->box = $this->sandbox ? $this->box : $this->param('box');
     33      //$this->api = $this->api[$this->sandbox? 'sandbox' : 'live'];
     34    }
     35
     36
     37    //
    2838    public static function is_subscription( $params ) {
    2939      if ( !isset( $params[ 'payments' ] ) ) return( false );
  • simple-payment/trunk/vendor/yalla-ya/simple-payment/SimplePayment.php

    r2733391 r2758807  
    5252      if ( !$this->is_cli() && ( !isset( $_SERVER[ 'HTTPS' ] ) || !$_SERVER[ 'HTTPS' ] ) ) throw new Exception( 'HTTPS_REQUIRED_LIVE_TRANSACTIONS', 500 );
    5353    }
    54     $class = __NAMESPACE__ . '\\Engines\\' . $engine;
     54    $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine;
    5555    $settings = self::param( strtolower( isset( $class::$name ) ? $class::$name : $engine ) );
    5656    foreach ( self::$params as $key => $value ) if ( !is_array( $value ) && !isset( $settings[ $key ] ) ) $settings[ $key ] = $value;
     
    6262      $engine = $this->engine;
    6363      $class = get_class($this->engine);
    64     } else $class = __NAMESPACE__ . '\\Engines\\' . $engine;
     64    } else $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine;
    6565    return(in_array($feature, $class::$supports) || self::param(strtolower($engine).'.'.$feature));
    6666  }
Note: See TracChangeset for help on using the changeset viewer.