Changeset 1718838
- Timestamp:
- 08/24/2017 02:36:03 PM (9 years ago)
- Location:
- sepanet/trunk
- Files:
-
- 2 edited
-
wc-sepanet.js (modified) (1 diff)
-
woocommerce-sepanet.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sepanet/trunk/wc-sepanet.js
r1706694 r1718838 14 14 if(response == 'true') 15 15 { 16 jQuery('#sepanet-tansend').text('Tan angefordert');16 jQuery('#sepanet-tansend').text('Tan requested'); 17 17 } 18 18 else -
sepanet/trunk/woocommerce-sepanet.php
r1707472 r1718838 61 61 $this->form_fields = array( 62 62 'enabled' => array( 63 'title' => __( ' Aktivieren / Deaktivieren', 'sepanet' ),64 'label' => __( ' Dieses Payment Gateway aktivieren', 'sepanet' ),63 'title' => __( 'activate / deactivate', 'sepanet' ), 64 'label' => __( 'Activate this payment gateway', 'sepanet' ), 65 65 'type' => 'checkbox', 66 66 'default' => 'no', 67 67 ), 68 68 'title' => array( 69 'title' => __( 'Tit el', 'sepanet' ),69 'title' => __( 'Title', 'sepanet' ), 70 70 'type' => 'text', 71 71 'desc_tip' => __( 'Payment title the customer will see during the checkout process.', 'sepanet' ), 72 'default' => __( ' Lastschriftverfahren überSEPA.net', 'sepanet' ),72 'default' => __( 'Direct debit procedure via SEPA.net', 'sepanet' ), 73 73 ), 74 74 'description' => array( 75 'title' => __( ' Beschreibung', 'sepanet' ),75 'title' => __( 'Description', 'sepanet' ), 76 76 'type' => 'textarea', 77 77 'desc_tip' => __( 'Payment description the customer will see during the checkout process.', 'sepanet' ), 78 'default' => __( ' Schnell und einfach bezahlen mit dem SEPA.net Lastschriftverfahren. Bitte vergewissern Sie sich, dass Sie eine Handynummer angegeben haben. Sie bekommen zur Validierung eine SMS mit einem TAN-Code zugeschickt.', 'sepanet' ),78 'default' => __( 'Pay fast and easy with the SEPA.net direct debit procedure. Please ensure that you have provided a mobile phone number. You will receive a text message with a TAN for authentication purposes.', 'sepanet' ), 79 79 'css' => 'max-width:350px;' 80 80 ), … … 82 82 'title' => __( 'sepanet Offerer ID', 'sepanet' ), 83 83 'type' => 'text', 84 'desc_tip' => __( ' Ihre SEPA.net Kundennummer.', 'sepanet' ),84 'desc_tip' => __( 'Your SEPA.net customer number.', 'sepanet' ), 85 85 ), 86 86 'mp_securitykey' => array( 87 'title' => __( 'SEPA.net Security Key', 'sepanet' ),87 'title' => __( 'SEPA.net security key', 'sepanet' ), 88 88 'type' => 'password', 89 'desc_tip' => __( ' Der Security Key den Sie bei der Registrierung bekommen haben.', 'sepanet' ),89 'desc_tip' => __( 'The security key, which you have received during the registration process.', 'sepanet' ), 90 90 ), 91 91 'environment' => array( 92 'title' => __( ' Test Mode', 'sepanet' ),93 'label' => __( ' Test Modus', 'sepanet' ),92 'title' => __( 'test mode', 'sepanet' ), 93 'label' => __( 'test mode', 'sepanet' ), 94 94 'type' => 'checkbox', 95 95 'description' => __( 'Place the payment gateway in test mode.', 'sepanet' ), … … 97 97 ), 98 98 'billing' => array( 99 'title' => __( 'SEPA.net Rechnung', 'sepanet' ),100 'label' => __( 'SEPA.net Rechnung verschicken', 'sepanet' ),99 'title' => __( 'SEPA.net bill', 'sepanet' ), 100 'label' => __( 'SEPA.net sending a bill', 'sepanet' ), 101 101 'type' => 'checkbox', 102 'description' => __( 'S oll SEPA.net eine Rechnung verschicken?.', 'sepanet' ),102 'description' => __( 'Should SEPA.net send a bill?', 'sepanet' ), 103 103 'default' => '0', 104 104 ) … … 135 135 <input id="' . esc_attr( $this->id ) . '-bic" class="input-text wc-sepanet-bic" type="text" autocomplete="off" placeholder="•••••••••••" name="' . ( $args['fields_have_names'] ? $this->id . '-bic' : '' ) . '" /> 136 136 </p>', 137 'tan-button' => '<p class="form-row form-row-wide">'.__('SEPA.net benötigt für die Validierung eine TAN-Nummer. Bitte tragen Sie Ihre Handy-Nr ein und klicken anschließend auf den "Tan anfordern"-Button. Sie bekommen von SEPA.net eine SMS zugeschickt, welche die TAN beinhaltet, welche in das dazugehörige Feld eingetragen werden muss.', 'sepanet').'</p><p class="form-row form-row-first">138 <label for="' . esc_attr( $this->id ) . '-tansend">' . __( ' Tan anfordern', 'sepanet' ) . ' <span class="required">*</span></label>139 <a id="' . esc_attr( $this->id ) . '-tansend" class="button wc-sepanet-tansend" href="#">' . __( ' Tan anfordern', 'sepanet' ) . '</a>137 'tan-button' => '<p class="form-row form-row-wide">'.__('SEPA.net requires for the validation a TAN. Please enter your mobile phone number and click subsequently on the "Request TAN" button. You will receive a text message, which contains a TAN, and which needs to be entered in the corresponding field.', 'sepanet').'</p><p class="form-row form-row-first"> 138 <label for="' . esc_attr( $this->id ) . '-tansend">' . __( 'Request TAN', 'sepanet' ) . ' <span class="required">*</span></label> 139 <a id="' . esc_attr( $this->id ) . '-tansend" class="button wc-sepanet-tansend" href="#">' . __( 'Request TAN', 'sepanet' ) . '</a> 140 140 </p>', 141 141 'tan-field' => '<p class="form-row form-row-last"> 142 <label for="' . esc_attr( $this->id ) . '-tan">' . __( 'T an', 'sepanet' ) . ' <span class="required">*</span></label>142 <label for="' . esc_attr( $this->id ) . '-tan">' . __( 'TAN', 'sepanet' ) . ' <span class="required">*</span></label> 143 143 <input id="' . esc_attr( $this->id ) . '-tan" class="input-text wc-sepanet-tan" type="text" autocomplete="off" placeholder="••••" name="' . ( $args['fields_have_names'] ? $this->id . '-tan' : '' ) . '" /> 144 144 </p>' … … 164 164 if(empty($_POST['sepanet-tan'])) 165 165 { 166 wc_add_notice( __(' Bitte Tan angeben.', 'sepanet'), 'error' );166 wc_add_notice( __('Please enter the transaction authentication number (TAN).', 'sepanet'), 'error' ); 167 167 $valid = false; 168 168 } 169 169 if(empty($_POST['sepanet-iban'])) 170 170 { 171 wc_add_notice( __(' Bitte IBAN angeben.', 'sepanet'), 'error' );171 wc_add_notice( __('Please enter your IBAN.', 'sepanet'), 'error' ); 172 172 $valid = false; 173 173 } 174 174 if(empty($_POST['sepanet-bic'])) 175 175 { 176 wc_add_notice( __(' Bitte BIC angeben.', 'sepanet'), 'error' );176 wc_add_notice( __('Please enter your BIC.', 'sepanet'), 'error' ); 177 177 $valid = false; 178 178 } … … 343 343 else // Wenn alles OK ist 344 344 { 345 $customer_order->add_order_note( __( ' Zahlung wurde erfolgreich an SEPA.net gesendet.', 'sepanet' ) );345 $customer_order->add_order_note( __( 'The payment was succesfully sent to SEPA.net.', 'sepanet' ) ); 346 346 347 347 // Mark order as Paid
Note: See TracChangeset
for help on using the changeset viewer.