Changeset 2758807
- Timestamp:
- 07/19/2022 07:12:09 PM (4 years ago)
- Location:
- simple-payment
- Files:
-
- 4 added
- 24 edited
- 1 copied
-
tags/2.2.8 (copied) (copied from simple-payment/trunk)
-
tags/2.2.8/addons/gravityforms/class-json.php (added)
-
tags/2.2.8/addons/gravityforms/init.php (modified) (18 diffs)
-
tags/2.2.8/addons/woocommerce-subscriptions/init.php (modified) (1 diff)
-
tags/2.2.8/addons/woocommerce/init.php (modified) (9 diffs)
-
tags/2.2.8/languages/simple-payment.pot (modified) (26 diffs)
-
tags/2.2.8/readme.txt (modified) (1 diff)
-
tags/2.2.8/settings.php (modified) (6 diffs)
-
tags/2.2.8/simple-payment-plugin.php (modified) (5 diffs)
-
tags/2.2.8/templates/form-woocommerce.php (modified) (5 diffs)
-
tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/CreditGuard.php (modified) (6 diffs)
-
tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/Engine.php (modified) (1 diff)
-
tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/Meshulam.php (added)
-
tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/iCount.php (modified) (1 diff)
-
tags/2.2.8/vendor/yalla-ya/simple-payment/SimplePayment.php (modified) (2 diffs)
-
trunk/addons/gravityforms/class-json.php (added)
-
trunk/addons/gravityforms/init.php (modified) (18 diffs)
-
trunk/addons/woocommerce-subscriptions/init.php (modified) (1 diff)
-
trunk/addons/woocommerce/init.php (modified) (9 diffs)
-
trunk/languages/simple-payment.pot (modified) (26 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/settings.php (modified) (6 diffs)
-
trunk/simple-payment-plugin.php (modified) (5 diffs)
-
trunk/templates/form-woocommerce.php (modified) (5 diffs)
-
trunk/vendor/yalla-ya/simple-payment/Engines/CreditGuard.php (modified) (6 diffs)
-
trunk/vendor/yalla-ya/simple-payment/Engines/Engine.php (modified) (1 diff)
-
trunk/vendor/yalla-ya/simple-payment/Engines/Meshulam.php (added)
-
trunk/vendor/yalla-ya/simple-payment/Engines/iCount.php (modified) (1 diff)
-
trunk/vendor/yalla-ya/simple-payment/SimplePayment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
simple-payment/tags/2.2.8/addons/gravityforms/init.php
r2733391 r2758807 99 99 $this->SPWP = SimplePaymentPlugin::instance(); 100 100 $this->_version = $this->SPWP::$version; 101 102 101 } 103 102 … … 182 181 'name' => 'settings', 183 182 'label' => esc_html__( 'Settings', 'simple-payment' ), 184 'type' => ' textarea',183 'type' => 'json', 185 184 'class' => 'medium', 186 185 'tooltip' => '<h6>' . esc_html__( 'Custom & advanced checkout settings', 'simple-payment' ) . '</h6>' . esc_html__( 'Use if carefully', 'simple-payment' ), … … 188 187 ) 189 188 ) 190 );189 ); 191 190 } 192 191 … … 208 207 */ 209 208 public function feed_settings_fields() { 209 require_once( 'class-json.php' ); 210 210 $default_settings = parent::feed_settings_fields(); 211 211 … … 429 429 'required' => false, 430 430 ), 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 ), 431 441 ); 432 442 return array_merge( $fields, parent::billing_info_fields() ); … … 529 539 530 540 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://'; 532 543 $server_port = apply_filters( 'gform_simplepayment_return_url_port', $_SERVER['SERVER_PORT'] ); 533 544 if ( $server_port != '80' && $server_port != 443) { … … 535 546 } else { 536 547 $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; 537 } 548 }*/ 549 $pageURL = site_url( $_SERVER[ 'REQUEST_URI' ] ); 538 550 $ids_query = "ids={$form_id}|{$lead_id}"; 539 551 $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 ); 542 554 /** 543 555 * Filters SimplePayment's return URL, which is the URL that users will be sent to after completing the payment on SimplePayment's site. … … 551 563 * @param string $query The query string portion of the URL. 552 564 */ 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 ) ); 554 566 } 555 567 … … 658 670 659 671 $this->add_sp_pre_process( $feed, $submission_data, $form, $entry ); 660 661 672 $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form['id'], $submission_data, $feed, $entry ); 662 673 GFAPI::update_entry_property( $entry['id'], 'payment_method', 'SimplePayment' ); … … 685 696 GFSimplePayment::$params = $params; 686 697 $this->redirect_url = null; 687 add_filter( 'gform_confirmation', function ( $confirmation, $form, $entry, $ajax ) {698 add_filter( 'gform_confirmation', function ( $confirmation, $form, $entry, $ajax ) { 688 699 if (isset($confirmation['redirect'])) { 689 700 $url = esc_url_raw( $confirmation['redirect'] ); … … 695 706 // otherwise preset html/text from confirmation 696 707 $confirmation = $this->SPWP->checkout(GFSimplePayment::$params); 697 708 remove_all_filters( 'gform_confirmation' ); 698 709 return $confirmation; 699 710 }, 10, 4 ); … … 751 762 */ 752 763 $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 754 764 $this->add_sp_pre_process( $feed, $submission_data, $form, $entry ); 755 765 756 766 $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form[ 'id' ], $submission_data, $feed, $entry ); 757 767 $is_subscription = $feed[ 'meta' ][ 'transactionType' ] == 'subscription'; 758 759 768 try { 760 769 $this->redirect_url = $this->SPWP->payment( $params, $engine ); … … 847 856 } else { 848 857 $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 } 853 864 } 854 865 … … 892 903 public function subscribe( $feed, $submission_data, $form, $entry ) { 893 904 $subscription = $this->authorize( $feed, $submission_data, $form, $entry ); 905 if ( $subscription === false ) return( false ); 894 906 $subscription[ 'is_success' ] = $subscription[ 'captured_payment' ][ 'is_success' ]; 895 907 $subscription[ 'subscription_id' ] = $subscription[ 'subscription_id' ]; … … 1214 1226 if ( $engine_field ) { 1215 1227 $engine = rgpost( "input_{$engine_field[0]->id}" ); 1216 if ($engine) $args[ 'engine'] = $engine;1228 if ($engine) $args[ 'engine' ] = $engine; 1217 1229 } 1218 1230 … … 1240 1252 // Customer Information 1241 1253 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']; 1244 1258 1245 1259 // Product Information … … 1300 1314 } 1301 1315 1302 public function settings_json( $field, $echo = true ) {1303 $field[ 'type'] = 'textarea'; //making sure type is set to textarea1316 /*public function settings_json( $field, $echo = true ) { 1317 $field[ 'type' ] = 'textarea'; //making sure type is set to textarea 1304 1318 $attributes = $this->get_field_attributes( $field ); 1305 1319 $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 ); 1311 1325 $html .= '<textarea 1312 1326 name="_gaddon_setting_' . $name . '" ' . 1313 1327 implode( ' ', $attributes ) . 1314 '>' . 1315 ( $value ? json_encode($value) : '').1328 '>' . 1329 ( $value ? json_encode( $value ) : '' ). 1316 1330 '</textarea>'; 1317 1331 … … 1325 1339 1326 1340 return $html; 1327 } 1341 }*/ 1328 1342 } 1329 1343 -
simple-payment/tags/2.2.8/addons/woocommerce-subscriptions/init.php
r2448085 r2758807 43 43 }, 100, 2); 44 44 45 add_filter('sp_woocommerce_supports', function( $supports, $engine = null) {45 add_filter('sp_woocommerce_supports', function( $supports, $engine = null ) { 46 46 // 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 ); 49 49 50 50 function sp_wcs_test($order_id) { -
simple-payment/tags/2.2.8/addons/woocommerce/init.php
r2589463 r2758807 59 59 60 60 public function __construct() { 61 $supports = [ 'products', 'subscriptions', 'refunds', 'default_credit_card_form' ]; 62 61 63 $this->SPWP = SimplePaymentPlugin::instance(); 62 //63 64 $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 } 67 71 $this->method_title = __( 'Simple Payment', 'simple-payment' ); 68 72 $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 ); 70 78 71 79 // TODO: consider taking these values from the specific engine; tokenization, subscriptions … … 73 81 // 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 74 82 // 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' ); 76 84 77 85 // Load the settings. … … 88 96 add_action( 'woocommerce_thankyou_'.$this->id, array($this, 'thankyou_page')); 89 97 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' ) ); 91 99 add_action( "woocommerce_api_{$this}", array( $this, 'gateway_response' ) ); 92 100 … … 105 113 $this->description = ' '; 106 114 } 115 116 add_filter( 'woocommerce_credit_card_form_fields', [ $this, 'fields' ], 50, 2 ); 107 117 } 108 118 109 119 public function needs_setup() { 110 120 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' ) . ' <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' ) . ' <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 ); 111 155 } 112 156 … … 392 436 public function validate_fields() { 393 437 $ok = parent::validate_fields(); 394 if ( $this->has_fields) {438 if ( $this->has_fields ) { 395 439 $params = $this->params($_REQUEST); 396 440 $validations = $this->SPWP->validate($params); … … 426 470 if ($this->has_fields) { 427 471 // 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'])) { 433 479 $params[$this->SPWP::CARD_CVV] = $params[$this->id.'-card-cvc']; 434 480 $expiry = $params[$this->id.'-card-expiry']; … … 546 592 } 547 593 594 public function field_name( $name ) { 595 // $this->supports( 'tokenization' ) ? '' : 596 return ' name="' . esc_attr( $this->id . '-' . $name ) . '" '; 597 } 598 548 599 public function save_token( $payment_id, $user_id = 0 ) { 549 600 $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 ); 551 602 //$token_number = $transaction->Token; 552 603 //$token_card_type = $this->get_card_type( $transaction ); … … 554 605 //$token_expiry_month = substr( $transaction->CreditCardExpDate, 0, 2 ); 555 606 //$token_expiry_year = substr( date( 'Y' ), 0, 2 ) . substr( $transaction->CreditCardExpDate, -2 ); 556 require( 'payment-token.php');607 require( 'payment-token.php' ); 557 608 $token = new WC_Payment_Token_SimplePayment(); 558 609 $token->set_token( $transaction['transaction_id'] ); … … 632 683 ) ) ); 633 684 } 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 */ 634 712 } 635 713 -
simple-payment/tags/2.2.8/languages/simple-payment.pot
r2733393 r2758807 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Simple Payment 2.2. 6\n"5 "Project-Id-Version: Simple Payment 2.2.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-payment\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-0 5-29T09:51:34+00:00\n"12 "POT-Creation-Date: 2022-07-19T19:10:59+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: addons/elementor/widget.php:31 19 #: addons/woocommerce/init.php: 6720 #: addons/woocommerce/init.php:1 3019 #: addons/woocommerce/init.php:71 20 #: addons/woocommerce/init.php:174 21 21 #: addons/wpjobboard/config.php:8 22 22 #: simple-payment-plugin.php:361 … … 73 73 74 74 #: addons/elementor/widget.php:97 75 #: addons/woocommerce/init.php: 17975 #: addons/woocommerce/init.php:223 76 76 #: addons/wpjobboard/config.php:34 77 77 msgid "Product" … … 97 97 #: addons/elementor/widget.php:123 98 98 #: addons/elementor/widget.php:137 99 #: settings.php:1 1999 #: settings.php:126 100 100 msgid "Bootstrap Basic" 101 101 msgstr "" … … 103 103 #: addons/elementor/widget.php:124 104 104 #: addons/elementor/widget.php:147 105 #: addons/gravityforms/init.php:17 6105 #: addons/gravityforms/init.php:175 106 106 #: addons/gravityforms/init.php:368 107 #: addons/woocommerce/init.php:2 03107 #: addons/woocommerce/init.php:247 108 108 #: addons/wpjobboard/config.php:47 109 109 msgid "Template" … … 120 120 121 121 #: addons/elementor/widget.php:136 122 #: settings.php:1 19122 #: settings.php:126 123 123 msgid "Legacy" 124 124 msgstr "" 125 125 126 126 #: addons/elementor/widget.php:138 127 #: settings.php:1 19127 #: settings.php:126 128 128 msgid "Bootstrap" 129 129 msgstr "" … … 143 143 144 144 #: addons/elementor/widget.php:160 145 #: addons/gravityforms/init.php:14 8145 #: addons/gravityforms/init.php:147 146 146 #: addons/gravityforms/init.php:325 147 147 msgid "IFRAME" … … 149 149 150 150 #: addons/elementor/widget.php:161 151 #: addons/gravityforms/init.php:15 2151 #: addons/gravityforms/init.php:151 152 152 #: addons/gravityforms/init.php:329 153 153 msgid "Modal" … … 175 175 176 176 #: addons/elementor/widget.php:184 177 #: settings.php:1 15177 #: settings.php:122 178 178 msgid "Redirect URL" 179 179 msgstr "" … … 184 184 185 185 #: addons/elementor/widget.php:204 186 #: addons/gravityforms/init.php:13 1186 #: addons/gravityforms/init.php:130 187 187 #: addons/gravityforms/init.php:306 188 #: addons/woocommerce/init.php:1 48188 #: addons/woocommerce/init.php:192 189 189 #: addons/wpjobboard/config.php:12 190 190 #: admin/transaction-list-table.php:242 191 #: settings.php: 98191 #: settings.php:105 192 192 msgid "Engine" 193 193 msgstr "" … … 198 198 199 199 #: addons/elementor/widget.php:221 200 #: addons/gravityforms/init.php:16 4200 #: addons/gravityforms/init.php:163 201 201 #: addons/gravityforms/init.php:341 202 #: addons/woocommerce/init.php:195 202 #: addons/woocommerce/init.php:148 203 #: addons/woocommerce/init.php:239 203 204 #: addons/wpjobboard/config.php:41 204 205 #: templates/form-bootstrap-basic-id.php:76 … … 224 225 msgstr "" 225 226 226 #: addons/gravityforms/init.php:11 9227 #: addons/gravityforms/init.php:118 227 228 msgid "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" 228 229 msgstr "" 229 230 230 #: addons/gravityforms/init.php:13 3231 #: addons/gravityforms/init.php:132 231 232 #: addons/gravityforms/init.php:309 232 #: addons/woocommerce/init.php:1 50233 #: addons/woocommerce/init.php:194 233 234 msgid "Select Payment Gateway" 234 235 msgstr "" 235 236 236 #: addons/gravityforms/init.php:13 3237 #: addons/gravityforms/init.php:132 237 238 #: addons/gravityforms/init.php:309 238 239 msgid "If none selected it will use Simple Payment default" 239 240 msgstr "" 240 241 241 #: addons/gravityforms/init.php:13 9242 #: addons/gravityforms/init.php:14 1242 #: addons/gravityforms/init.php:138 243 #: addons/gravityforms/init.php:140 243 244 #: addons/gravityforms/init.php:315 244 245 #: addons/gravityforms/init.php:318 245 #: addons/woocommerce/init.php: 162246 #: addons/woocommerce/init.php: 164246 #: addons/woocommerce/init.php:206 247 #: addons/woocommerce/init.php:208 247 248 #: addons/wpjobboard/config.php:23 248 249 msgid "Display Method" 249 250 msgstr "" 250 251 251 #: addons/gravityforms/init.php:14 1252 #: addons/gravityforms/init.php:140 252 253 #: addons/gravityforms/init.php:318 253 #: addons/woocommerce/init.php:1 51254 #: addons/woocommerce/init.php: 165254 #: addons/woocommerce/init.php:195 255 #: addons/woocommerce/init.php:209 255 256 #: addons/wpjobboard/config.php:13 256 257 #: addons/wpjobboard/config.php:24 … … 258 259 msgstr "" 259 260 260 #: addons/gravityforms/init.php:14 4261 #: addons/gravityforms/init.php:143 261 262 #: addons/gravityforms/init.php:321 262 263 #: addons/wpjobboard/config.php:6 … … 264 265 msgstr "" 265 266 266 #: addons/gravityforms/init.php:15 6267 #: addons/gravityforms/init.php:155 267 268 #: addons/gravityforms/init.php:333 268 269 msgid "redirect" 269 270 msgstr "" 270 271 271 #: addons/gravityforms/init.php:16 6272 #: addons/gravityforms/init.php:165 272 273 #: addons/gravityforms/init.php:344 273 #: addons/woocommerce/init.php: 197274 #: addons/woocommerce/init.php:241 274 275 msgid "Enable Insallments" 275 276 msgstr "" 276 277 277 #: addons/gravityforms/init.php:16 6278 #: addons/gravityforms/init.php:165 278 279 #: addons/gravityforms/init.php:344 279 280 msgid "Enable installments on checkout page." 280 281 msgstr "" 281 282 282 #: addons/gravityforms/init.php:17 9283 #: addons/gravityforms/init.php:178 283 284 #: addons/gravityforms/init.php:372 284 #: addons/woocommerce/init.php:2 05285 #: addons/woocommerce/init.php:249 285 286 #: addons/wpjobboard/config.php:48 286 287 msgid "Custom checkout template form" 287 288 msgstr "" 288 289 289 #: addons/gravityforms/init.php:17 9290 #: addons/gravityforms/init.php:178 290 291 #: addons/gravityforms/init.php:372 291 #: addons/woocommerce/init.php:2 06292 #: addons/woocommerce/init.php:250 292 293 msgid "If you wish to use a custom form template." 293 294 msgstr "" 294 295 295 #: addons/gravityforms/init.php:18 3296 #: addons/gravityforms/init.php:182 296 297 #: addons/gravityforms/init.php:376 297 #: addons/woocommerce/init.php:2 11298 #: addons/woocommerce/init.php:255 298 299 #: addons/wpjobboard/config.php:53 299 300 msgid "Settings" 300 301 msgstr "" 301 302 302 #: addons/gravityforms/init.php:18 6303 #: addons/gravityforms/init.php:185 303 304 #: addons/gravityforms/init.php:380 304 #: addons/woocommerce/init.php:2 13305 #: addons/woocommerce/init.php:257 305 306 #: addons/wpjobboard/config.php:54 306 307 msgid "Custom & advanced checkout settings" 307 308 msgstr "" 308 309 309 #: addons/gravityforms/init.php:18 6310 #: addons/gravityforms/init.php:185 310 311 #: addons/gravityforms/init.php:380 311 #: addons/woocommerce/init.php:2 14312 #: addons/woocommerce/init.php:258 312 313 msgid "Use if carefully" 313 314 msgstr "" … … 404 405 msgstr "" 405 406 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 412 msgid "Phone" 413 msgstr "" 414 415 #: addons/gravityforms/init.php:438 416 msgid "Company" 417 msgstr "" 418 419 #: addons/gravityforms/init.php:952 407 420 msgid "Payment Completed" 408 421 msgstr "" 409 422 410 #: addons/gravityforms/init.php:9 41423 #: addons/gravityforms/init.php:953 411 424 msgid "Payment Failed" 412 425 msgstr "" 413 426 414 #: addons/gravityforms/init.php:9 42427 #: addons/gravityforms/init.php:954 415 428 msgid "Subscription Created" 416 429 msgstr "" 417 430 418 #: addons/gravityforms/init.php:1335 431 #: addons/gravityforms/init.php:1349 432 #: addons/woocommerce/init.php:132 419 433 #: templates/form-woocommerce.php:65 420 434 msgid "Card Owner ID" … … 429 443 msgstr "" 430 444 431 #: addons/woocommerce/init.php: 68445 #: addons/woocommerce/init.php:72 432 446 msgid "Allows integration of Simple Payment gateways into woocommerce" 433 447 msgstr "" 434 448 435 #: addons/woocommerce/init.php: 75449 #: addons/woocommerce/init.php:83 436 450 msgid "new payment method" 437 451 msgstr "" 438 452 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 461 msgid "Name on card" 462 msgstr "" 463 464 #: addons/woocommerce/init.php:165 440 465 msgid "Enable/Disable" 441 466 msgstr "" 442 467 443 #: addons/woocommerce/init.php:1 23468 #: addons/woocommerce/init.php:167 444 469 msgid "Enable Simple Payment" 445 470 msgstr "" 446 471 447 #: addons/woocommerce/init.php:1 27472 #: addons/woocommerce/init.php:171 448 473 msgid "Title" 449 474 msgstr "" 450 475 451 #: addons/woocommerce/init.php:1 29476 #: addons/woocommerce/init.php:173 452 477 msgid "This controls the title for the payment method the customer sees during checkout." 453 478 msgstr "" 454 479 455 #: addons/woocommerce/init.php:1 34480 #: addons/woocommerce/init.php:178 456 481 msgid "Description" 457 482 msgstr "" 458 483 459 #: addons/woocommerce/init.php:1 36484 #: addons/woocommerce/init.php:180 460 485 msgid "Payment method description that the customer will see on your checkout." 461 486 msgstr "" 462 487 463 #: addons/woocommerce/init.php:1 37488 #: addons/woocommerce/init.php:181 464 489 msgid "Please remit payment to Store Name upon pickup or delivery." 465 490 msgstr "" 466 491 467 #: addons/woocommerce/init.php:1 41492 #: addons/woocommerce/init.php:185 468 493 msgid "Instructions" 469 494 msgstr "" 470 495 471 #: addons/woocommerce/init.php:1 43496 #: addons/woocommerce/init.php:187 472 497 msgid "Instructions that will be added to the thank you page and emails." 473 498 msgstr "" 474 499 475 #: addons/woocommerce/init.php: 171500 #: addons/woocommerce/init.php:215 476 501 msgid "Show in Checkout" 477 502 msgstr "" 478 503 479 #: addons/woocommerce/init.php: 173504 #: addons/woocommerce/init.php:217 480 505 msgid "Show in Modal or IFRAME in Checkout page, instead of Order Review" 481 506 msgstr "" 482 507 483 #: addons/woocommerce/init.php: 175508 #: addons/woocommerce/init.php:219 484 509 msgid "For Modal & IFRAME Only, If none selected it will use Simple Payment default." 485 510 msgstr "" 486 511 487 #: addons/woocommerce/init.php: 181512 #: addons/woocommerce/init.php:225 488 513 msgid "Custom product name to use in Simple Payment" 489 514 msgstr "" 490 515 491 #: addons/woocommerce/init.php: 182516 #: addons/woocommerce/init.php:226 492 517 msgid "Simple Payment globalize the purchase to single product on the Payment Gateway." 493 518 msgstr "" 494 519 495 #: addons/woocommerce/init.php: 183520 #: addons/woocommerce/init.php:227 496 521 msgid "WooCommerce Order %s" 497 522 msgstr "" 498 523 499 #: addons/woocommerce/init.php: 187524 #: addons/woocommerce/init.php:231 500 525 msgid "Single Item Orders" 501 526 msgstr "" 502 527 503 #: addons/woocommerce/init.php: 189528 #: addons/woocommerce/init.php:233 504 529 msgid "Single Item Order use as Product Name" 505 530 msgstr "" 506 531 507 #: addons/woocommerce/init.php: 191532 #: addons/woocommerce/init.php:235 508 533 msgid "When order has a single item use item name as product name" 509 534 msgstr "" 510 535 511 #: addons/woocommerce/init.php: 199536 #: addons/woocommerce/init.php:243 512 537 #: addons/wpjobboard/config.php:42 513 538 msgid "Enable installments on checkout page" 514 539 msgstr "" 515 540 516 #: addons/woocommerce/init.php: 398541 #: addons/woocommerce/init.php:442 517 542 msgid "Payment error: %s" 518 543 msgstr "" 519 544 520 #: addons/woocommerce/init.php:5 26545 #: addons/woocommerce/init.php:572 521 546 msgid "Payment error: " 522 547 msgstr "" 523 548 524 #: addons/woocommerce/init.php:6 05549 #: addons/woocommerce/init.php:656 525 550 msgid "Pay for order" 526 551 msgstr "" 527 552 528 #: addons/woocommerce/init.php:6 29553 #: addons/woocommerce/init.php:680 529 554 msgid "Visa" 530 555 msgstr "" 531 556 532 #: addons/woocommerce/init.php:6 30557 #: addons/woocommerce/init.php:681 533 558 msgid "Mastercard" 534 559 msgstr "" 535 560 536 #: addons/woocommerce/init.php:6 31561 #: addons/woocommerce/init.php:682 537 562 msgid "American Express" 538 563 msgstr "" … … 742 767 #: admin/transaction-list-table.php:160 743 768 #: admin/transaction-list-table.php:181 744 #: settings.php:1 48769 #: settings.php:155 745 770 msgid "Archive" 746 771 msgstr "" … … 806 831 807 832 #: admin/transaction-list-table.php:253 808 #: settings.php:1 04833 #: settings.php:111 809 834 msgid "Sandbox" 810 835 msgstr "" … … 852 877 853 878 #: settings.php:6 854 #: settings.php:37 2879 #: settings.php:379 855 880 msgid "Invoice" 856 881 msgstr "" … … 865 890 866 891 #: settings.php:6 867 #: settings.php:37 2892 #: settings.php:379 868 893 msgid "Receipt" 869 894 msgstr "" … … 1005 1030 msgstr "" 1006 1031 1007 #: settings.php:85 1032 #: settings.php:86 1033 msgid "Meshulam Gateway Settings" 1034 msgstr "" 1035 1036 #: settings.php:87 1037 msgid "Setup your Simple Payment to accept Meshulam Payments" 1038 msgstr "" 1039 1040 #: settings.php:92 1008 1041 msgid "CreditGuard Gateway Settings" 1009 1042 msgstr "" 1010 1043 1011 #: settings.php: 861044 #: settings.php:93 1012 1045 msgid "Setup your Simple Payment to accept CreditGuard Payments" 1013 1046 msgstr "" 1014 1047 1015 #: settings.php:9 01048 #: settings.php:97 1016 1049 msgid "Credit 2000 Gateway Settings" 1017 1050 msgstr "" 1018 1051 1019 #: settings.php:9 11052 #: settings.php:98 1020 1053 msgid "Setup your Simple Payment to accept Credit 2000 Payments" 1021 1054 msgstr "" 1022 1055 1023 #: settings.php:10 01056 #: settings.php:107 1024 1057 #: templates/form-bootstrap.php:142 1025 1058 #: templates/form-donation.php:154 … … 1029 1062 msgstr "" 1030 1063 1031 #: settings.php:10 01064 #: settings.php:107 1032 1065 msgid "Cardcom" 1033 1066 msgstr "" 1034 1067 1035 #: settings.php:10 01068 #: settings.php:107 1036 1069 msgid "iCount" 1037 1070 msgstr "" 1038 1071 1039 #: settings.php:10 01072 #: settings.php:107 1040 1073 msgid "PayMe" 1041 1074 msgstr "" 1042 1075 1043 #: settings.php:10 01076 #: settings.php:107 1044 1077 msgid "iCredit" 1045 1078 msgstr "" 1046 1079 1047 #: settings.php:10 01080 #: settings.php:107 1048 1081 msgid "CreditGuard" 1049 1082 msgstr "" 1050 1083 1051 #: settings.php:100 1084 #: settings.php:107 1085 msgid "Meshulam" 1086 msgstr "" 1087 1088 #: settings.php:107 1052 1089 msgid "Credit2000" 1053 1090 msgstr "" 1054 1091 1055 #: settings.php:10 01092 #: settings.php:107 1056 1093 msgid "Custom" 1057 1094 msgstr "" 1058 1095 1059 #: settings.php:10 21096 #: settings.php:109 1060 1097 msgid "Mode" 1061 1098 msgstr "" 1062 1099 1063 #: settings.php:1 041100 #: settings.php:111 1064 1101 msgid "Live" 1065 1102 msgstr "" 1066 1103 1067 #: settings.php:1 061104 #: settings.php:113 1068 1105 msgid "Currency" 1069 1106 msgstr "" 1070 1107 1071 #: settings.php:11 01108 #: settings.php:117 1072 1109 #: simple-payment-plugin.php:321 1073 1110 #: simple-payment-plugin.php:354 … … 1075 1112 msgstr "" 1076 1113 1077 #: settings.php:1 131114 #: settings.php:120 1078 1115 msgid "Callback URL" 1079 1116 msgstr "" 1080 1117 1081 #: settings.php:1 171118 #: settings.php:124 1082 1119 msgid "Form Template" 1083 1120 msgstr "" 1084 1121 1085 #: settings.php:1 191122 #: settings.php:126 1086 1123 msgid "Experimental" 1087 1124 msgstr "" 1088 1125 1089 #: settings.php:12 11126 #: settings.php:128 1090 1127 msgid "Create Wordpress User" 1091 1128 msgstr "" 1092 1129 1093 #: settings.php:1 231130 #: settings.php:130 1094 1131 msgid "No Creation" 1095 1132 msgstr "" 1096 1133 1097 #: settings.php:1 231134 #: settings.php:130 1098 1135 msgid "Silent Creation" 1099 1136 msgstr "" 1100 1137 1101 #: settings.php:1 231138 #: settings.php:130 1102 1139 msgid "Registration" 1103 1140 msgstr "" 1104 1141 1105 #: settings.php:1 251142 #: settings.php:132 1106 1143 msgid "Create User Upon" 1107 1144 msgstr "" 1108 1145 1109 #: settings.php:1 271146 #: settings.php:134 1110 1147 msgid "Preprocessing" 1111 1148 msgstr "" 1112 1149 1113 #: settings.php:1 271150 #: settings.php:134 1114 1151 msgid "Post processing" 1115 1152 msgstr "" 1116 1153 1117 #: settings.php:13 01154 #: settings.php:137 1118 1155 msgid "Cron Schedule" 1119 1156 msgstr "" 1120 1157 1121 #: settings.php:13 21158 #: settings.php:139 1122 1159 msgid "Minute" 1123 1160 msgstr "" 1124 1161 1125 #: settings.php:13 21126 #: settings.php:1 371127 #: settings.php:1 431162 #: settings.php:139 1163 #: settings.php:144 1164 #: settings.php:150 1128 1165 msgid "10 Min" 1129 1166 msgstr "" 1130 1167 1131 #: settings.php:13 21132 #: settings.php:1 371133 #: settings.php:1 431168 #: settings.php:139 1169 #: settings.php:144 1170 #: settings.php:150 1134 1171 msgid "30 Min" 1135 1172 msgstr "" 1136 1173 1137 #: settings.php:13 21138 #: settings.php:1 371139 #: settings.php:1 431174 #: settings.php:139 1175 #: settings.php:144 1176 #: settings.php:150 1140 1177 msgid "1 Hour" 1141 1178 msgstr "" 1142 1179 1143 #: settings.php:13 21144 #: settings.php:1 371145 #: settings.php:1 431180 #: settings.php:139 1181 #: settings.php:144 1182 #: settings.php:150 1146 1183 msgid "12 Hours" 1147 1184 msgstr "" 1148 1185 1149 #: settings.php:13 21150 #: settings.php:1 371151 #: settings.php:1 431186 #: settings.php:139 1187 #: settings.php:144 1188 #: settings.php:150 1152 1189 msgid "1 Day" 1153 1190 msgstr "" 1154 1191 1155 #: settings.php:13 21156 #: settings.php:1 371157 #: settings.php:1 431192 #: settings.php:139 1193 #: settings.php:144 1194 #: settings.php:150 1158 1195 msgid "3 Days" 1159 1196 msgstr "" 1160 1197 1161 #: settings.php:13 21162 #: settings.php:1 371163 #: settings.php:1 431198 #: settings.php:139 1199 #: settings.php:144 1200 #: settings.php:150 1164 1201 msgid "7 Days" 1165 1202 msgstr "" 1166 1203 1167 #: settings.php:13 21168 #: settings.php:1 371169 #: settings.php:1 431204 #: settings.php:139 1205 #: settings.php:144 1206 #: settings.php:150 1170 1207 msgid "30 Days" 1171 1208 msgstr "" 1172 1209 1173 #: settings.php:1 351210 #: settings.php:142 1174 1211 msgid "Auto Transaction Verification" 1175 1212 msgstr "" 1176 1213 1177 #: settings.php:14 11214 #: settings.php:148 1178 1215 msgid "Fail Pending Transaction" 1179 1216 msgstr "" 1180 1217 1181 #: settings.php:1 461218 #: settings.php:153 1182 1219 msgid "Purge Transactions" 1183 1220 msgstr "" 1184 1221 1185 #: settings.php:1 481186 #: settings.php:3 191187 #: settings.php: 3961222 #: settings.php:155 1223 #: settings.php:326 1224 #: settings.php:403 1188 1225 msgid "Disabled" 1189 1226 msgstr "" 1190 1227 1191 #: settings.php:1 481228 #: settings.php:155 1192 1229 msgid "Purge" 1193 1230 msgstr "" 1194 1231 1195 #: settings.php:1 481232 #: settings.php:155 1196 1233 msgid "Archive & Purge" 1197 1234 msgstr "" 1198 1235 1199 #: settings.php:15 01236 #: settings.php:157 1200 1237 msgid "Purge Period (days)" 1201 1238 msgstr "" 1202 1239 1203 #: settings.php:1 531204 #: settings.php: 2931240 #: settings.php:160 1241 #: settings.php:300 1205 1242 msgid "CSS" 1206 1243 msgstr "" 1207 1244 1208 #: settings.php:1 571245 #: settings.php:164 1209 1246 msgid "Upon Uninstall" 1210 1247 msgstr "" 1211 1248 1212 #: settings.php:16 11249 #: settings.php:168 1213 1250 msgid "Keep Database & Settings" 1214 1251 msgstr "" 1215 1252 1216 #: settings.php:16 11253 #: settings.php:168 1217 1254 msgid "Erase Settings" 1218 1255 msgstr "" 1219 1256 1220 #: settings.php:16 11257 #: settings.php:168 1221 1258 msgid "Erase Database" 1222 1259 msgstr "" 1223 1260 1224 #: settings.php:16 11261 #: settings.php:168 1225 1262 msgid "Erase All Database & Settings" 1226 1263 msgstr "" 1227 1264 1228 #: settings.php:1 641265 #: settings.php:171 1229 1266 msgid "Min # of Payments" 1230 1267 msgstr "" 1231 1268 1232 #: settings.php:17 01269 #: settings.php:177 1233 1270 msgid "Max # of Payments" 1234 1271 msgstr "" 1235 1272 1236 #: settings.php:1 761273 #: settings.php:183 1237 1274 msgid "Default # of Payments" 1238 1275 msgstr "" 1239 1276 1240 #: settings.php:1 831277 #: settings.php:190 1241 1278 msgid "Client ID" 1242 1279 msgstr "" 1243 1280 1244 #: settings.php:1 861281 #: settings.php:193 1245 1282 msgid "Client Secret" 1246 1283 msgstr "" 1247 1284 1248 #: settings.php:19 01285 #: settings.php:197 1249 1286 msgid "Business" 1250 1287 msgstr "" 1251 1288 1252 #: settings.php: 1931289 #: settings.php:200 1253 1290 msgid "Hosted Button ID" 1254 1291 msgstr "" 1255 1292 1256 #: settings.php: 1971293 #: settings.php:204 1257 1294 msgid "Terminal ID" 1258 1295 msgstr "" 1259 1296 1260 #: settings.php:20 11261 #: settings.php:3 561262 #: settings.php: 4871297 #: settings.php:208 1298 #: settings.php:363 1299 #: settings.php:528 1263 1300 msgid "Username" 1264 1301 msgstr "" 1265 1302 1266 #: settings.php:2 051303 #: settings.php:212 1267 1304 msgid "API Password" 1268 1305 msgstr "" 1269 1306 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 1311 msgid "Operation" 1312 msgstr "" 1313 1314 #: settings.php:223 1315 #: settings.php:576 1316 msgid "Force Language Interface" 1317 msgstr "" 1318 1319 #: settings.php:230 1320 msgid "Credit Type" 1321 msgstr "" 1322 1323 #: settings.php:238 1324 msgid "Name field settings" 1325 msgstr "" 1326 1327 #: settings.php:244 1328 msgid "Phone field settings" 1329 msgstr "" 1330 1331 #: settings.php:250 1332 msgid "Email field settings" 1333 msgstr "" 1334 1335 #: settings.php:256 1336 msgid "Hide Credit Card User ID" 1337 msgstr "" 1338 1339 #: settings.php:261 1340 msgid "Invoice Processing" 1341 msgstr "" 1342 1343 #: settings.php:268 1344 #: settings.php:377 1345 msgid "Document Type Upon Success" 1346 msgstr "" 1347 1348 #: settings.php:276 1349 msgid "Auto Create/Update Account" 1350 msgstr "" 1351 1352 #: settings.php:281 1353 msgid "Load Account Info to Invoice" 1354 msgstr "" 1355 1356 #: settings.php:287 1357 msgid "Information to print on document" 1358 msgstr "" 1359 1360 #: settings.php:295 1361 msgid "Show Invoice Information" 1362 msgstr "" 1363 1364 #: settings.php:306 1365 msgid "Prices Globally VAT Free" 1366 msgstr "" 1367 1368 #: settings.php:311 1369 msgid "Email Invoice to Client" 1370 msgstr "" 1371 1372 #: settings.php:316 1373 msgid "Department ID" 1374 msgstr "" 1375 1376 #: settings.php:318 1377 msgid "Numeric ID" 1378 msgstr "" 1379 1380 #: settings.php:323 1381 #: settings.php:400 1382 msgid "Enable Recurring (Direct Debit) Payments" 1383 msgstr "" 1384 1385 #: settings.php:326 1386 #: settings.php:403 1387 msgid "Provider" 1388 msgstr "" 1389 1390 #: settings.php:330 1391 msgid "Process Recurring Upon" 1392 msgstr "" 1393 1394 #: settings.php:333 1395 msgid "Post Process" 1396 msgstr "" 1397 1398 #: settings.php:333 1399 msgid "Status Process" 1400 msgstr "" 1401 1402 #: settings.php:337 1403 msgid "Direct Debit Terminal" 1404 msgstr "" 1405 1406 #: settings.php:342 1407 msgid "Direct Debit Operation" 1408 msgstr "" 1409 1410 #: settings.php:349 1411 msgid "Repeated Recurring" 1412 msgstr "" 1413 1414 #: settings.php:354 1415 msgid "Recurring Interval ID" 1416 msgstr "" 1417 1418 #: settings.php:359 1419 msgid "Business ID" 1420 msgstr "" 1421 1422 #: settings.php:367 1273 1423 #: settings.php:532 1274 msgid "Operation"1275 msgstr ""1276 1277 #: settings.php:2161278 #: settings.php:5201279 msgid "Force Language Interface"1280 msgstr ""1281 1282 #: settings.php:2231283 msgid "Credit Type"1284 msgstr ""1285 1286 #: settings.php:2311287 msgid "Name field settings"1288 msgstr ""1289 1290 #: settings.php:2371291 msgid "Phone field settings"1292 msgstr ""1293 1294 #: settings.php:2431295 msgid "Email field settings"1296 msgstr ""1297 1298 #: settings.php:2491299 msgid "Hide Credit Card User ID"1300 msgstr ""1301 1302 #: settings.php:2541303 msgid "Invoice Processing"1304 msgstr ""1305 1306 #: settings.php:2611307 #: settings.php:3701308 msgid "Document Type Upon Success"1309 msgstr ""1310 1311 #: settings.php:2691312 msgid "Auto Create/Update Account"1313 msgstr ""1314 1315 #: settings.php:2741316 msgid "Load Account Info to Invoice"1317 msgstr ""1318 1319 #: settings.php:2801320 msgid "Information to print on document"1321 msgstr ""1322 1323 #: settings.php:2881324 msgid "Show Invoice Information"1325 msgstr ""1326 1327 #: settings.php:2991328 msgid "Prices Globally VAT Free"1329 msgstr ""1330 1331 #: settings.php:3041332 msgid "Email Invoice to Client"1333 msgstr ""1334 1335 #: settings.php:3091336 msgid "Department ID"1337 msgstr ""1338 1339 #: settings.php:3111340 msgid "Numeric ID"1341 msgstr ""1342 1343 #: settings.php:3161344 #: settings.php:3931345 msgid "Enable Recurring (Direct Debit) Payments"1346 msgstr ""1347 1348 #: settings.php:3191349 #: settings.php:3961350 msgid "Provider"1351 msgstr ""1352 1353 #: settings.php:3231354 msgid "Process Recurring Upon"1355 msgstr ""1356 1357 #: settings.php:3261358 msgid "Post Process"1359 msgstr ""1360 1361 #: settings.php:3261362 msgid "Status Process"1363 msgstr ""1364 1365 #: settings.php:3301366 msgid "Direct Debit Terminal"1367 msgstr ""1368 1369 #: settings.php:3351370 msgid "Direct Debit Operation"1371 msgstr ""1372 1373 #: settings.php:3421374 msgid "Repeated Recurring"1375 msgstr ""1376 1377 #: settings.php:3471378 msgid "Recurring Interval ID"1379 msgstr ""1380 1381 #: settings.php:3521382 msgid "Business ID"1383 msgstr ""1384 1385 #: settings.php:3601386 #: settings.php:4911387 1424 msgid "Password" 1388 1425 msgstr "" 1389 1426 1390 #: settings.php:3 651427 #: settings.php:372 1391 1428 msgid "Use CC Storage" 1392 1429 msgstr "" 1393 1430 1394 #: settings.php:37 21395 #: settings.php:3 781431 #: settings.php:379 1432 #: settings.php:385 1396 1433 msgid "None" 1397 1434 msgstr "" 1398 1435 1399 #: settings.php:37 21436 #: settings.php:379 1400 1437 msgid "Invoice / Receipt" 1401 1438 msgstr "" 1402 1439 1403 #: settings.php:37 21440 #: settings.php:379 1404 1441 msgid "Deal" 1405 1442 msgstr "" 1406 1443 1407 #: settings.php:37 21444 #: settings.php:379 1408 1445 msgid "Offer" 1409 1446 msgstr "" 1410 1447 1411 #: settings.php:37 21448 #: settings.php:379 1412 1449 msgid "Order" 1413 1450 msgstr "" 1414 1451 1415 #: settings.php:3 761452 #: settings.php:383 1416 1453 msgid "Document VAT Type" 1417 1454 msgstr "" 1418 1455 1419 #: settings.php:3 781456 #: settings.php:385 1420 1457 msgid "Included" 1421 1458 msgstr "" 1422 1459 1423 #: settings.php:3 781460 #: settings.php:385 1424 1461 msgid "Exempt" 1425 1462 msgstr "" 1426 1463 1427 #: settings.php:38 21464 #: settings.php:389 1428 1465 msgid "Auto invoice on installments" 1429 1466 msgstr "" 1430 1467 1431 #: settings.php:3 871468 #: settings.php:394 1432 1469 msgid "Email Document to Client" 1433 1470 msgstr "" 1434 1471 1435 #: settings.php:40 01472 #: settings.php:407 1436 1473 msgid "Seller ID" 1437 1474 msgstr "" 1438 1475 1439 #: settings.php:4 051476 #: settings.php:412 1440 1477 msgid "Client Key" 1441 1478 msgstr "" 1442 1479 1443 #: settings.php:41 01480 #: settings.php:417 1444 1481 msgid "Merchant Secret" 1445 1482 msgstr "" 1446 1483 1447 #: settings.php:4 151484 #: settings.php:422 1448 1485 msgid "Notify Client" 1449 1486 msgstr "" 1450 1487 1451 #: settings.php:421 1488 #: settings.php:428 1489 msgid "User ID" 1490 msgstr "" 1491 1492 #: settings.php:433 1493 msgid "Page Code (CC)" 1494 msgstr "" 1495 1496 #: settings.php:438 1497 msgid "Page Code (Subscriptions)" 1498 msgstr "" 1499 1500 #: settings.php:443 1501 msgid "Page Code (bit)" 1502 msgstr "" 1503 1504 #: settings.php:448 1505 #: settings.php:612 1506 msgid "API KEY" 1507 msgstr "" 1508 1509 #: settings.php:452 1510 msgid "Tokenize" 1511 msgstr "" 1512 1513 #: settings.php:457 1514 msgid "Commission" 1515 msgstr "" 1516 1517 #: settings.php:462 1452 1518 msgid "Payment Token" 1453 1519 msgstr "" 1454 1520 1455 #: settings.php:4 261456 #: settings.php:5 271521 #: settings.php:467 1522 #: settings.php:583 1457 1523 msgid "Create Tokens" 1458 1524 msgstr "" 1459 1525 1460 #: settings.php:4 311526 #: settings.php:472 1461 1527 msgid "Token Box" 1462 1528 msgstr "" 1463 1529 1464 #: settings.php:4 351530 #: settings.php:476 1465 1531 msgid "Apply Credit Above Payments" 1466 1532 msgstr "" 1467 1533 1468 #: settings.php:4 471534 #: settings.php:488 1469 1535 msgid "VAT Free" 1470 1536 msgstr "" 1471 1537 1472 #: settings.php:4 521538 #: settings.php:493 1473 1539 msgid "Company Name" 1474 1540 msgstr "" 1475 1541 1476 #: settings.php: 4621542 #: settings.php:503 1477 1543 msgid "Vendor Name" 1478 1544 msgstr "" 1479 1545 1480 #: settings.php: 4661546 #: settings.php:507 1481 1547 msgid "Company Key" 1482 1548 msgstr "" 1483 1549 1484 #: settings.php: 4721550 #: settings.php:513 1485 1551 msgid "Company Logo" 1486 1552 msgstr "" 1487 1553 1488 #: settings.php: 4761554 #: settings.php:517 1489 1555 msgid "Use CVV" 1490 1556 msgstr "" 1491 1557 1492 #: settings.php: 4831558 #: settings.php:524 1493 1559 msgid "Gateway URL" 1494 1560 msgstr "" 1495 1561 1496 #: settings.php: 4961562 #: settings.php:537 1497 1563 msgid "Terminal" 1498 1564 msgstr "" 1499 1565 1500 #: settings.php:5 001566 #: settings.php:541 1501 1567 msgid "Merchant ID" 1502 1568 msgstr "" 1503 1569 1504 #: settings.php:5 041570 #: settings.php:545 1505 1571 msgid "Supplier ID" 1506 1572 msgstr "" 1507 1573 1508 #: settings.php:5 081574 #: settings.php:549 1509 1575 msgid "Integration Mode" 1510 1576 msgstr "" 1511 1577 1512 #: settings.php:5 151578 #: settings.php:556 1513 1579 msgid "Check May Be Duplicate" 1514 1580 msgstr "" 1515 1581 1516 #: settings.php:538 1582 #: settings.php:561 1583 msgid "Use CVV on Payment Page" 1584 msgstr "" 1585 1586 #: settings.php:566 1587 msgid "Use Personal ID on Payment Page" 1588 msgstr "" 1589 1590 #: settings.php:571 1591 msgid "Use frameAncestorURLs Protection" 1592 msgstr "" 1593 1594 #: settings.php:594 1517 1595 msgid "Validation" 1518 1596 msgstr "" 1519 1597 1520 #: settings.php:546 1521 msgid "API KEY" 1598 #: settings.php:600 1599 msgid "Custom CSS" 1600 msgstr "" 1601 1602 #: settings.php:605 1603 msgid "Custom Texts ( JSON )" 1522 1604 msgstr "" 1523 1605 … … 1639 1721 #: templates/form-legacy.php:34 1640 1722 msgid "Debit card" 1641 msgstr ""1642 1643 #: templates/form-bootstrap-basic-id.php:311644 #: templates/form-bootstrap-basic.php:341645 #: templates/form-bootstrap.php:1471646 #: templates/form-donation.php:1591647 #: templates/form-experimental.php:1471648 #: templates/form-legacy.php:431649 #: templates/form-woocommerce.php:71650 msgid "Name on card"1651 1723 msgstr "" 1652 1724 … … 1792 1864 msgstr "" 1793 1865 1794 #: templates/form-bootstrap.php:361795 #: templates/form-cardcom-example.php:361796 #: templates/form-donation.php:481797 #: templates/form-experimental.php:361798 msgid "Phone"1799 msgstr ""1800 1801 1866 #: templates/form-bootstrap.php:39 1802 1867 #: templates/form-cardcom-example.php:39 -
simple-payment/tags/2.2.8/readme.txt
r2733393 r2758807 5 5 Requires at least: 4.6 6 6 Tested up to: 6.0 7 Stable tag: 2.2. 77 Stable tag: 2.2.8 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later -
simple-payment/tags/2.2.8/settings.php
r2724151 r2758807 82 82 'section' => 'icredit' 83 83 ], 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 84 91 'creditguard_settings' => [ 85 92 'title' => __('CreditGuard Gateway Settings', 'simple-payment'), … … 98 105 'title' => __('Engine', 'simple-payment'), 99 106 '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')]], 101 108 'mode' => [ //Mode 102 109 'title' => __('Mode', 'simple-payment'), … … 151 158 ], 152 159 'css' => [ 153 'title' => __( 'CSS', 'simple-payment'),160 'title' => __( 'CSS', 'simple-payment' ), 154 161 'type' => 'textarea' 155 162 ], … … 418 425 ], 419 426 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 420 461 'icredit.password' => [ 421 'title' => __( 'Payment Token', 'simple-payment'),462 'title' => __( 'Payment Token', 'simple-payment'), 422 463 'section' => 'icredit_settings', 423 464 'type' => 'password' … … 517 558 'section' => 'creditguard_settings' 518 559 ], 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 ], 519 575 'creditguard.language' => [ // Language 520 576 'title' => __( 'Force Language Interface', 'simple-payment' ), … … 541 597 'options' => [ 'NoComm' => 'NoComm', 'Normal' => 'Normal', 'CreditLimit' => 'CreditLimit', 'AutoComm' => 'AutoComm', 'Verify' => 'Verify', 'Dealer' => 'Dealer', 'AutoCommHold' => 'AutoCommHold', 'Token' => 'Token', 'AutoCommRelease' => 'AutoCommRelease', 'cardNo' => 'cardNo' ], 542 598 ], 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 544 610 545 611 'api_key' => [ -
simple-payment/tags/2.2.8/simple-payment-plugin.php
r2733393 r2758807 4 4 * Plugin URI: https://simple-payment.yalla-ya.com 5 5 * Description: Simple Payment enables integration with multiple payment gateways, and customize multiple payment forms. 6 * Version: 2.2. 76 * Version: 2.2.8 7 7 * Author: Ido Kobelkowsky / yalla ya! 8 8 * Author URI: https://github.com/idokd … … 45 45 46 46 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' ]; 48 48 49 49 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 ]; … … 79 79 public function __construct( $params = [] ) { 80 80 $option = get_option( 'sp' ) ? : []; 81 parent::__construct( a rray_merge( array_merge( $this->defaults, $params ), $option) );81 parent::__construct( apply_filters( 'sp_settings', array_merge( array_merge( $this->defaults, $params ), $option ) ) ); 82 82 self::$license = get_option( 'sp_license' ); 83 83 $plugin = get_file_data( __FILE__, array( 'Version' => 'Version' ), false ); … … 400 400 $tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'sp'; 401 401 $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' ] ); 403 403 ?> 404 404 <div class="wrap"> … … 787 787 788 788 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' ) ) ); 790 790 } 791 791 -
simple-payment/tags/2.2.8/templates/form-woocommerce.php
r2589463 r2758807 1 1 <?php 2 require( SPWP_PLUGIN_DIR.'/templates/preparation.php');2 require( SPWP_PLUGIN_DIR.'/templates/preparation.php' ); 3 3 ?> 4 4 <div class="col-md-8 order-md-1" id="simple-payment"> 5 <div class="row ">5 <div class="row form-row"> 6 6 <div class="col-md-6 mb-3"> 7 7 <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=""> 9 9 <small class="text-muted"><?php _e('Full name as displayed on card', 'simple-payment'); ?></small> 10 10 <div class="invalid-feedback"> … … 14 14 <div class="col-md-6 mb-3"> 15 15 <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"> 17 17 <div class="invalid-feedback"> 18 18 <?php _e('Credit card number is required.', 'simple-payment'); ?> … … 20 20 </div> 21 21 </div> 22 <div class="row ">22 <div class="row form-row"> 23 23 <div class="col-md-3 mb-3"> 24 24 <label for="cc-expiry-month"><?php _e('Expiration', 'simple-payment'); ?></label> … … 43 43 <div class="col-md-2 mb-3"> 44 44 <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"> 46 46 <div class="invalid-feedback"> 47 47 <?php _e('Required.', 'simple-payment'); ?> … … 61 61 </div> 62 62 <?php if (isset($owner_id) && $owner_id) { ?> 63 <div class="row ">63 <div class="row form-row"> 64 64 <div class="col-md-6 mb-3"> 65 65 <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 108 108 'response' => $response 109 109 ] ); 110 return( $data );110 return( $data ); 111 111 } 112 112 … … 177 177 178 178 public function post_process( $params ) { 179 $response = $_REQUEST; 179 180 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; 182 182 $this->transaction = $params[ 'txId' ]; 183 183 $token = ( isset( $params[ 'cardToken' ] ) && $params[ 'cardToken' ] ) ? $params[ 'cardToken' ] : null; … … 185 185 $uniqueId = ( isset( $params[ 'uniqueID' ] ) && $params[ 'uniqueID' ] ) ? $params[ 'uniqueID' ] : null; 186 186 $signature = hash( 'sha256', 187 $this->password . $this->transaction . $params[ 'ErrorCode' ]. $token . $params[ 'cardExp' ] . $owner_id . $uniqueId187 $this->password . $this->transaction . ( $params[ 'ErrorCode' ] ? : '000' ) . $token . $params[ 'cardExp' ] . $owner_id . $uniqueId 188 188 ); 189 189 $status = $status && $signature == $params[ 'responseMac' ]; 190 190 $this->save( [ 191 191 'transaction_id' => $this->transaction, 192 'url' => ': post_process',192 'url' => ':signature_process', 193 193 'status' => $status, 194 194 'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null, … … 196 196 'response' => json_encode( $response ) 197 197 ] ); 198 if ( $status ) $status = $this->verify(); 198 if ( $status ) { 199 $status = $this->verify(); 200 } 199 201 $expiration = $params[ 'cardExp' ]; 200 202 } else { 201 203 $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 } 207 207 $this->confirmation_code = $params[ 'authNumber' ]; 208 $response = $_REQUEST;209 208 $args = [ 210 209 'transaction_id' => $this->transaction, 211 'url' => ' :verify_process',210 'url' => 'post_process', 212 211 'status' => isset( $params[ 'status' ] ) ? $params[ 'status' ] : '', 213 212 'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null, … … 215 214 'response' => $this->param( 'mode' ) == 'redirect' ? json_encode( $response ) : null, 216 215 ]; 217 218 216 // TODO: should we consider the engine confirmation for keeping tokens? 219 217 if ( $status && $token && $this->param( 'tokenize' ) ) $args[ 'token' ] = [ … … 311 309 312 310 //$this->param('tokenize') ? true : false; 313 311 // TODO: implement 314 312 // paymentPageData 315 313 // useId, useCvv, customStyle, customText, iframeAnchestor 314 316 315 $response = $this->post( 'doDeal', $post ); 317 316 $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 9 9 } 10 10 11 class Engine {11 abstract class Engine { 12 12 13 13 public static $name = 'Base'; -
simple-payment/tags/2.2.8/vendor/yalla-ya/simple-payment/Engines/iCount.php
r2730843 r2758807 26 26 public static $supports = [ 'cvv', 'tokenization', 'card_owner_id' ]; 27 27 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 // 28 38 public static function is_subscription( $params ) { 29 39 if ( !isset( $params[ 'payments' ] ) ) return( false ); -
simple-payment/tags/2.2.8/vendor/yalla-ya/simple-payment/SimplePayment.php
r2733391 r2758807 52 52 if ( !$this->is_cli() && ( !isset( $_SERVER[ 'HTTPS' ] ) || !$_SERVER[ 'HTTPS' ] ) ) throw new Exception( 'HTTPS_REQUIRED_LIVE_TRANSACTIONS', 500 ); 53 53 } 54 $class = __NAMESPACE__ . '\\Engines\\' . $engine;54 $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine; 55 55 $settings = self::param( strtolower( isset( $class::$name ) ? $class::$name : $engine ) ); 56 56 foreach ( self::$params as $key => $value ) if ( !is_array( $value ) && !isset( $settings[ $key ] ) ) $settings[ $key ] = $value; … … 62 62 $engine = $this->engine; 63 63 $class = get_class($this->engine); 64 } else $class = __NAMESPACE__ . '\\Engines\\' . $engine;64 } else $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine; 65 65 return(in_array($feature, $class::$supports) || self::param(strtolower($engine).'.'.$feature)); 66 66 } -
simple-payment/trunk/addons/gravityforms/init.php
r2733391 r2758807 99 99 $this->SPWP = SimplePaymentPlugin::instance(); 100 100 $this->_version = $this->SPWP::$version; 101 102 101 } 103 102 … … 182 181 'name' => 'settings', 183 182 'label' => esc_html__( 'Settings', 'simple-payment' ), 184 'type' => ' textarea',183 'type' => 'json', 185 184 'class' => 'medium', 186 185 'tooltip' => '<h6>' . esc_html__( 'Custom & advanced checkout settings', 'simple-payment' ) . '</h6>' . esc_html__( 'Use if carefully', 'simple-payment' ), … … 188 187 ) 189 188 ) 190 );189 ); 191 190 } 192 191 … … 208 207 */ 209 208 public function feed_settings_fields() { 209 require_once( 'class-json.php' ); 210 210 $default_settings = parent::feed_settings_fields(); 211 211 … … 429 429 'required' => false, 430 430 ), 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 ), 431 441 ); 432 442 return array_merge( $fields, parent::billing_info_fields() ); … … 529 539 530 540 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://'; 532 543 $server_port = apply_filters( 'gform_simplepayment_return_url_port', $_SERVER['SERVER_PORT'] ); 533 544 if ( $server_port != '80' && $server_port != 443) { … … 535 546 } else { 536 547 $pageURL .= $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; 537 } 548 }*/ 549 $pageURL = site_url( $_SERVER[ 'REQUEST_URI' ] ); 538 550 $ids_query = "ids={$form_id}|{$lead_id}"; 539 551 $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 ); 542 554 /** 543 555 * Filters SimplePayment's return URL, which is the URL that users will be sent to after completing the payment on SimplePayment's site. … … 551 563 * @param string $query The query string portion of the URL. 552 564 */ 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 ) ); 554 566 } 555 567 … … 658 670 659 671 $this->add_sp_pre_process( $feed, $submission_data, $form, $entry ); 660 661 672 $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form['id'], $submission_data, $feed, $entry ); 662 673 GFAPI::update_entry_property( $entry['id'], 'payment_method', 'SimplePayment' ); … … 685 696 GFSimplePayment::$params = $params; 686 697 $this->redirect_url = null; 687 add_filter( 'gform_confirmation', function ( $confirmation, $form, $entry, $ajax ) {698 add_filter( 'gform_confirmation', function ( $confirmation, $form, $entry, $ajax ) { 688 699 if (isset($confirmation['redirect'])) { 689 700 $url = esc_url_raw( $confirmation['redirect'] ); … … 695 706 // otherwise preset html/text from confirmation 696 707 $confirmation = $this->SPWP->checkout(GFSimplePayment::$params); 697 708 remove_all_filters( 'gform_confirmation' ); 698 709 return $confirmation; 699 710 }, 10, 4 ); … … 751 762 */ 752 763 $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 754 764 $this->add_sp_pre_process( $feed, $submission_data, $form, $entry ); 755 765 756 766 $params = apply_filters( 'gform_simplepayment_args_before_payment', $params, $form[ 'id' ], $submission_data, $feed, $entry ); 757 767 $is_subscription = $feed[ 'meta' ][ 'transactionType' ] == 'subscription'; 758 759 768 try { 760 769 $this->redirect_url = $this->SPWP->payment( $params, $engine ); … … 847 856 } else { 848 857 $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 } 853 864 } 854 865 … … 892 903 public function subscribe( $feed, $submission_data, $form, $entry ) { 893 904 $subscription = $this->authorize( $feed, $submission_data, $form, $entry ); 905 if ( $subscription === false ) return( false ); 894 906 $subscription[ 'is_success' ] = $subscription[ 'captured_payment' ][ 'is_success' ]; 895 907 $subscription[ 'subscription_id' ] = $subscription[ 'subscription_id' ]; … … 1214 1226 if ( $engine_field ) { 1215 1227 $engine = rgpost( "input_{$engine_field[0]->id}" ); 1216 if ($engine) $args[ 'engine'] = $engine;1228 if ($engine) $args[ 'engine' ] = $engine; 1217 1229 } 1218 1230 … … 1240 1252 // Customer Information 1241 1253 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']; 1244 1258 1245 1259 // Product Information … … 1300 1314 } 1301 1315 1302 public function settings_json( $field, $echo = true ) {1303 $field[ 'type'] = 'textarea'; //making sure type is set to textarea1316 /*public function settings_json( $field, $echo = true ) { 1317 $field[ 'type' ] = 'textarea'; //making sure type is set to textarea 1304 1318 $attributes = $this->get_field_attributes( $field ); 1305 1319 $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 ); 1311 1325 $html .= '<textarea 1312 1326 name="_gaddon_setting_' . $name . '" ' . 1313 1327 implode( ' ', $attributes ) . 1314 '>' . 1315 ( $value ? json_encode($value) : '').1328 '>' . 1329 ( $value ? json_encode( $value ) : '' ). 1316 1330 '</textarea>'; 1317 1331 … … 1325 1339 1326 1340 return $html; 1327 } 1341 }*/ 1328 1342 } 1329 1343 -
simple-payment/trunk/addons/woocommerce-subscriptions/init.php
r2448085 r2758807 43 43 }, 100, 2); 44 44 45 add_filter('sp_woocommerce_supports', function( $supports, $engine = null) {45 add_filter('sp_woocommerce_supports', function( $supports, $engine = null ) { 46 46 // 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 ); 49 49 50 50 function sp_wcs_test($order_id) { -
simple-payment/trunk/addons/woocommerce/init.php
r2589463 r2758807 59 59 60 60 public function __construct() { 61 $supports = [ 'products', 'subscriptions', 'refunds', 'default_credit_card_form' ]; 62 61 63 $this->SPWP = SimplePaymentPlugin::instance(); 62 //63 64 $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 } 67 71 $this->method_title = __( 'Simple Payment', 'simple-payment' ); 68 72 $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 ); 70 78 71 79 // TODO: consider taking these values from the specific engine; tokenization, subscriptions … … 73 81 // 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 74 82 // 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' ); 76 84 77 85 // Load the settings. … … 88 96 add_action( 'woocommerce_thankyou_'.$this->id, array($this, 'thankyou_page')); 89 97 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' ) ); 91 99 add_action( "woocommerce_api_{$this}", array( $this, 'gateway_response' ) ); 92 100 … … 105 113 $this->description = ' '; 106 114 } 115 116 add_filter( 'woocommerce_credit_card_form_fields', [ $this, 'fields' ], 50, 2 ); 107 117 } 108 118 109 119 public function needs_setup() { 110 120 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' ) . ' <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' ) . ' <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 ); 111 155 } 112 156 … … 392 436 public function validate_fields() { 393 437 $ok = parent::validate_fields(); 394 if ( $this->has_fields) {438 if ( $this->has_fields ) { 395 439 $params = $this->params($_REQUEST); 396 440 $validations = $this->SPWP->validate($params); … … 426 470 if ($this->has_fields) { 427 471 // 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'])) { 433 479 $params[$this->SPWP::CARD_CVV] = $params[$this->id.'-card-cvc']; 434 480 $expiry = $params[$this->id.'-card-expiry']; … … 546 592 } 547 593 594 public function field_name( $name ) { 595 // $this->supports( 'tokenization' ) ? '' : 596 return ' name="' . esc_attr( $this->id . '-' . $name ) . '" '; 597 } 598 548 599 public function save_token( $payment_id, $user_id = 0 ) { 549 600 $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 ); 551 602 //$token_number = $transaction->Token; 552 603 //$token_card_type = $this->get_card_type( $transaction ); … … 554 605 //$token_expiry_month = substr( $transaction->CreditCardExpDate, 0, 2 ); 555 606 //$token_expiry_year = substr( date( 'Y' ), 0, 2 ) . substr( $transaction->CreditCardExpDate, -2 ); 556 require( 'payment-token.php');607 require( 'payment-token.php' ); 557 608 $token = new WC_Payment_Token_SimplePayment(); 558 609 $token->set_token( $transaction['transaction_id'] ); … … 632 683 ) ) ); 633 684 } 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 */ 634 712 } 635 713 -
simple-payment/trunk/languages/simple-payment.pot
r2733393 r2758807 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Simple Payment 2.2. 6\n"5 "Project-Id-Version: Simple Payment 2.2.7\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/simple-payment\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2022-0 5-29T09:51:34+00:00\n"12 "POT-Creation-Date: 2022-07-19T19:10:59+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.6.0\n" … … 17 17 #. Plugin Name of the plugin 18 18 #: addons/elementor/widget.php:31 19 #: addons/woocommerce/init.php: 6720 #: addons/woocommerce/init.php:1 3019 #: addons/woocommerce/init.php:71 20 #: addons/woocommerce/init.php:174 21 21 #: addons/wpjobboard/config.php:8 22 22 #: simple-payment-plugin.php:361 … … 73 73 74 74 #: addons/elementor/widget.php:97 75 #: addons/woocommerce/init.php: 17975 #: addons/woocommerce/init.php:223 76 76 #: addons/wpjobboard/config.php:34 77 77 msgid "Product" … … 97 97 #: addons/elementor/widget.php:123 98 98 #: addons/elementor/widget.php:137 99 #: settings.php:1 1999 #: settings.php:126 100 100 msgid "Bootstrap Basic" 101 101 msgstr "" … … 103 103 #: addons/elementor/widget.php:124 104 104 #: addons/elementor/widget.php:147 105 #: addons/gravityforms/init.php:17 6105 #: addons/gravityforms/init.php:175 106 106 #: addons/gravityforms/init.php:368 107 #: addons/woocommerce/init.php:2 03107 #: addons/woocommerce/init.php:247 108 108 #: addons/wpjobboard/config.php:47 109 109 msgid "Template" … … 120 120 121 121 #: addons/elementor/widget.php:136 122 #: settings.php:1 19122 #: settings.php:126 123 123 msgid "Legacy" 124 124 msgstr "" 125 125 126 126 #: addons/elementor/widget.php:138 127 #: settings.php:1 19127 #: settings.php:126 128 128 msgid "Bootstrap" 129 129 msgstr "" … … 143 143 144 144 #: addons/elementor/widget.php:160 145 #: addons/gravityforms/init.php:14 8145 #: addons/gravityforms/init.php:147 146 146 #: addons/gravityforms/init.php:325 147 147 msgid "IFRAME" … … 149 149 150 150 #: addons/elementor/widget.php:161 151 #: addons/gravityforms/init.php:15 2151 #: addons/gravityforms/init.php:151 152 152 #: addons/gravityforms/init.php:329 153 153 msgid "Modal" … … 175 175 176 176 #: addons/elementor/widget.php:184 177 #: settings.php:1 15177 #: settings.php:122 178 178 msgid "Redirect URL" 179 179 msgstr "" … … 184 184 185 185 #: addons/elementor/widget.php:204 186 #: addons/gravityforms/init.php:13 1186 #: addons/gravityforms/init.php:130 187 187 #: addons/gravityforms/init.php:306 188 #: addons/woocommerce/init.php:1 48188 #: addons/woocommerce/init.php:192 189 189 #: addons/wpjobboard/config.php:12 190 190 #: admin/transaction-list-table.php:242 191 #: settings.php: 98191 #: settings.php:105 192 192 msgid "Engine" 193 193 msgstr "" … … 198 198 199 199 #: addons/elementor/widget.php:221 200 #: addons/gravityforms/init.php:16 4200 #: addons/gravityforms/init.php:163 201 201 #: addons/gravityforms/init.php:341 202 #: addons/woocommerce/init.php:195 202 #: addons/woocommerce/init.php:148 203 #: addons/woocommerce/init.php:239 203 204 #: addons/wpjobboard/config.php:41 204 205 #: templates/form-bootstrap-basic-id.php:76 … … 224 225 msgstr "" 225 226 226 #: addons/gravityforms/init.php:11 9227 #: addons/gravityforms/init.php:118 227 228 msgid "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" 228 229 msgstr "" 229 230 230 #: addons/gravityforms/init.php:13 3231 #: addons/gravityforms/init.php:132 231 232 #: addons/gravityforms/init.php:309 232 #: addons/woocommerce/init.php:1 50233 #: addons/woocommerce/init.php:194 233 234 msgid "Select Payment Gateway" 234 235 msgstr "" 235 236 236 #: addons/gravityforms/init.php:13 3237 #: addons/gravityforms/init.php:132 237 238 #: addons/gravityforms/init.php:309 238 239 msgid "If none selected it will use Simple Payment default" 239 240 msgstr "" 240 241 241 #: addons/gravityforms/init.php:13 9242 #: addons/gravityforms/init.php:14 1242 #: addons/gravityforms/init.php:138 243 #: addons/gravityforms/init.php:140 243 244 #: addons/gravityforms/init.php:315 244 245 #: addons/gravityforms/init.php:318 245 #: addons/woocommerce/init.php: 162246 #: addons/woocommerce/init.php: 164246 #: addons/woocommerce/init.php:206 247 #: addons/woocommerce/init.php:208 247 248 #: addons/wpjobboard/config.php:23 248 249 msgid "Display Method" 249 250 msgstr "" 250 251 251 #: addons/gravityforms/init.php:14 1252 #: addons/gravityforms/init.php:140 252 253 #: addons/gravityforms/init.php:318 253 #: addons/woocommerce/init.php:1 51254 #: addons/woocommerce/init.php: 165254 #: addons/woocommerce/init.php:195 255 #: addons/woocommerce/init.php:209 255 256 #: addons/wpjobboard/config.php:13 256 257 #: addons/wpjobboard/config.php:24 … … 258 259 msgstr "" 259 260 260 #: addons/gravityforms/init.php:14 4261 #: addons/gravityforms/init.php:143 261 262 #: addons/gravityforms/init.php:321 262 263 #: addons/wpjobboard/config.php:6 … … 264 265 msgstr "" 265 266 266 #: addons/gravityforms/init.php:15 6267 #: addons/gravityforms/init.php:155 267 268 #: addons/gravityforms/init.php:333 268 269 msgid "redirect" 269 270 msgstr "" 270 271 271 #: addons/gravityforms/init.php:16 6272 #: addons/gravityforms/init.php:165 272 273 #: addons/gravityforms/init.php:344 273 #: addons/woocommerce/init.php: 197274 #: addons/woocommerce/init.php:241 274 275 msgid "Enable Insallments" 275 276 msgstr "" 276 277 277 #: addons/gravityforms/init.php:16 6278 #: addons/gravityforms/init.php:165 278 279 #: addons/gravityforms/init.php:344 279 280 msgid "Enable installments on checkout page." 280 281 msgstr "" 281 282 282 #: addons/gravityforms/init.php:17 9283 #: addons/gravityforms/init.php:178 283 284 #: addons/gravityforms/init.php:372 284 #: addons/woocommerce/init.php:2 05285 #: addons/woocommerce/init.php:249 285 286 #: addons/wpjobboard/config.php:48 286 287 msgid "Custom checkout template form" 287 288 msgstr "" 288 289 289 #: addons/gravityforms/init.php:17 9290 #: addons/gravityforms/init.php:178 290 291 #: addons/gravityforms/init.php:372 291 #: addons/woocommerce/init.php:2 06292 #: addons/woocommerce/init.php:250 292 293 msgid "If you wish to use a custom form template." 293 294 msgstr "" 294 295 295 #: addons/gravityforms/init.php:18 3296 #: addons/gravityforms/init.php:182 296 297 #: addons/gravityforms/init.php:376 297 #: addons/woocommerce/init.php:2 11298 #: addons/woocommerce/init.php:255 298 299 #: addons/wpjobboard/config.php:53 299 300 msgid "Settings" 300 301 msgstr "" 301 302 302 #: addons/gravityforms/init.php:18 6303 #: addons/gravityforms/init.php:185 303 304 #: addons/gravityforms/init.php:380 304 #: addons/woocommerce/init.php:2 13305 #: addons/woocommerce/init.php:257 305 306 #: addons/wpjobboard/config.php:54 306 307 msgid "Custom & advanced checkout settings" 307 308 msgstr "" 308 309 309 #: addons/gravityforms/init.php:18 6310 #: addons/gravityforms/init.php:185 310 311 #: addons/gravityforms/init.php:380 311 #: addons/woocommerce/init.php:2 14312 #: addons/woocommerce/init.php:258 312 313 msgid "Use if carefully" 313 314 msgstr "" … … 404 405 msgstr "" 405 406 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 412 msgid "Phone" 413 msgstr "" 414 415 #: addons/gravityforms/init.php:438 416 msgid "Company" 417 msgstr "" 418 419 #: addons/gravityforms/init.php:952 407 420 msgid "Payment Completed" 408 421 msgstr "" 409 422 410 #: addons/gravityforms/init.php:9 41423 #: addons/gravityforms/init.php:953 411 424 msgid "Payment Failed" 412 425 msgstr "" 413 426 414 #: addons/gravityforms/init.php:9 42427 #: addons/gravityforms/init.php:954 415 428 msgid "Subscription Created" 416 429 msgstr "" 417 430 418 #: addons/gravityforms/init.php:1335 431 #: addons/gravityforms/init.php:1349 432 #: addons/woocommerce/init.php:132 419 433 #: templates/form-woocommerce.php:65 420 434 msgid "Card Owner ID" … … 429 443 msgstr "" 430 444 431 #: addons/woocommerce/init.php: 68445 #: addons/woocommerce/init.php:72 432 446 msgid "Allows integration of Simple Payment gateways into woocommerce" 433 447 msgstr "" 434 448 435 #: addons/woocommerce/init.php: 75449 #: addons/woocommerce/init.php:83 436 450 msgid "new payment method" 437 451 msgstr "" 438 452 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 461 msgid "Name on card" 462 msgstr "" 463 464 #: addons/woocommerce/init.php:165 440 465 msgid "Enable/Disable" 441 466 msgstr "" 442 467 443 #: addons/woocommerce/init.php:1 23468 #: addons/woocommerce/init.php:167 444 469 msgid "Enable Simple Payment" 445 470 msgstr "" 446 471 447 #: addons/woocommerce/init.php:1 27472 #: addons/woocommerce/init.php:171 448 473 msgid "Title" 449 474 msgstr "" 450 475 451 #: addons/woocommerce/init.php:1 29476 #: addons/woocommerce/init.php:173 452 477 msgid "This controls the title for the payment method the customer sees during checkout." 453 478 msgstr "" 454 479 455 #: addons/woocommerce/init.php:1 34480 #: addons/woocommerce/init.php:178 456 481 msgid "Description" 457 482 msgstr "" 458 483 459 #: addons/woocommerce/init.php:1 36484 #: addons/woocommerce/init.php:180 460 485 msgid "Payment method description that the customer will see on your checkout." 461 486 msgstr "" 462 487 463 #: addons/woocommerce/init.php:1 37488 #: addons/woocommerce/init.php:181 464 489 msgid "Please remit payment to Store Name upon pickup or delivery." 465 490 msgstr "" 466 491 467 #: addons/woocommerce/init.php:1 41492 #: addons/woocommerce/init.php:185 468 493 msgid "Instructions" 469 494 msgstr "" 470 495 471 #: addons/woocommerce/init.php:1 43496 #: addons/woocommerce/init.php:187 472 497 msgid "Instructions that will be added to the thank you page and emails." 473 498 msgstr "" 474 499 475 #: addons/woocommerce/init.php: 171500 #: addons/woocommerce/init.php:215 476 501 msgid "Show in Checkout" 477 502 msgstr "" 478 503 479 #: addons/woocommerce/init.php: 173504 #: addons/woocommerce/init.php:217 480 505 msgid "Show in Modal or IFRAME in Checkout page, instead of Order Review" 481 506 msgstr "" 482 507 483 #: addons/woocommerce/init.php: 175508 #: addons/woocommerce/init.php:219 484 509 msgid "For Modal & IFRAME Only, If none selected it will use Simple Payment default." 485 510 msgstr "" 486 511 487 #: addons/woocommerce/init.php: 181512 #: addons/woocommerce/init.php:225 488 513 msgid "Custom product name to use in Simple Payment" 489 514 msgstr "" 490 515 491 #: addons/woocommerce/init.php: 182516 #: addons/woocommerce/init.php:226 492 517 msgid "Simple Payment globalize the purchase to single product on the Payment Gateway." 493 518 msgstr "" 494 519 495 #: addons/woocommerce/init.php: 183520 #: addons/woocommerce/init.php:227 496 521 msgid "WooCommerce Order %s" 497 522 msgstr "" 498 523 499 #: addons/woocommerce/init.php: 187524 #: addons/woocommerce/init.php:231 500 525 msgid "Single Item Orders" 501 526 msgstr "" 502 527 503 #: addons/woocommerce/init.php: 189528 #: addons/woocommerce/init.php:233 504 529 msgid "Single Item Order use as Product Name" 505 530 msgstr "" 506 531 507 #: addons/woocommerce/init.php: 191532 #: addons/woocommerce/init.php:235 508 533 msgid "When order has a single item use item name as product name" 509 534 msgstr "" 510 535 511 #: addons/woocommerce/init.php: 199536 #: addons/woocommerce/init.php:243 512 537 #: addons/wpjobboard/config.php:42 513 538 msgid "Enable installments on checkout page" 514 539 msgstr "" 515 540 516 #: addons/woocommerce/init.php: 398541 #: addons/woocommerce/init.php:442 517 542 msgid "Payment error: %s" 518 543 msgstr "" 519 544 520 #: addons/woocommerce/init.php:5 26545 #: addons/woocommerce/init.php:572 521 546 msgid "Payment error: " 522 547 msgstr "" 523 548 524 #: addons/woocommerce/init.php:6 05549 #: addons/woocommerce/init.php:656 525 550 msgid "Pay for order" 526 551 msgstr "" 527 552 528 #: addons/woocommerce/init.php:6 29553 #: addons/woocommerce/init.php:680 529 554 msgid "Visa" 530 555 msgstr "" 531 556 532 #: addons/woocommerce/init.php:6 30557 #: addons/woocommerce/init.php:681 533 558 msgid "Mastercard" 534 559 msgstr "" 535 560 536 #: addons/woocommerce/init.php:6 31561 #: addons/woocommerce/init.php:682 537 562 msgid "American Express" 538 563 msgstr "" … … 742 767 #: admin/transaction-list-table.php:160 743 768 #: admin/transaction-list-table.php:181 744 #: settings.php:1 48769 #: settings.php:155 745 770 msgid "Archive" 746 771 msgstr "" … … 806 831 807 832 #: admin/transaction-list-table.php:253 808 #: settings.php:1 04833 #: settings.php:111 809 834 msgid "Sandbox" 810 835 msgstr "" … … 852 877 853 878 #: settings.php:6 854 #: settings.php:37 2879 #: settings.php:379 855 880 msgid "Invoice" 856 881 msgstr "" … … 865 890 866 891 #: settings.php:6 867 #: settings.php:37 2892 #: settings.php:379 868 893 msgid "Receipt" 869 894 msgstr "" … … 1005 1030 msgstr "" 1006 1031 1007 #: settings.php:85 1032 #: settings.php:86 1033 msgid "Meshulam Gateway Settings" 1034 msgstr "" 1035 1036 #: settings.php:87 1037 msgid "Setup your Simple Payment to accept Meshulam Payments" 1038 msgstr "" 1039 1040 #: settings.php:92 1008 1041 msgid "CreditGuard Gateway Settings" 1009 1042 msgstr "" 1010 1043 1011 #: settings.php: 861044 #: settings.php:93 1012 1045 msgid "Setup your Simple Payment to accept CreditGuard Payments" 1013 1046 msgstr "" 1014 1047 1015 #: settings.php:9 01048 #: settings.php:97 1016 1049 msgid "Credit 2000 Gateway Settings" 1017 1050 msgstr "" 1018 1051 1019 #: settings.php:9 11052 #: settings.php:98 1020 1053 msgid "Setup your Simple Payment to accept Credit 2000 Payments" 1021 1054 msgstr "" 1022 1055 1023 #: settings.php:10 01056 #: settings.php:107 1024 1057 #: templates/form-bootstrap.php:142 1025 1058 #: templates/form-donation.php:154 … … 1029 1062 msgstr "" 1030 1063 1031 #: settings.php:10 01064 #: settings.php:107 1032 1065 msgid "Cardcom" 1033 1066 msgstr "" 1034 1067 1035 #: settings.php:10 01068 #: settings.php:107 1036 1069 msgid "iCount" 1037 1070 msgstr "" 1038 1071 1039 #: settings.php:10 01072 #: settings.php:107 1040 1073 msgid "PayMe" 1041 1074 msgstr "" 1042 1075 1043 #: settings.php:10 01076 #: settings.php:107 1044 1077 msgid "iCredit" 1045 1078 msgstr "" 1046 1079 1047 #: settings.php:10 01080 #: settings.php:107 1048 1081 msgid "CreditGuard" 1049 1082 msgstr "" 1050 1083 1051 #: settings.php:100 1084 #: settings.php:107 1085 msgid "Meshulam" 1086 msgstr "" 1087 1088 #: settings.php:107 1052 1089 msgid "Credit2000" 1053 1090 msgstr "" 1054 1091 1055 #: settings.php:10 01092 #: settings.php:107 1056 1093 msgid "Custom" 1057 1094 msgstr "" 1058 1095 1059 #: settings.php:10 21096 #: settings.php:109 1060 1097 msgid "Mode" 1061 1098 msgstr "" 1062 1099 1063 #: settings.php:1 041100 #: settings.php:111 1064 1101 msgid "Live" 1065 1102 msgstr "" 1066 1103 1067 #: settings.php:1 061104 #: settings.php:113 1068 1105 msgid "Currency" 1069 1106 msgstr "" 1070 1107 1071 #: settings.php:11 01108 #: settings.php:117 1072 1109 #: simple-payment-plugin.php:321 1073 1110 #: simple-payment-plugin.php:354 … … 1075 1112 msgstr "" 1076 1113 1077 #: settings.php:1 131114 #: settings.php:120 1078 1115 msgid "Callback URL" 1079 1116 msgstr "" 1080 1117 1081 #: settings.php:1 171118 #: settings.php:124 1082 1119 msgid "Form Template" 1083 1120 msgstr "" 1084 1121 1085 #: settings.php:1 191122 #: settings.php:126 1086 1123 msgid "Experimental" 1087 1124 msgstr "" 1088 1125 1089 #: settings.php:12 11126 #: settings.php:128 1090 1127 msgid "Create Wordpress User" 1091 1128 msgstr "" 1092 1129 1093 #: settings.php:1 231130 #: settings.php:130 1094 1131 msgid "No Creation" 1095 1132 msgstr "" 1096 1133 1097 #: settings.php:1 231134 #: settings.php:130 1098 1135 msgid "Silent Creation" 1099 1136 msgstr "" 1100 1137 1101 #: settings.php:1 231138 #: settings.php:130 1102 1139 msgid "Registration" 1103 1140 msgstr "" 1104 1141 1105 #: settings.php:1 251142 #: settings.php:132 1106 1143 msgid "Create User Upon" 1107 1144 msgstr "" 1108 1145 1109 #: settings.php:1 271146 #: settings.php:134 1110 1147 msgid "Preprocessing" 1111 1148 msgstr "" 1112 1149 1113 #: settings.php:1 271150 #: settings.php:134 1114 1151 msgid "Post processing" 1115 1152 msgstr "" 1116 1153 1117 #: settings.php:13 01154 #: settings.php:137 1118 1155 msgid "Cron Schedule" 1119 1156 msgstr "" 1120 1157 1121 #: settings.php:13 21158 #: settings.php:139 1122 1159 msgid "Minute" 1123 1160 msgstr "" 1124 1161 1125 #: settings.php:13 21126 #: settings.php:1 371127 #: settings.php:1 431162 #: settings.php:139 1163 #: settings.php:144 1164 #: settings.php:150 1128 1165 msgid "10 Min" 1129 1166 msgstr "" 1130 1167 1131 #: settings.php:13 21132 #: settings.php:1 371133 #: settings.php:1 431168 #: settings.php:139 1169 #: settings.php:144 1170 #: settings.php:150 1134 1171 msgid "30 Min" 1135 1172 msgstr "" 1136 1173 1137 #: settings.php:13 21138 #: settings.php:1 371139 #: settings.php:1 431174 #: settings.php:139 1175 #: settings.php:144 1176 #: settings.php:150 1140 1177 msgid "1 Hour" 1141 1178 msgstr "" 1142 1179 1143 #: settings.php:13 21144 #: settings.php:1 371145 #: settings.php:1 431180 #: settings.php:139 1181 #: settings.php:144 1182 #: settings.php:150 1146 1183 msgid "12 Hours" 1147 1184 msgstr "" 1148 1185 1149 #: settings.php:13 21150 #: settings.php:1 371151 #: settings.php:1 431186 #: settings.php:139 1187 #: settings.php:144 1188 #: settings.php:150 1152 1189 msgid "1 Day" 1153 1190 msgstr "" 1154 1191 1155 #: settings.php:13 21156 #: settings.php:1 371157 #: settings.php:1 431192 #: settings.php:139 1193 #: settings.php:144 1194 #: settings.php:150 1158 1195 msgid "3 Days" 1159 1196 msgstr "" 1160 1197 1161 #: settings.php:13 21162 #: settings.php:1 371163 #: settings.php:1 431198 #: settings.php:139 1199 #: settings.php:144 1200 #: settings.php:150 1164 1201 msgid "7 Days" 1165 1202 msgstr "" 1166 1203 1167 #: settings.php:13 21168 #: settings.php:1 371169 #: settings.php:1 431204 #: settings.php:139 1205 #: settings.php:144 1206 #: settings.php:150 1170 1207 msgid "30 Days" 1171 1208 msgstr "" 1172 1209 1173 #: settings.php:1 351210 #: settings.php:142 1174 1211 msgid "Auto Transaction Verification" 1175 1212 msgstr "" 1176 1213 1177 #: settings.php:14 11214 #: settings.php:148 1178 1215 msgid "Fail Pending Transaction" 1179 1216 msgstr "" 1180 1217 1181 #: settings.php:1 461218 #: settings.php:153 1182 1219 msgid "Purge Transactions" 1183 1220 msgstr "" 1184 1221 1185 #: settings.php:1 481186 #: settings.php:3 191187 #: settings.php: 3961222 #: settings.php:155 1223 #: settings.php:326 1224 #: settings.php:403 1188 1225 msgid "Disabled" 1189 1226 msgstr "" 1190 1227 1191 #: settings.php:1 481228 #: settings.php:155 1192 1229 msgid "Purge" 1193 1230 msgstr "" 1194 1231 1195 #: settings.php:1 481232 #: settings.php:155 1196 1233 msgid "Archive & Purge" 1197 1234 msgstr "" 1198 1235 1199 #: settings.php:15 01236 #: settings.php:157 1200 1237 msgid "Purge Period (days)" 1201 1238 msgstr "" 1202 1239 1203 #: settings.php:1 531204 #: settings.php: 2931240 #: settings.php:160 1241 #: settings.php:300 1205 1242 msgid "CSS" 1206 1243 msgstr "" 1207 1244 1208 #: settings.php:1 571245 #: settings.php:164 1209 1246 msgid "Upon Uninstall" 1210 1247 msgstr "" 1211 1248 1212 #: settings.php:16 11249 #: settings.php:168 1213 1250 msgid "Keep Database & Settings" 1214 1251 msgstr "" 1215 1252 1216 #: settings.php:16 11253 #: settings.php:168 1217 1254 msgid "Erase Settings" 1218 1255 msgstr "" 1219 1256 1220 #: settings.php:16 11257 #: settings.php:168 1221 1258 msgid "Erase Database" 1222 1259 msgstr "" 1223 1260 1224 #: settings.php:16 11261 #: settings.php:168 1225 1262 msgid "Erase All Database & Settings" 1226 1263 msgstr "" 1227 1264 1228 #: settings.php:1 641265 #: settings.php:171 1229 1266 msgid "Min # of Payments" 1230 1267 msgstr "" 1231 1268 1232 #: settings.php:17 01269 #: settings.php:177 1233 1270 msgid "Max # of Payments" 1234 1271 msgstr "" 1235 1272 1236 #: settings.php:1 761273 #: settings.php:183 1237 1274 msgid "Default # of Payments" 1238 1275 msgstr "" 1239 1276 1240 #: settings.php:1 831277 #: settings.php:190 1241 1278 msgid "Client ID" 1242 1279 msgstr "" 1243 1280 1244 #: settings.php:1 861281 #: settings.php:193 1245 1282 msgid "Client Secret" 1246 1283 msgstr "" 1247 1284 1248 #: settings.php:19 01285 #: settings.php:197 1249 1286 msgid "Business" 1250 1287 msgstr "" 1251 1288 1252 #: settings.php: 1931289 #: settings.php:200 1253 1290 msgid "Hosted Button ID" 1254 1291 msgstr "" 1255 1292 1256 #: settings.php: 1971293 #: settings.php:204 1257 1294 msgid "Terminal ID" 1258 1295 msgstr "" 1259 1296 1260 #: settings.php:20 11261 #: settings.php:3 561262 #: settings.php: 4871297 #: settings.php:208 1298 #: settings.php:363 1299 #: settings.php:528 1263 1300 msgid "Username" 1264 1301 msgstr "" 1265 1302 1266 #: settings.php:2 051303 #: settings.php:212 1267 1304 msgid "API Password" 1268 1305 msgstr "" 1269 1306 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 1311 msgid "Operation" 1312 msgstr "" 1313 1314 #: settings.php:223 1315 #: settings.php:576 1316 msgid "Force Language Interface" 1317 msgstr "" 1318 1319 #: settings.php:230 1320 msgid "Credit Type" 1321 msgstr "" 1322 1323 #: settings.php:238 1324 msgid "Name field settings" 1325 msgstr "" 1326 1327 #: settings.php:244 1328 msgid "Phone field settings" 1329 msgstr "" 1330 1331 #: settings.php:250 1332 msgid "Email field settings" 1333 msgstr "" 1334 1335 #: settings.php:256 1336 msgid "Hide Credit Card User ID" 1337 msgstr "" 1338 1339 #: settings.php:261 1340 msgid "Invoice Processing" 1341 msgstr "" 1342 1343 #: settings.php:268 1344 #: settings.php:377 1345 msgid "Document Type Upon Success" 1346 msgstr "" 1347 1348 #: settings.php:276 1349 msgid "Auto Create/Update Account" 1350 msgstr "" 1351 1352 #: settings.php:281 1353 msgid "Load Account Info to Invoice" 1354 msgstr "" 1355 1356 #: settings.php:287 1357 msgid "Information to print on document" 1358 msgstr "" 1359 1360 #: settings.php:295 1361 msgid "Show Invoice Information" 1362 msgstr "" 1363 1364 #: settings.php:306 1365 msgid "Prices Globally VAT Free" 1366 msgstr "" 1367 1368 #: settings.php:311 1369 msgid "Email Invoice to Client" 1370 msgstr "" 1371 1372 #: settings.php:316 1373 msgid "Department ID" 1374 msgstr "" 1375 1376 #: settings.php:318 1377 msgid "Numeric ID" 1378 msgstr "" 1379 1380 #: settings.php:323 1381 #: settings.php:400 1382 msgid "Enable Recurring (Direct Debit) Payments" 1383 msgstr "" 1384 1385 #: settings.php:326 1386 #: settings.php:403 1387 msgid "Provider" 1388 msgstr "" 1389 1390 #: settings.php:330 1391 msgid "Process Recurring Upon" 1392 msgstr "" 1393 1394 #: settings.php:333 1395 msgid "Post Process" 1396 msgstr "" 1397 1398 #: settings.php:333 1399 msgid "Status Process" 1400 msgstr "" 1401 1402 #: settings.php:337 1403 msgid "Direct Debit Terminal" 1404 msgstr "" 1405 1406 #: settings.php:342 1407 msgid "Direct Debit Operation" 1408 msgstr "" 1409 1410 #: settings.php:349 1411 msgid "Repeated Recurring" 1412 msgstr "" 1413 1414 #: settings.php:354 1415 msgid "Recurring Interval ID" 1416 msgstr "" 1417 1418 #: settings.php:359 1419 msgid "Business ID" 1420 msgstr "" 1421 1422 #: settings.php:367 1273 1423 #: settings.php:532 1274 msgid "Operation"1275 msgstr ""1276 1277 #: settings.php:2161278 #: settings.php:5201279 msgid "Force Language Interface"1280 msgstr ""1281 1282 #: settings.php:2231283 msgid "Credit Type"1284 msgstr ""1285 1286 #: settings.php:2311287 msgid "Name field settings"1288 msgstr ""1289 1290 #: settings.php:2371291 msgid "Phone field settings"1292 msgstr ""1293 1294 #: settings.php:2431295 msgid "Email field settings"1296 msgstr ""1297 1298 #: settings.php:2491299 msgid "Hide Credit Card User ID"1300 msgstr ""1301 1302 #: settings.php:2541303 msgid "Invoice Processing"1304 msgstr ""1305 1306 #: settings.php:2611307 #: settings.php:3701308 msgid "Document Type Upon Success"1309 msgstr ""1310 1311 #: settings.php:2691312 msgid "Auto Create/Update Account"1313 msgstr ""1314 1315 #: settings.php:2741316 msgid "Load Account Info to Invoice"1317 msgstr ""1318 1319 #: settings.php:2801320 msgid "Information to print on document"1321 msgstr ""1322 1323 #: settings.php:2881324 msgid "Show Invoice Information"1325 msgstr ""1326 1327 #: settings.php:2991328 msgid "Prices Globally VAT Free"1329 msgstr ""1330 1331 #: settings.php:3041332 msgid "Email Invoice to Client"1333 msgstr ""1334 1335 #: settings.php:3091336 msgid "Department ID"1337 msgstr ""1338 1339 #: settings.php:3111340 msgid "Numeric ID"1341 msgstr ""1342 1343 #: settings.php:3161344 #: settings.php:3931345 msgid "Enable Recurring (Direct Debit) Payments"1346 msgstr ""1347 1348 #: settings.php:3191349 #: settings.php:3961350 msgid "Provider"1351 msgstr ""1352 1353 #: settings.php:3231354 msgid "Process Recurring Upon"1355 msgstr ""1356 1357 #: settings.php:3261358 msgid "Post Process"1359 msgstr ""1360 1361 #: settings.php:3261362 msgid "Status Process"1363 msgstr ""1364 1365 #: settings.php:3301366 msgid "Direct Debit Terminal"1367 msgstr ""1368 1369 #: settings.php:3351370 msgid "Direct Debit Operation"1371 msgstr ""1372 1373 #: settings.php:3421374 msgid "Repeated Recurring"1375 msgstr ""1376 1377 #: settings.php:3471378 msgid "Recurring Interval ID"1379 msgstr ""1380 1381 #: settings.php:3521382 msgid "Business ID"1383 msgstr ""1384 1385 #: settings.php:3601386 #: settings.php:4911387 1424 msgid "Password" 1388 1425 msgstr "" 1389 1426 1390 #: settings.php:3 651427 #: settings.php:372 1391 1428 msgid "Use CC Storage" 1392 1429 msgstr "" 1393 1430 1394 #: settings.php:37 21395 #: settings.php:3 781431 #: settings.php:379 1432 #: settings.php:385 1396 1433 msgid "None" 1397 1434 msgstr "" 1398 1435 1399 #: settings.php:37 21436 #: settings.php:379 1400 1437 msgid "Invoice / Receipt" 1401 1438 msgstr "" 1402 1439 1403 #: settings.php:37 21440 #: settings.php:379 1404 1441 msgid "Deal" 1405 1442 msgstr "" 1406 1443 1407 #: settings.php:37 21444 #: settings.php:379 1408 1445 msgid "Offer" 1409 1446 msgstr "" 1410 1447 1411 #: settings.php:37 21448 #: settings.php:379 1412 1449 msgid "Order" 1413 1450 msgstr "" 1414 1451 1415 #: settings.php:3 761452 #: settings.php:383 1416 1453 msgid "Document VAT Type" 1417 1454 msgstr "" 1418 1455 1419 #: settings.php:3 781456 #: settings.php:385 1420 1457 msgid "Included" 1421 1458 msgstr "" 1422 1459 1423 #: settings.php:3 781460 #: settings.php:385 1424 1461 msgid "Exempt" 1425 1462 msgstr "" 1426 1463 1427 #: settings.php:38 21464 #: settings.php:389 1428 1465 msgid "Auto invoice on installments" 1429 1466 msgstr "" 1430 1467 1431 #: settings.php:3 871468 #: settings.php:394 1432 1469 msgid "Email Document to Client" 1433 1470 msgstr "" 1434 1471 1435 #: settings.php:40 01472 #: settings.php:407 1436 1473 msgid "Seller ID" 1437 1474 msgstr "" 1438 1475 1439 #: settings.php:4 051476 #: settings.php:412 1440 1477 msgid "Client Key" 1441 1478 msgstr "" 1442 1479 1443 #: settings.php:41 01480 #: settings.php:417 1444 1481 msgid "Merchant Secret" 1445 1482 msgstr "" 1446 1483 1447 #: settings.php:4 151484 #: settings.php:422 1448 1485 msgid "Notify Client" 1449 1486 msgstr "" 1450 1487 1451 #: settings.php:421 1488 #: settings.php:428 1489 msgid "User ID" 1490 msgstr "" 1491 1492 #: settings.php:433 1493 msgid "Page Code (CC)" 1494 msgstr "" 1495 1496 #: settings.php:438 1497 msgid "Page Code (Subscriptions)" 1498 msgstr "" 1499 1500 #: settings.php:443 1501 msgid "Page Code (bit)" 1502 msgstr "" 1503 1504 #: settings.php:448 1505 #: settings.php:612 1506 msgid "API KEY" 1507 msgstr "" 1508 1509 #: settings.php:452 1510 msgid "Tokenize" 1511 msgstr "" 1512 1513 #: settings.php:457 1514 msgid "Commission" 1515 msgstr "" 1516 1517 #: settings.php:462 1452 1518 msgid "Payment Token" 1453 1519 msgstr "" 1454 1520 1455 #: settings.php:4 261456 #: settings.php:5 271521 #: settings.php:467 1522 #: settings.php:583 1457 1523 msgid "Create Tokens" 1458 1524 msgstr "" 1459 1525 1460 #: settings.php:4 311526 #: settings.php:472 1461 1527 msgid "Token Box" 1462 1528 msgstr "" 1463 1529 1464 #: settings.php:4 351530 #: settings.php:476 1465 1531 msgid "Apply Credit Above Payments" 1466 1532 msgstr "" 1467 1533 1468 #: settings.php:4 471534 #: settings.php:488 1469 1535 msgid "VAT Free" 1470 1536 msgstr "" 1471 1537 1472 #: settings.php:4 521538 #: settings.php:493 1473 1539 msgid "Company Name" 1474 1540 msgstr "" 1475 1541 1476 #: settings.php: 4621542 #: settings.php:503 1477 1543 msgid "Vendor Name" 1478 1544 msgstr "" 1479 1545 1480 #: settings.php: 4661546 #: settings.php:507 1481 1547 msgid "Company Key" 1482 1548 msgstr "" 1483 1549 1484 #: settings.php: 4721550 #: settings.php:513 1485 1551 msgid "Company Logo" 1486 1552 msgstr "" 1487 1553 1488 #: settings.php: 4761554 #: settings.php:517 1489 1555 msgid "Use CVV" 1490 1556 msgstr "" 1491 1557 1492 #: settings.php: 4831558 #: settings.php:524 1493 1559 msgid "Gateway URL" 1494 1560 msgstr "" 1495 1561 1496 #: settings.php: 4961562 #: settings.php:537 1497 1563 msgid "Terminal" 1498 1564 msgstr "" 1499 1565 1500 #: settings.php:5 001566 #: settings.php:541 1501 1567 msgid "Merchant ID" 1502 1568 msgstr "" 1503 1569 1504 #: settings.php:5 041570 #: settings.php:545 1505 1571 msgid "Supplier ID" 1506 1572 msgstr "" 1507 1573 1508 #: settings.php:5 081574 #: settings.php:549 1509 1575 msgid "Integration Mode" 1510 1576 msgstr "" 1511 1577 1512 #: settings.php:5 151578 #: settings.php:556 1513 1579 msgid "Check May Be Duplicate" 1514 1580 msgstr "" 1515 1581 1516 #: settings.php:538 1582 #: settings.php:561 1583 msgid "Use CVV on Payment Page" 1584 msgstr "" 1585 1586 #: settings.php:566 1587 msgid "Use Personal ID on Payment Page" 1588 msgstr "" 1589 1590 #: settings.php:571 1591 msgid "Use frameAncestorURLs Protection" 1592 msgstr "" 1593 1594 #: settings.php:594 1517 1595 msgid "Validation" 1518 1596 msgstr "" 1519 1597 1520 #: settings.php:546 1521 msgid "API KEY" 1598 #: settings.php:600 1599 msgid "Custom CSS" 1600 msgstr "" 1601 1602 #: settings.php:605 1603 msgid "Custom Texts ( JSON )" 1522 1604 msgstr "" 1523 1605 … … 1639 1721 #: templates/form-legacy.php:34 1640 1722 msgid "Debit card" 1641 msgstr ""1642 1643 #: templates/form-bootstrap-basic-id.php:311644 #: templates/form-bootstrap-basic.php:341645 #: templates/form-bootstrap.php:1471646 #: templates/form-donation.php:1591647 #: templates/form-experimental.php:1471648 #: templates/form-legacy.php:431649 #: templates/form-woocommerce.php:71650 msgid "Name on card"1651 1723 msgstr "" 1652 1724 … … 1792 1864 msgstr "" 1793 1865 1794 #: templates/form-bootstrap.php:361795 #: templates/form-cardcom-example.php:361796 #: templates/form-donation.php:481797 #: templates/form-experimental.php:361798 msgid "Phone"1799 msgstr ""1800 1801 1866 #: templates/form-bootstrap.php:39 1802 1867 #: templates/form-cardcom-example.php:39 -
simple-payment/trunk/readme.txt
r2733393 r2758807 5 5 Requires at least: 4.6 6 6 Tested up to: 6.0 7 Stable tag: 2.2. 77 Stable tag: 2.2.8 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later -
simple-payment/trunk/settings.php
r2724151 r2758807 82 82 'section' => 'icredit' 83 83 ], 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 84 91 'creditguard_settings' => [ 85 92 'title' => __('CreditGuard Gateway Settings', 'simple-payment'), … … 98 105 'title' => __('Engine', 'simple-payment'), 99 106 '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')]], 101 108 'mode' => [ //Mode 102 109 'title' => __('Mode', 'simple-payment'), … … 151 158 ], 152 159 'css' => [ 153 'title' => __( 'CSS', 'simple-payment'),160 'title' => __( 'CSS', 'simple-payment' ), 154 161 'type' => 'textarea' 155 162 ], … … 418 425 ], 419 426 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 420 461 'icredit.password' => [ 421 'title' => __( 'Payment Token', 'simple-payment'),462 'title' => __( 'Payment Token', 'simple-payment'), 422 463 'section' => 'icredit_settings', 423 464 'type' => 'password' … … 517 558 'section' => 'creditguard_settings' 518 559 ], 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 ], 519 575 'creditguard.language' => [ // Language 520 576 'title' => __( 'Force Language Interface', 'simple-payment' ), … … 541 597 'options' => [ 'NoComm' => 'NoComm', 'Normal' => 'Normal', 'CreditLimit' => 'CreditLimit', 'AutoComm' => 'AutoComm', 'Verify' => 'Verify', 'Dealer' => 'Dealer', 'AutoCommHold' => 'AutoCommHold', 'Token' => 'Token', 'AutoCommRelease' => 'AutoCommRelease', 'cardNo' => 'cardNo' ], 542 598 ], 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 544 610 545 611 'api_key' => [ -
simple-payment/trunk/simple-payment-plugin.php
r2733393 r2758807 4 4 * Plugin URI: https://simple-payment.yalla-ya.com 5 5 * Description: Simple Payment enables integration with multiple payment gateways, and customize multiple payment forms. 6 * Version: 2.2. 76 * Version: 2.2.8 7 7 * Author: Ido Kobelkowsky / yalla ya! 8 8 * Author URI: https://github.com/idokd … … 45 45 46 46 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' ]; 48 48 49 49 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 ]; … … 79 79 public function __construct( $params = [] ) { 80 80 $option = get_option( 'sp' ) ? : []; 81 parent::__construct( a rray_merge( array_merge( $this->defaults, $params ), $option) );81 parent::__construct( apply_filters( 'sp_settings', array_merge( array_merge( $this->defaults, $params ), $option ) ) ); 82 82 self::$license = get_option( 'sp_license' ); 83 83 $plugin = get_file_data( __FILE__, array( 'Version' => 'Version' ), false ); … … 400 400 $tab = isset($_GET['tab']) ? sanitize_text_field($_GET['tab']) : 'sp'; 401 401 $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' ] ); 403 403 ?> 404 404 <div class="wrap"> … … 787 787 788 788 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' ) ) ); 790 790 } 791 791 -
simple-payment/trunk/templates/form-woocommerce.php
r2589463 r2758807 1 1 <?php 2 require( SPWP_PLUGIN_DIR.'/templates/preparation.php');2 require( SPWP_PLUGIN_DIR.'/templates/preparation.php' ); 3 3 ?> 4 4 <div class="col-md-8 order-md-1" id="simple-payment"> 5 <div class="row ">5 <div class="row form-row"> 6 6 <div class="col-md-6 mb-3"> 7 7 <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=""> 9 9 <small class="text-muted"><?php _e('Full name as displayed on card', 'simple-payment'); ?></small> 10 10 <div class="invalid-feedback"> … … 14 14 <div class="col-md-6 mb-3"> 15 15 <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"> 17 17 <div class="invalid-feedback"> 18 18 <?php _e('Credit card number is required.', 'simple-payment'); ?> … … 20 20 </div> 21 21 </div> 22 <div class="row ">22 <div class="row form-row"> 23 23 <div class="col-md-3 mb-3"> 24 24 <label for="cc-expiry-month"><?php _e('Expiration', 'simple-payment'); ?></label> … … 43 43 <div class="col-md-2 mb-3"> 44 44 <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"> 46 46 <div class="invalid-feedback"> 47 47 <?php _e('Required.', 'simple-payment'); ?> … … 61 61 </div> 62 62 <?php if (isset($owner_id) && $owner_id) { ?> 63 <div class="row ">63 <div class="row form-row"> 64 64 <div class="col-md-6 mb-3"> 65 65 <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 108 108 'response' => $response 109 109 ] ); 110 return( $data );110 return( $data ); 111 111 } 112 112 … … 177 177 178 178 public function post_process( $params ) { 179 $response = $_REQUEST; 179 180 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; 182 182 $this->transaction = $params[ 'txId' ]; 183 183 $token = ( isset( $params[ 'cardToken' ] ) && $params[ 'cardToken' ] ) ? $params[ 'cardToken' ] : null; … … 185 185 $uniqueId = ( isset( $params[ 'uniqueID' ] ) && $params[ 'uniqueID' ] ) ? $params[ 'uniqueID' ] : null; 186 186 $signature = hash( 'sha256', 187 $this->password . $this->transaction . $params[ 'ErrorCode' ]. $token . $params[ 'cardExp' ] . $owner_id . $uniqueId187 $this->password . $this->transaction . ( $params[ 'ErrorCode' ] ? : '000' ) . $token . $params[ 'cardExp' ] . $owner_id . $uniqueId 188 188 ); 189 189 $status = $status && $signature == $params[ 'responseMac' ]; 190 190 $this->save( [ 191 191 'transaction_id' => $this->transaction, 192 'url' => ': post_process',192 'url' => ':signature_process', 193 193 'status' => $status, 194 194 'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null, … … 196 196 'response' => json_encode( $response ) 197 197 ] ); 198 if ( $status ) $status = $this->verify(); 198 if ( $status ) { 199 $status = $this->verify(); 200 } 199 201 $expiration = $params[ 'cardExp' ]; 200 202 } else { 201 203 $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 } 207 207 $this->confirmation_code = $params[ 'authNumber' ]; 208 $response = $_REQUEST;209 208 $args = [ 210 209 'transaction_id' => $this->transaction, 211 'url' => ' :verify_process',210 'url' => 'post_process', 212 211 'status' => isset( $params[ 'status' ] ) ? $params[ 'status' ] : '', 213 212 'description' => isset( $params[ 'statusText' ] ) ? $params[ 'statusText' ] : null, … … 215 214 'response' => $this->param( 'mode' ) == 'redirect' ? json_encode( $response ) : null, 216 215 ]; 217 218 216 // TODO: should we consider the engine confirmation for keeping tokens? 219 217 if ( $status && $token && $this->param( 'tokenize' ) ) $args[ 'token' ] = [ … … 311 309 312 310 //$this->param('tokenize') ? true : false; 313 311 // TODO: implement 314 312 // paymentPageData 315 313 // useId, useCvv, customStyle, customText, iframeAnchestor 314 316 315 $response = $this->post( 'doDeal', $post ); 317 316 $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 9 9 } 10 10 11 class Engine {11 abstract class Engine { 12 12 13 13 public static $name = 'Base'; -
simple-payment/trunk/vendor/yalla-ya/simple-payment/Engines/iCount.php
r2730843 r2758807 26 26 public static $supports = [ 'cvv', 'tokenization', 'card_owner_id' ]; 27 27 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 // 28 38 public static function is_subscription( $params ) { 29 39 if ( !isset( $params[ 'payments' ] ) ) return( false ); -
simple-payment/trunk/vendor/yalla-ya/simple-payment/SimplePayment.php
r2733391 r2758807 52 52 if ( !$this->is_cli() && ( !isset( $_SERVER[ 'HTTPS' ] ) || !$_SERVER[ 'HTTPS' ] ) ) throw new Exception( 'HTTPS_REQUIRED_LIVE_TRANSACTIONS', 500 ); 53 53 } 54 $class = __NAMESPACE__ . '\\Engines\\' . $engine;54 $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine; 55 55 $settings = self::param( strtolower( isset( $class::$name ) ? $class::$name : $engine ) ); 56 56 foreach ( self::$params as $key => $value ) if ( !is_array( $value ) && !isset( $settings[ $key ] ) ) $settings[ $key ] = $value; … … 62 62 $engine = $this->engine; 63 63 $class = get_class($this->engine); 64 } else $class = __NAMESPACE__ . '\\Engines\\' . $engine;64 } else $class = class_exists( $engine ) ? $engine : __NAMESPACE__ . '\\Engines\\' . $engine; 65 65 return(in_array($feature, $class::$supports) || self::param(strtolower($engine).'.'.$feature)); 66 66 }
Note: See TracChangeset
for help on using the changeset viewer.