Changeset 1811329
- Timestamp:
- 01/29/2018 04:26:30 PM (8 years ago)
- Location:
- iugu-woocommerce
- Files:
-
- 49 added
- 2 deleted
- 21 edited
-
tags/1.0.0 (deleted)
-
tags/1.0.1 (deleted)
-
tags/2.0.1 (added)
-
tags/2.0.1/LICENSE (added)
-
tags/2.0.1/assets (added)
-
tags/2.0.1/assets/css (added)
-
tags/2.0.1/assets/css/credit-card.css (added)
-
tags/2.0.1/assets/css/credit-card.min.css (added)
-
tags/2.0.1/assets/js (added)
-
tags/2.0.1/assets/js/admin-credit-card.js (added)
-
tags/2.0.1/assets/js/admin-credit-card.min.js (added)
-
tags/2.0.1/assets/js/credit-card.js (added)
-
tags/2.0.1/assets/js/credit-card.min.js (added)
-
tags/2.0.1/includes (added)
-
tags/2.0.1/includes/class-wc-iugu-api.php (added)
-
tags/2.0.1/includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php (added)
-
tags/2.0.1/includes/class-wc-iugu-bank-slip-addons-gateway.php (added)
-
tags/2.0.1/includes/class-wc-iugu-bank-slip-gateway.php (added)
-
tags/2.0.1/includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php (added)
-
tags/2.0.1/includes/class-wc-iugu-credit-card-addons-gateway.php (added)
-
tags/2.0.1/includes/class-wc-iugu-credit-card-gateway.php (added)
-
tags/2.0.1/includes/class-wc-iugu-my-account.php (added)
-
tags/2.0.1/includes/views (added)
-
tags/2.0.1/includes/views/html-admin-page.php (added)
-
tags/2.0.1/includes/views/html-notice-account-id-missing.php (added)
-
tags/2.0.1/includes/views/html-notice-api-token-missing.php (added)
-
tags/2.0.1/includes/views/html-notice-currency-not-supported.php (added)
-
tags/2.0.1/includes/views/html-notice-ecfb-missing.php (added)
-
tags/2.0.1/includes/views/html-notice-woocommerce-missing.php (added)
-
tags/2.0.1/iugu-woocommerce.php (added)
-
tags/2.0.1/languages (added)
-
tags/2.0.1/languages/iugu-woocommerce-pt_BR.mo (added)
-
tags/2.0.1/languages/iugu-woocommerce-pt_BR.po (added)
-
tags/2.0.1/languages/iugu-woocommerce.pot (added)
-
tags/2.0.1/readme.txt (added)
-
tags/2.0.1/templates (added)
-
tags/2.0.1/templates/bank-slip (added)
-
tags/2.0.1/templates/bank-slip/checkout-instructions.php (added)
-
tags/2.0.1/templates/bank-slip/emails (added)
-
tags/2.0.1/templates/bank-slip/emails/html-instructions.php (added)
-
tags/2.0.1/templates/bank-slip/emails/plain-instructions.php (added)
-
tags/2.0.1/templates/bank-slip/payment-instructions.php (added)
-
tags/2.0.1/templates/credit-card (added)
-
tags/2.0.1/templates/credit-card/emails (added)
-
tags/2.0.1/templates/credit-card/emails/html-instructions.php (added)
-
tags/2.0.1/templates/credit-card/emails/plain-instructions.php (added)
-
tags/2.0.1/templates/credit-card/payment-form.php (added)
-
tags/2.0.1/templates/credit-card/payment-instructions.php (added)
-
trunk/LICENSE (added)
-
trunk/includes/class-wc-iugu-api.php (modified) (16 diffs)
-
trunk/includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php (modified) (6 diffs)
-
trunk/includes/class-wc-iugu-bank-slip-addons-gateway.php (modified) (6 diffs)
-
trunk/includes/class-wc-iugu-bank-slip-gateway.php (modified) (10 diffs)
-
trunk/includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php (modified) (8 diffs)
-
trunk/includes/class-wc-iugu-credit-card-addons-gateway.php (modified) (9 diffs)
-
trunk/includes/class-wc-iugu-credit-card-gateway.php (modified) (14 diffs)
-
trunk/includes/class-wc-iugu-my-account.php (modified) (1 diff)
-
trunk/includes/views/html-notice-account-id-missing.php (modified) (1 diff)
-
trunk/includes/views/html-notice-api-token-missing.php (modified) (1 diff)
-
trunk/includes/views/html-notice-currency-not-supported.php (modified) (1 diff)
-
trunk/includes/views/html-notice-ecfb-missing.php (modified) (1 diff)
-
trunk/includes/views/html-notice-woocommerce-missing.php (modified) (1 diff)
-
trunk/iugu-woocommerce.php (modified) (4 diffs)
-
trunk/languages/iugu-woocommerce-pt_BR.mo (added)
-
trunk/languages/iugu-woocommerce-pt_BR.po (added)
-
trunk/languages/iugu-woocommerce.pot (modified) (16 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/templates/bank-slip/checkout-instructions.php (modified) (1 diff)
-
trunk/templates/bank-slip/emails/html-instructions.php (modified) (1 diff)
-
trunk/templates/bank-slip/emails/plain-instructions.php (modified) (1 diff)
-
trunk/templates/bank-slip/payment-instructions.php (modified) (1 diff)
-
trunk/templates/credit-card/payment-form.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iugu-woocommerce/trunk/includes/class-wc-iugu-api.php
r1801300 r1811329 1 1 <?php 2 2 /** 3 * WC Iugu API Class.3 * WC iugu API Class. 4 4 */ 5 5 class WC_Iugu_API { … … 90 90 91 91 /** 92 * Get Iugu credit card interest rates.92 * Get iugu credit card interest rates. 93 93 * 94 94 * @return array … … 264 264 265 265 /** 266 * Do requests in the Iugu API.266 * Do requests in the iugu API. 267 267 * 268 268 * @param string $endpoint API Endpoint. … … 571 571 572 572 if ( 'yes' == $this->gateway->debug ) { 573 $this->gateway->log->add( $this->gateway->id, 'Creating an invoice on Iugu for order ' . $order->get_order_number() . ' with the following data: ' . print_r( $invoice_data, true ) );573 $this->gateway->log->add( $this->gateway->id, 'Creating an invoice on iugu for order ' . $order->get_order_number() . ' with the following data: ' . print_r( $invoice_data, true ) ); 574 574 } 575 575 … … 620 620 public function get_invoice_status( $invoice_id ) { 621 621 if ( 'yes' == $this->gateway->debug ) { 622 $this->gateway->log->add( $this->gateway->id, 'Getting invoice status from Iugu. Invoice ID: ' . $invoice_id );622 $this->gateway->log->add( $this->gateway->id, 'Getting invoice status from iugu. Invoice ID: ' . $invoice_id ); 623 623 } 624 624 … … 740 740 } 741 741 742 return array( 'errors' => array( __( 'An error has occurred while processing your payment , please try again. Or contact us for assistance.', 'iugu-woocommerce' ) ) );743 } 744 745 /** 746 * Create customer in Iugu API.742 return array( 'errors' => array( __( 'An error has occurred while processing your payment. Please, try again or contact us for assistance.', 'iugu-woocommerce' ) ) ); 743 } 744 745 /** 746 * Create customer in iugu API. 747 747 * 748 748 * @param WC_Order $order Order data. … … 809 809 } 810 810 811 // Create customer in Iugu.811 // Create customer in iugu. 812 812 $customer_id = $this->create_customer( $order ); 813 813 … … 910 910 ); 911 911 912 update_post_meta( $order->get_id(), __( ' Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );912 update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] ); 913 913 } else { 914 914 $payment_data = array_map( … … 925 925 // Save only in old versions. 926 926 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 927 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );927 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 928 928 } 929 929 … … 931 931 932 932 if ( 'bank-slip' == $this->method ) { 933 $order->update_status( 'on-hold', __( ' Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );933 $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) ); 934 934 } else { 935 935 if ( true == $charge['success'] ) { 936 $order->add_order_note( __( ' Iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );936 $order->add_order_note( __( 'iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) ); 937 937 $order->payment_complete(); 938 938 } else { 939 $order->update_status( 'failed', __( ' Iugu: Credit card declined.', 'iugu-woocommerce' ) );939 $order->update_status( 'failed', __( 'iugu: Credit card declined.', 'iugu-woocommerce' ) ); 940 940 } 941 941 } … … 962 962 963 963 if ( 'yes' == $this->gateway->debug ) { 964 $this->gateway->log->add( $this->gateway->id, ' Iugu payment status for order ' . $order->get_order_number() . ' is now: ' . $invoice_status );964 $this->gateway->log->add( $this->gateway->id, 'iugu payment status for order ' . $order->get_order_number() . ' is now: ' . $invoice_status ); 965 965 } 966 966 … … 969 969 if ( ! in_array( $order_status, array( 'on-hold', 'processing', 'completed' ) ) ) { 970 970 if ( 'bank-slip' == $this->method ) { 971 $order->update_status( 'on-hold', __( ' Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );971 $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) ); 972 972 } else { 973 $order->update_status( 'on-hold', __( ' Iugu: Invoice paid by credit card, waiting for operator confirmation.', 'iugu-woocommerce' ) );973 $order->update_status( 'on-hold', __( 'iugu: Invoice paid by credit card. Waiting for operator confirmation.', 'iugu-woocommerce' ) ); 974 974 } 975 975 … … 980 980 case 'paid' : 981 981 if ( ! in_array( $order_status, array( 'processing', 'completed' ) ) ) { 982 $order->add_order_note( __( ' Iugu: Invoice paid successfully.', 'iugu-woocommerce' ) );982 $order->add_order_note( __( 'iugu: Invoice paid successfully.', 'iugu-woocommerce' ) ); 983 983 984 984 // Changing the order for processing and reduces the stock. … … 989 989 break; 990 990 case 'canceled' : 991 $order->update_status( 'cancelled', __( ' Iugu: Invoice canceled.', 'iugu-woocommerce' ) );991 $order->update_status( 'cancelled', __( 'iugu: Invoice canceled.', 'iugu-woocommerce' ) ); 992 992 $order_updated = true; 993 993 994 994 break; 995 995 case 'partially_paid' : 996 $order->update_status( 'on-hold', __( ' Iugu: Invoice partially paid.', 'iugu-woocommerce' ) );996 $order->update_status( 'on-hold', __( 'iugu: Invoice partially paid.', 'iugu-woocommerce' ) ); 997 997 $order_updated = true; 998 998 999 999 break; 1000 1000 case 'refunded' : 1001 $order->update_status( 'refunded', __( ' Iugu: Invoice refunded.', 'iugu-woocommerce' ) );1001 $order->update_status( 'refunded', __( 'iugu: Invoice refunded.', 'iugu-woocommerce' ) ); 1002 1002 $this->send_email( 1003 1003 sprintf( __( 'Invoice for order %s was refunded', 'iugu-woocommerce' ), $order->get_order_number() ), 1004 1004 __( 'Invoice refunded', 'iugu-woocommerce' ), 1005 sprintf( __( 'Order %s has been marked as refunded by Iugu.', 'iugu-woocommerce' ), $order->get_order_number() )1005 sprintf( __( 'Order %s has been marked as refunded by iugu.', 'iugu-woocommerce' ), $order->get_order_number() ) 1006 1006 ); 1007 1007 $order_updated = true; … … 1009 1009 break; 1010 1010 case 'expired' : 1011 $order->update_status( 'failed', __( ' Iugu: Invoice expired.', 'iugu-woocommerce' ) );1011 $order->update_status( 'failed', __( 'iugu: Invoice expired.', 'iugu-woocommerce' ) ); 1012 1012 $order_updated = true; 1013 1013 … … 1067 1067 1068 1068 $map = array( 1069 'email' => 'Email address',1069 'email' => __( 'Email address', 'iugu-woocommerce' ), 1070 1070 'cpf_cnpj' => 'CPF/CNPJ', 1071 'street' => 'Street address',1072 'district' => 'Neighborhood',1073 'city' => 'Town / City',1074 'state' => 'State / County',1075 'zip_code' => 'Postcode / ZIP'1071 'street' => __( 'Street address', 'iugu-woocommerce' ), 1072 'district' => __( 'Neighborhood', 'iugu-woocommerce' ), 1073 'city' => __( 'Town / City', 'iugu-woocommerce' ), 1074 'state' => __( 'State / County', 'iugu-woocommerce' ), 1075 'zip_code' => __( 'Postcode / ZIP', 'iugu-woocommerce' ) 1076 1076 ); 1077 1077 -
iugu-woocommerce/trunk/includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php
r1801300 r1811329 5 5 6 6 /** 7 * Iugu Payment Bank Slip Addons Gateway class.7 * iugu Payment Bank Slip Addons Gateway class. 8 8 * 9 9 * Integration with WooCommerce Subscriptions and Pre-orders. … … 12 12 * @extends WC_Iugu_Bank_Slip_Gateway 13 13 * @version 1.0.0 14 * @author Iugu14 * @author iugu 15 15 */ 16 16 class WC_Iugu_Bank_Slip_Addons_Gateway_Deprecated extends WC_Iugu_Bank_Slip_Gateway { … … 163 163 ); 164 164 update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data ); 165 update_post_meta( $order->get_id(), __( ' Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );165 update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] ); 166 166 update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) ); 167 167 168 168 // Save only in old versions. 169 169 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 170 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );171 } 172 173 $order_note = __( ' Iugu: The customer generated a bank slip, awaiting paymentconfirmation.', 'iugu-woocommerce' );170 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 171 } 172 173 $order_note = __( 'iugu: The customer generated a bank slip. Awaiting confirmation.', 'iugu-woocommerce' ); 174 174 if ( 'pending' == $order->get_status() ) { 175 175 $order->update_status( 'on-hold', $order_note ); … … 224 224 ); 225 225 update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data ); 226 update_post_meta( $order->get_id(), __( ' Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );226 update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] ); 227 227 update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) ); 228 228 229 229 // Save only in old versions. 230 230 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 231 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );232 } 233 234 $order->update_status( 'on-hold', __( ' Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );231 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 232 } 233 234 $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) ); 235 235 } catch ( Exception $e ) { 236 $order_note = sprintf( __( ' Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );236 $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() ); 237 237 238 238 // Mark order as failed if not already set, … … 260 260 261 261 if ( 'paid' == $invoice_status ) { 262 $order->add_order_note( __( ' Iugu: Subscription paid successfully.', 'iugu-woocommerce' ) );262 $order->add_order_note( __( 'iugu: Subscription paid successfully.', 'iugu-woocommerce' ) ); 263 263 264 264 // Payment complete … … 267 267 $order_updated = true; 268 268 } elseif ( in_array( $invoice_status, array( 'canceled', 'refunded', 'expired' ) ) ) { 269 $order->add_order_note( __( ' Iugu: Subscription payment failed.', 'iugu-woocommerce' ) );269 $order->add_order_note( __( 'iugu: Subscription payment failed.', 'iugu-woocommerce' ) ); 270 270 271 271 WC_Subscriptions_Manager::process_subscription_payment_failure_on_order( $order ); -
iugu-woocommerce/trunk/includes/class-wc-iugu-bank-slip-addons-gateway.php
r1801300 r1811329 5 5 6 6 /** 7 * Iugu Payment Bank Slip Addons Gateway class.7 * iugu Payment Bank Slip Addons Gateway class. 8 8 * 9 9 * Integration with WooCommerce Subscriptions and Pre-orders. … … 12 12 * @extends WC_Iugu_Bank_Slip_Gateway 13 13 * @version 1.0.0 14 * @author Iugu14 * @author iugu 15 15 */ 16 16 class WC_Iugu_Bank_Slip_Addons_Gateway extends WC_Iugu_Bank_Slip_Gateway { … … 167 167 ); 168 168 update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data ); 169 update_post_meta( $order->get_id(), __( ' Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );169 update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] ); 170 170 update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) ); 171 171 172 172 // Save only in old versions. 173 173 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 174 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );175 } 176 177 $order_note = __( ' Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' );174 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 175 } 176 177 $order_note = __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ); 178 178 if ( 'pending' == $order->get_status() ) { 179 179 $order->update_status( 'on-hold', $order_note ); … … 225 225 ); 226 226 update_post_meta( $order->get_id(), '_iugu_wc_transaction_data', $payment_data ); 227 update_post_meta( $order->get_id(), __( ' Iugu Bank Slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] );227 update_post_meta( $order->get_id(), __( 'iugu bank slip URL', 'iugu-woocommerce' ), $payment_data['pdf'] ); 228 228 update_post_meta( $order->get_id(), '_transaction_id', sanitize_text_field( $charge['invoice_id'] ) ); 229 229 230 230 // Save only in old versions. 231 231 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 232 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );233 } 234 235 $order->update_status( 'on-hold', __( ' Iugu: The customer generated a bank slip, awaiting payment confirmation.', 'iugu-woocommerce' ) );232 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 233 } 234 235 $order->update_status( 'on-hold', __( 'iugu: The customer generated a bank slip. Awaiting payment confirmation.', 'iugu-woocommerce' ) ); 236 236 } catch ( Exception $e ) { 237 $order_note = sprintf( __( ' Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );237 $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() ); 238 238 239 239 // Mark order as failed if not already set, … … 261 261 262 262 if ( 'paid' == $invoice_status ) { 263 $order->add_order_note( __( ' Iugu: Subscription paid successfully.', 'iugu-woocommerce' ) );263 $order->add_order_note( __( 'iugu: Subscription paid successfully.', 'iugu-woocommerce' ) ); 264 264 265 265 // Payment complete … … 268 268 $order_updated = true; 269 269 } elseif ( in_array( $invoice_status, array( 'canceled', 'refunded', 'expired' ) ) ) { 270 $order->add_order_note( __( ' Iugu: Subscription payment failed.', 'iugu-woocommerce' ) );270 $order->add_order_note( __( 'iugu: Subscription payment failed.', 'iugu-woocommerce' ) ); 271 271 272 272 WC_Subscriptions_Manager::process_subscription_payment_failure_on_order( $order ); -
iugu-woocommerce/trunk/includes/class-wc-iugu-bank-slip-gateway.php
r1801300 r1811329 5 5 6 6 /** 7 * Iugu Payment Bank Slip Gateway class.7 * iugu Payment Bank Slip Gateway class. 8 8 * 9 9 * Extended by individual payment gateways to handle payments. … … 12 12 * @extends WC_Payment_Gateway 13 13 * @version 1.0.0 14 * @author Iugu14 * @author iugu 15 15 */ 16 16 class WC_Iugu_Bank_Slip_Gateway extends WC_Payment_Gateway { … … 24 24 $this->id = 'iugu-bank-slip'; 25 25 $this->icon = apply_filters( 'iugu_woocommerce_bank_slip_icon', '' ); 26 $this->method_title = __( ' Iugu - Bank Slip', 'iugu-woocommerce' );27 $this->method_description = __( 'Accept payments by bank slip using the Iugu.', 'iugu-woocommerce' );26 $this->method_title = __( 'iugu - Bank slip', 'iugu-woocommerce' ); 27 $this->method_description = __( 'Accept bank slip payments using iugu.', 'iugu-woocommerce' ); 28 28 $this->has_fields = true; 29 29 $this->view_transaction_url = 'https://iugu.com/a/invoices/%s'; … … 103 103 'title' => __( 'Enable/Disable', 'iugu-woocommerce' ), 104 104 'type' => 'checkbox', 105 'label' => __( 'Enable Iugu Bank Slip', 'iugu-woocommerce' ),105 'label' => __( 'Enable bank slip payments with iugu', 'iugu-woocommerce' ), 106 106 'default' => 'no' 107 107 ), … … 109 109 'title' => __( 'Title', 'iugu-woocommerce' ), 110 110 'type' => 'text', 111 'description' => __( 'This controls the title which the user sees during checkout.', 'iugu-woocommerce' ), 112 'desc_tip' => true, 113 'default' => __( 'Bank Slip', 'iugu-woocommerce' ) 111 'description' => __( 'Payment method title seen on the checkout page.', 'iugu-woocommerce' ), 112 'default' => __( 'Bank slip', 'iugu-woocommerce' ) 114 113 ), 115 114 'description' => array( 116 115 'title' => __( 'Description', 'iugu-woocommerce' ), 117 116 'type' => 'textarea', 118 'description' => __( ' This controls the description which the user sees during checkout.', 'iugu-woocommerce' ),117 'description' => __( 'Payment method description seen on the checkout page.', 'iugu-woocommerce' ), 119 118 'default' => __( 'Pay with bank slip', 'iugu-woocommerce' ) 120 119 ), 121 120 'integration' => array( 122 'title' => __( 'Integration Settings', 'iugu-woocommerce' ),121 'title' => __( 'Integration settings', 'iugu-woocommerce' ), 123 122 'type' => 'title', 124 123 'description' => '' … … 127 126 'title' => __( 'Account ID', 'iugu-woocommerce' ), 128 127 'type' => 'text', 129 'description' => sprintf( __( ' Please enter your Account ID. This is needed in order to take payment. Is possible found the Account ID in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),128 'description' => sprintf( __( 'Your iugu account\'s unique ID, found in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu account settings', 'iugu-woocommerce' ) . '</a>' ), 130 129 'default' => '', 131 130 'custom_attributes' => array( … … 136 135 'title' => __( 'API Token', 'iugu-woocommerce' ), 137 136 'type' => 'text', 138 'description' => sprintf( __( ' Please enter your API Token. This is needed in order to take payment. Is possible generate a new API Token in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),137 'description' => sprintf( __( 'For real payments, use a LIVE API token. When iugu sandbox is enabled, use a TEST API token. API tokens can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ), 139 138 'default' => '', 140 139 'custom_attributes' => array( … … 143 142 ), 144 143 'payment' => array( 145 'title' => __( 'Payment Options', 'iugu-woocommerce' ),144 'title' => __( 'Payment options', 'iugu-woocommerce' ), 146 145 'type' => 'title', 147 146 'description' => '' 148 147 ), 149 148 'deadline' => array( 150 'title' => __( 'De adline to pay the bank slip', 'iugu-woocommerce' ),149 'title' => __( 'Default payment deadline', 'iugu-woocommerce' ), 151 150 'type' => 'number', 152 151 'description' => __( 'Number of days the customer will have to pay the bank slip.', 'iugu-woocommerce' ), 153 'desc_tip' => true,154 152 'default' => '5', 155 153 'custom_attributes' => array( … … 159 157 ), 160 158 'behavior' => array( 161 'title' => __( 'Integration Behavior', 'iugu-woocommerce' ),159 'title' => __( 'Integration behavior', 'iugu-woocommerce' ), 162 160 'type' => 'title', 163 161 'description' => '' … … 166 164 'title' => __( 'Send only the order total', 'iugu-woocommerce' ), 167 165 'type' => 'checkbox', 168 'label' => __( ' If this option is enabled will only send the order total, not the list ofitems.', 'iugu-woocommerce' ),166 'label' => __( 'When enabled, the customer only gets the order total, not the list of purchased items.', 'iugu-woocommerce' ), 169 167 'default' => 'no' 170 168 ), 171 169 'testing' => array( 172 'title' => __( 'Gateway Testing', 'iugu-woocommerce' ),170 'title' => __( 'Gateway testing', 'iugu-woocommerce' ), 173 171 'type' => 'title', 174 172 'description' => '' 175 173 ), 176 174 'sandbox' => array( 177 'title' => __( ' Iugu Sandbox', 'iugu-woocommerce' ),175 'title' => __( 'iugu sandbox', 'iugu-woocommerce' ), 178 176 'type' => 'checkbox', 179 'label' => __( 'Enable Iugu Sandbox', 'iugu-woocommerce' ),177 'label' => __( 'Enable iugu sandbox', 'iugu-woocommerce' ), 180 178 'default' => 'no', 181 'description' => sprintf( __( ' Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you must use the development API Token that can be created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' )179 'description' => sprintf( __( 'Used to test payments. Don\'t forget to use a TEST API token, which can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ) 182 180 ), 183 181 'debug' => array( 184 'title' => __( 'Debug Log', 'iugu-woocommerce' ),182 'title' => __( 'Debugging', 'iugu-woocommerce' ), 185 183 'type' => 'checkbox', 186 184 'label' => __( 'Enable logging', 'iugu-woocommerce' ), 187 185 'default' => 'no', 188 'description' => sprintf( __( 'Log Iugu events, such as API requests, you can check this login %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) )186 'description' => sprintf( __( 'Log iugu events, such as API requests, for debugging purposes. The log can be found in %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) ) 189 187 ) 190 188 ); -
iugu-woocommerce/trunk/includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php
r1801300 r1811329 5 5 6 6 /** 7 * Iugu Payment Credit Card Addons Gateway class.7 * iugu Payment Credit Card Addons Gateway class. 8 8 * 9 9 * Integration with WooCommerce Subscriptions and Pre-orders. … … 12 12 * @extends WC_Iugu_Credit_Card_Gateway 13 13 * @version 1.0.0 14 * @author Iugu14 * @author iugu 15 15 */ 16 16 class WC_Iugu_Credit_Card_Addons_Gateway_Deprecated extends WC_Iugu_Credit_Card_Gateway { … … 51 51 } 52 52 53 $error_msg = __( 'Please make sure yourcard details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );53 $error_msg = __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ); 54 54 55 55 throw new Exception( $error_msg ); … … 63 63 } 64 64 65 $error_msg = __( 'An error occurred while trying to save your data. Please contact us forget help.', 'iugu-woocommerce' );65 $error_msg = __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' ); 66 66 67 67 throw new Exception( $error_msg ); … … 116 116 } 117 117 118 $error_msg = __( 'Please make sure yourcard details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );118 $error_msg = __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ); 119 119 120 120 throw new Exception( $error_msg ); … … 128 128 } 129 129 130 $error_msg = __( 'An error occurred while trying to save your data. Please contact us forget help.', 'iugu-woocommerce' );130 $error_msg = __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' ); 131 131 132 132 throw new Exception( $error_msg ); … … 233 233 // Save only in old versions. 234 234 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 235 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );235 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 236 236 } 237 237 238 238 if ( true == $charge['success'] ) { 239 $order->add_order_note( __( ' Iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) );239 $order->add_order_note( __( 'iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) ); 240 240 $order->payment_complete(); 241 241 242 242 return true; 243 243 } else { 244 return new WP_Error( 'iugu_subscription_error', __( ' Iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) );244 return new WP_Error( 'iugu_subscription_error', __( 'iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) ); 245 245 } 246 246 } … … 328 328 // Save only in old versions. 329 329 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 330 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );330 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 331 331 } 332 332 333 333 if ( ! $charge['success'] ) { 334 return new Exception( __( ' Iugu: Credit card declined.', 'iugu-woocommerce' ) );335 } 336 337 $order->add_order_note( __( ' Iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );334 return new Exception( __( 'iugu: Credit card declined.', 'iugu-woocommerce' ) ); 335 } 336 337 $order->add_order_note( __( 'iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) ); 338 338 $order->payment_complete(); 339 339 } catch ( Exception $e ) { 340 $order_note = sprintf( __( ' Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );340 $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() ); 341 341 342 342 // Mark order as failed if not already set, -
iugu-woocommerce/trunk/includes/class-wc-iugu-credit-card-addons-gateway.php
r1801300 r1811329 5 5 6 6 /** 7 * Iugu Payment Credit Card Addons Gateway class.7 * iugu Payment Credit Card Addons Gateway class. 8 8 * 9 9 * Integration with WooCommerce Subscriptions and Pre-orders. … … 53 53 } 54 54 55 throw new Exception( __( 'Please make sure yourcard details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) );55 throw new Exception( __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) ); 56 56 } 57 57 … … 63 63 } 64 64 65 throw new Exception( __( 'An error occurred while trying to save your data. Please contact us forget help.', 'iugu-woocommerce' ) );65 throw new Exception( __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' ) ); 66 66 } 67 67 … … 110 110 } 111 111 112 $error_msg = __( 'Please make sure yourcard details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' );112 $error_msg = __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ); 113 113 114 114 throw new Exception( $error_msg ); … … 122 122 } 123 123 124 $error_msg = __( 'An error occurred while trying to save your data. Please contact us forget help.', 'iugu-woocommerce' );124 $error_msg = __( 'An error occurred while trying to save your data. Please, contact us to get help.', 'iugu-woocommerce' ); 125 125 126 126 throw new Exception( $error_msg ); … … 182 182 183 183 /** 184 * Store the Iugu customer payment method id on the order and subscriptions in the order.184 * Store the iugu customer payment method id on the order and subscriptions in the order. 185 185 * 186 186 * @param int $order_id … … 247 247 // Save only in old versions. 248 248 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 249 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );249 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 250 250 } 251 251 252 252 if ( true == $charge['success'] ) { 253 $order->add_order_note( __( ' Iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) );253 $order->add_order_note( __( 'iugu: Subscription paid successfully by credit card.', 'iugu-woocommerce' ) ); 254 254 $order->payment_complete(); 255 255 256 256 return true; 257 257 } else { 258 return new WP_Error( 'iugu_subscription_error', __( ' Iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) );258 return new WP_Error( 'iugu_subscription_error', __( 'iugu: Subscription payment failed. Credit card declined.', 'iugu-woocommerce' ) ); 259 259 } 260 260 } … … 298 298 '_iugu_customer_payment_method_id' => array( 299 299 'value' => get_post_meta( $subscription->get_id(), '_iugu_customer_payment_method_id', true ), 300 'label' => ' Iugu Payment Method ID',300 'label' => 'iugu Payment Method ID', 301 301 ), 302 302 ), … … 365 365 // Save only in old versions. 366 366 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.1.12', '<=' ) ) { 367 update_post_meta( $order->get_id(), __( ' Iugu Transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) );367 update_post_meta( $order->get_id(), __( 'iugu transaction details', 'iugu-woocommerce' ), 'https://iugu.com/a/invoices/' . sanitize_text_field( $charge['invoice_id'] ) ); 368 368 } 369 369 370 370 if ( ! $charge['success'] ) { 371 return new Exception( __( ' Iugu: Credit card declined.', 'iugu-woocommerce' ) );372 } 373 374 $order->add_order_note( __( ' Iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) );371 return new Exception( __( 'iugu: Credit card declined.', 'iugu-woocommerce' ) ); 372 } 373 374 $order->add_order_note( __( 'iugu: Invoice paid successfully by credit card.', 'iugu-woocommerce' ) ); 375 375 $order->payment_complete(); 376 376 } catch ( Exception $e ) { 377 $order_note = sprintf( __( ' Iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() );377 $order_note = sprintf( __( 'iugu: Pre-order payment failed (%s).', 'iugu-woocommerce' ), $e->getMessage() ); 378 378 379 379 // Mark order as failed if not already set, -
iugu-woocommerce/trunk/includes/class-wc-iugu-credit-card-gateway.php
r1801300 r1811329 5 5 6 6 /** 7 * Iugu Payment Credit Card Gateway class.7 * iugu Payment Credit Card Gateway class. 8 8 * 9 9 * Extended by individual payment gateways to handle payments. … … 22 22 $this->id = 'iugu-credit-card'; 23 23 $this->icon = apply_filters( 'iugu_woocommerce_credit_card_icon', '' ); 24 $this->method_title = __( ' Iugu - Credit Card', 'iugu-woocommerce' );25 $this->method_description = __( 'Accept payments by credit card using the Iugu.', 'iugu-woocommerce' );24 $this->method_title = __( 'iugu - Credit card', 'iugu-woocommerce' ); 25 $this->method_description = __( 'Accept credit card payments using iugu.', 'iugu-woocommerce' ); 26 26 $this->has_fields = true; 27 27 $this->view_transaction_url = 'https://iugu.com/a/invoices/%s'; … … 109 109 'title' => __( 'Enable/Disable', 'iugu-woocommerce' ), 110 110 'type' => 'checkbox', 111 'label' => __( 'Enable Iugu Credit Card', 'iugu-woocommerce' ),111 'label' => __( 'Enable credit card payments with iugu', 'iugu-woocommerce' ), 112 112 'default' => 'no' 113 113 ), … … 115 115 'title' => __( 'Title', 'iugu-woocommerce' ), 116 116 'type' => 'text', 117 'description' => __( 'This controls the title which the user sees during checkout.', 'iugu-woocommerce' ), 118 'desc_tip' => true, 119 'default' => __( 'Credit Card', 'iugu-woocommerce' ) 117 'description' => __( 'Payment method title seen on the checkout page.', 'iugu-woocommerce' ), 118 'default' => __( 'Credit card', 'iugu-woocommerce' ) 120 119 ), 121 120 'description' => array( 122 121 'title' => __( 'Description', 'iugu-woocommerce' ), 123 122 'type' => 'textarea', 124 'description' => __( ' This controls the description which the user sees during checkout.', 'iugu-woocommerce' ),125 'default' => __( 'Pay with credit card .', 'iugu-woocommerce' )123 'description' => __( 'Payment method description seen on the checkout page.', 'iugu-woocommerce' ), 124 'default' => __( 'Pay with credit card', 'iugu-woocommerce' ) 126 125 ), 127 126 'integration' => array( 128 'title' => __( 'Integration Settings', 'iugu-woocommerce' ),127 'title' => __( 'Integration settings', 'iugu-woocommerce' ), 129 128 'type' => 'title', 130 129 'description' => '' … … 133 132 'title' => __( 'Account ID', 'iugu-woocommerce' ), 134 133 'type' => 'text', 135 'description' => sprintf( __( ' Please enter your Account ID. This is needed in order to take payment. Is possible found the Account ID in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),134 'description' => sprintf( __( 'Your iugu account\'s unique ID, found in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ), 136 135 'default' => '', 137 136 'custom_attributes' => array( … … 142 141 'title' => __( 'API Token', 'iugu-woocommerce' ), 143 142 'type' => 'text', 144 'description' => sprintf( __( ' Please enter your API Token. This is needed in order to take payment. Is possible generate a new API Token in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ),143 'description' => sprintf( __( 'For real payments, use a LIVE API token. When iugu sandbox is enabled, use a TEST API token. API tokens can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://app.iugu.com/account" target="_blank">' . __( 'iugu Account Settings', 'iugu-woocommerce' ) . '</a>' ), 145 144 'default' => '', 146 145 'custom_attributes' => array( … … 149 148 ), 150 149 'payment' => array( 151 'title' => __( 'Payment Options', 'iugu-woocommerce' ),150 'title' => __( 'Payment options', 'iugu-woocommerce' ), 152 151 'type' => 'title', 153 152 'description' => '' 154 153 ), 155 154 'installments' => array( 156 'title' => __( ' Number of credit card Installments', 'iugu-woocommerce' ),155 'title' => __( 'Installments limit', 'iugu-woocommerce' ), 157 156 'type' => 'number', 158 'description' => __( 'The maximum number of installments allowed for credit cards. Put a number bigger than 1 to enable the field. This cannot be greater than the number allowed in your Iugu account.', 'iugu-woocommerce' ), 159 'desc_tip' => true, 157 'description' => __( 'The maximum number of installments allowed for credit card payments. This can\'t be greater than the setting allowed in your iugu account.', 'iugu-woocommerce' ), 160 158 'default' => '1', 161 159 'custom_attributes' => array( … … 166 164 ), 167 165 'smallest_installment' => array( 168 'title' => __( 'Smallest Installment', 'iugu-woocommerce' ),166 'title' => __( 'Smallest installment value', 'iugu-woocommerce' ), 169 167 'type' => 'text', 170 'description' => __( 'Smallest value of each installment, cannot be less than 5.', 'iugu-woocommerce' ), 171 'desc_tip' => true, 172 'default' => '5' 168 'description' => __( 'Smallest value of each installment. Value can\'t be lower than 5.', 'iugu-woocommerce' ), 169 'default' => '5', 173 170 ), 174 171 'pass_interest' => array( 175 'title' => __( 'Pass interest rate', 'iugu-woocommerce' ),172 'title' => __( 'Pass on interest', 'iugu-woocommerce' ), 176 173 'type' => 'checkbox', 177 'label' => __( 'Pass on the Installments interest to the customer.', 'iugu-woocommerce' ),178 'description' => __( 'This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce' ),174 'label' => __( 'Pass on the installments\' interest to the customer. (Please, be aware that this option currently only applies to iugu accounts created before 2017.)', 'iugu-woocommerce' ), 175 'description' => __( 'This option is only for display and should mimic your iugu account\'s settings.', 'iugu-woocommerce' ), 179 176 'desc_tip' => true, 180 177 'default' => 'no' … … 183 180 'title' => __( 'Free interest', 'iugu-woocommerce' ), 184 181 'type' => 'number', 185 'description' => __( 'Indicate how many installments shall not bear interest, use 0 to disable this option.', 'iugu-woocommerce' ) . ' ' . __( 'This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce' ), 182 'label' => __( 'Indicate how many installments shall not bear any interest. Enter 0 to disable this option.', 'iugu-woocommerce' ), 183 'description' => __( 'This option is only for display and should mimic your iugu account\'s settings.', 'iugu-woocommerce' ), 186 184 'desc_tip' => true, 187 185 'default' => '0', … … 193 191 ), 194 192 'transaction_rate' => array( 195 'title' => __( ' Rate per transaction', 'iugu-woocommerce' ),193 'title' => __( 'Transaction rate', 'iugu-woocommerce' ), 196 194 'type' => 'number', 197 'description' => __( 'Enter here the transaction rate that is set up in your plan in Iugu.', 'iugu-woocommerce' ) . ' ' . __( 'This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce' ),195 'description' => __( 'Enter the transaction rate set up in your iugu plan.', 'iugu-woocommerce' ) . ' ' . __( 'This option is only for display and should mimic your iugu account\'s settings.', 'iugu-woocommerce' ), 198 196 'desc_tip' => true, 199 197 'default' => '7', … … 203 201 ), 204 202 'behavior' => array( 205 'title' => __( 'Integration Behavior', 'iugu-woocommerce' ),203 'title' => __( 'Integration behavior', 'iugu-woocommerce' ), 206 204 'type' => 'title', 207 205 'description' => '' … … 210 208 'title' => __( 'Send only the order total', 'iugu-woocommerce' ), 211 209 'type' => 'checkbox', 212 'label' => __( ' If this option is enabled will only send the order total, not the list ofitems.', 'iugu-woocommerce' ),210 'label' => __( 'When enabled, the customer only gets the order total, not the list of purchased items.', 'iugu-woocommerce' ), 213 211 'default' => 'no' 214 212 ), 215 213 'testing' => array( 216 'title' => __( 'Gateway Testing', 'iugu-woocommerce' ),214 'title' => __( 'Gateway testing', 'iugu-woocommerce' ), 217 215 'type' => 'title', 218 216 'description' => '' 219 217 ), 220 218 'sandbox' => array( 221 'title' => __( ' Iugu Sandbox', 'iugu-woocommerce' ),219 'title' => __( 'iugu sandbox', 'iugu-woocommerce' ), 222 220 'type' => 'checkbox', 223 'label' => __( 'Enable Iugu Sandbox', 'iugu-woocommerce' ),221 'label' => __( 'Enable iugu sandbox', 'iugu-woocommerce' ), 224 222 'default' => 'no', 225 'description' => sprintf( __( ' Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you must use the development API Token that can be created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'Iugu Account Settings', 'iugu-woocommerce' ) . '</a>' )223 'description' => sprintf( __( 'Used to test payments. Don\'t forget to use a TEST API token, which can be found/created in %s.', 'iugu-woocommerce' ), '<a href="https://iugu.com/settings/account" target="_blank">' . __( 'iugu account settings', 'iugu-woocommerce' ) . '</a>' ) 226 224 ), 227 225 'debug' => array( 228 'title' => __( 'Debug Log', 'iugu-woocommerce' ),226 'title' => __( 'Debugging', 'iugu-woocommerce' ), 229 227 'type' => 'checkbox', 230 228 'label' => __( 'Enable logging', 'iugu-woocommerce' ), 231 229 'default' => 'no', 232 'description' => sprintf( __( 'Log Iugu events, such as API requests, you can check this login %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) )230 'description' => sprintf( __( 'Log iugu events, such as API requests, for debugging purposes. The log can be found in %s.', 'iugu-woocommerce' ), WC_Iugu::get_log_view( $this->id ) ) 233 231 ) 234 232 ); … … 253 251 'account_id' => $this->account_id, 254 252 'is_sandbox' => $this->sandbox, 255 'i18n_number_field' => __( 'Card Number', 'iugu-woocommerce' ),256 'i18n_verification_value_field' => __( 'Security Code', 'iugu-woocommerce' ),257 'i18n_expiration_field' => __( ' Card Expiry Date', 'iugu-woocommerce' ),258 'i18n_first_name_field' => __( 'First Name', 'iugu-woocommerce' ),259 'i18n_last_name_field' => __( 'Last Name', 'iugu-woocommerce' ),253 'i18n_number_field' => __( 'Card number', 'iugu-woocommerce' ), 254 'i18n_verification_value_field' => __( 'Security code', 'iugu-woocommerce' ), 255 'i18n_expiration_field' => __( 'Expiry date', 'iugu-woocommerce' ), 256 'i18n_first_name_field' => __( 'First name', 'iugu-woocommerce' ), 257 'i18n_last_name_field' => __( 'Last name', 'iugu-woocommerce' ), 260 258 'i18n_is_invalid' => __( 'is invalid', 'iugu-woocommerce' ) 261 259 ) … … 311 309 } 312 310 313 $this->api->add_error( '<strong>' . esc_attr( $this->title ) . '</strong>: ' . __( 'Please make sure yourcard details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) );311 $this->api->add_error( '<strong>' . esc_attr( $this->title ) . '</strong>: ' . __( 'Please, make sure your credit card details have been entered correctly and that your browser supports JavaScript.', 'iugu-woocommerce' ) ); 314 312 315 313 return array( -
iugu-woocommerce/trunk/includes/class-wc-iugu-my-account.php
r1801300 r1811329 1 1 <?php 2 2 /** 3 * Iugu My Account actions3 * iugu My Account actions 4 4 */ 5 5 -
iugu-woocommerce/trunk/includes/views/html-notice-account-id-missing.php
r1150741 r1811329 11 11 12 12 <div class="error"> 13 <p><strong><?php _e( ' Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'You should inform your API Token.', 'iugu-woocommerce' ); ?>13 <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'Please, inform a valid API token.', 'iugu-woocommerce' ); ?> 14 14 </p> 15 15 </div> -
iugu-woocommerce/trunk/includes/views/html-notice-api-token-missing.php
r1150741 r1811329 11 11 12 12 <div class="error"> 13 <p><strong><?php _e( ' Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'You should inform your Account ID.', 'iugu-woocommerce' ); ?>13 <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php _e( 'You should inform your Account ID.', 'iugu-woocommerce' ); ?> 14 14 </p> 15 15 </div> -
iugu-woocommerce/trunk/includes/views/html-notice-currency-not-supported.php
r1107944 r1811329 11 11 12 12 <div class="error"> 13 <p><strong><?php _e( ' Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Currency <code>%s</code> is not supported. Works only with Brazilian Real.', 'iugu-woocommerce' ), get_woocommerce_currency() ); ?>13 <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Currency <code>%s</code> is not supported. WooCommerce iugu only works with Brazilian real (BRL).', 'iugu-woocommerce' ), get_woocommerce_currency() ); ?> 14 14 </p> 15 15 </div> -
iugu-woocommerce/trunk/includes/views/html-notice-ecfb-missing.php
r1107944 r1811329 18 18 19 19 <div class="error"> 20 <p><strong><?php _e( ' Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Iugu WooCommerce requires the latest version of the %s to works.', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce Extra Checkout Fields for Brazil', 'iugu-woocommerce' ) . '</a>' ); ?></p>20 <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'WooCommerce iugu requires the latest version of %s to work!', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce Extra Checkout Fields for Brazil', 'iugu-woocommerce' ) . '</a>' ); ?></p> 21 21 </div> -
iugu-woocommerce/trunk/includes/views/html-notice-woocommerce-missing.php
r1107944 r1811329 18 18 19 19 <div class="error"> 20 <p><strong><?php _e( ' Iugu Disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'Iugu WooCommerce depends on the last version of %s to work!', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce', 'iugu-woocommerce' ) . '</a>' ); ?></p>20 <p><strong><?php _e( 'iugu disabled', 'iugu-woocommerce' ); ?></strong>: <?php printf( __( 'WooCommerce iugu requires the latest version of %s to work!', 'iugu-woocommerce' ), '<a href="' . esc_url( $url ) . '">' . __( 'WooCommerce', 'iugu-woocommerce' ) . '</a>' ); ?></p> 21 21 </div> -
iugu-woocommerce/trunk/iugu-woocommerce.php
r1801300 r1811329 1 1 <?php 2 2 /** 3 * Plugin Name: Iugu WooCommerce3 * Plugin Name: WooCommerce iugu 4 4 * Plugin URI: https://github.com/iugu/iugu-woocommerce 5 5 * Description: Iugu payment gateway for WooCommerce. 6 6 * Author: iugu 7 7 * Author URI: https://iugu.com/ 8 * Version: 2.0. 08 * Version: 2.0.1 9 9 * License: GPLv2 or later 10 10 * Text Domain: iugu-woocommerce … … 29 29 */ 30 30 const CLIENT_NAME = 'plugin-iugu-woocommerce'; 31 const CLIENT_VERSION = '2.0. 0';31 const CLIENT_VERSION = '2.0.1'; 32 32 33 33 /** … … 152 152 public static function get_log_view( $gateway_id ) { 153 153 if ( defined( 'WC_VERSION' ) && version_compare( WC_VERSION, '2.2', '>=' ) ) { 154 return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' . esc_attr( $gateway_id ) . '-' . sanitize_file_name( wp_hash( $gateway_id ) ) . '.log' ) ) . '">' . __( 'System Status > Logs', 'iugu-woocommerce' ) . '</a>';154 return '<a href="' . esc_url( admin_url( 'admin.php?page=wc-status&tab=logs&log_file=' . esc_attr( $gateway_id ) . '-' . sanitize_file_name( wp_hash( $gateway_id ) ) . '.log' ) ) . '">' . __( 'System status > logs', 'iugu-woocommerce' ) . '</a>'; 155 155 } 156 156 … … 187 187 } 188 188 189 $plugin_links[] = '<a href="' . esc_url( $settings_url . $credit_card ) . '">' . __( 'Credit Card Settings', 'iugu-woocommerce' ) . '</a>';189 $plugin_links[] = '<a href="' . esc_url( $settings_url . $credit_card ) . '">' . __( 'Credit card settings', 'iugu-woocommerce' ) . '</a>'; 190 190 191 $plugin_links[] = '<a href="' . esc_url( $settings_url . $bank_slip ) . '">' . __( 'Bank Slip Settings', 'iugu-woocommerce' ) . '</a>';191 $plugin_links[] = '<a href="' . esc_url( $settings_url . $bank_slip ) . '">' . __( 'Bank slip settings', 'iugu-woocommerce' ) . '</a>'; 192 192 193 193 return array_merge( $plugin_links, $links ); -
iugu-woocommerce/trunk/languages/iugu-woocommerce.pot
r1778472 r1811329 1 # Copyright (C) 201 6 Iugu1 # Copyright (C) 2018 iugu 2 2 # This file is distributed under the GPLv2 or later. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Iugu WooCommerce 1.0.10\n"5 "Project-Id-Version: WooCommerce iugu 2.0.1\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/iugu-woocommerce\n" 7 "POT-Creation-Date: 201 6-06-30 04:49:50+00:00\n"7 "POT-Creation-Date: 2018-01-29 10:46:12+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=utf-8\n" 10 10 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 201 6-MO-DA HO:MI+ZONE\n"11 "PO-Revision-Date: 2018-MO-DA HO:MI+ZONE\n" 12 12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 13 13 "Language-Team: LANGUAGE <[email protected]>\n" 14 "X-Generator: grunt-wp-i18n 0.5.3\n"15 16 #: includes/class-wc-iugu-api.php:46 214 "X-Generator: grunt-wp-i18n1.0.1\n" 15 16 #: includes/class-wc-iugu-api.php:467 17 17 msgid "Order %s" 18 18 msgstr "" 19 19 20 #: includes/class-wc-iugu-api.php:5 3620 #: includes/class-wc-iugu-api.php:541 21 21 msgid "Shipping via %s" 22 22 msgstr "" 23 23 24 #: includes/class-wc-iugu-api.php:609 25 msgid "Invalid zip code." 26 msgstr "" 27 28 #: includes/class-wc-iugu-api.php:697 includes/class-wc-iugu-api.php:721 29 msgid "" 30 "An error has occurred while processing your payment, please try again. Or " 24 #: includes/class-wc-iugu-api.php:742 25 msgid "" 26 "An error has occurred while processing your payment. Please, try again or " 31 27 "contact us for assistance." 32 28 msgstr "" 33 29 34 #: includes/class-wc-iugu-api.php:8 1830 #: includes/class-wc-iugu-api.php:839 35 31 msgid "Payment method created for order %s" 36 32 msgstr "" 37 33 38 #: includes/class-wc-iugu-api.php: 88634 #: includes/class-wc-iugu-api.php:912 39 35 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:165 40 36 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:226 41 37 #: includes/class-wc-iugu-bank-slip-addons-gateway.php:169 42 38 #: includes/class-wc-iugu-bank-slip-addons-gateway.php:227 43 msgid " Iugu Bank Slip URL"44 msgstr "" 45 46 #: includes/class-wc-iugu-api.php:9 0139 msgid "iugu bank slip URL" 40 msgstr "" 41 42 #: includes/class-wc-iugu-api.php:927 47 43 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:170 48 44 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:231 … … 53 49 #: includes/class-wc-iugu-credit-card-addons-gateway.php:249 54 50 #: includes/class-wc-iugu-credit-card-addons-gateway.php:367 55 msgid "Iugu Transaction details" 56 msgstr "" 57 58 #: includes/class-wc-iugu-api.php:907 includes/class-wc-iugu-api.php:945 59 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:173 51 msgid "iugu transaction details" 52 msgstr "" 53 54 #: includes/class-wc-iugu-api.php:933 includes/class-wc-iugu-api.php:971 60 55 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:234 61 56 #: includes/class-wc-iugu-bank-slip-addons-gateway.php:177 62 57 #: includes/class-wc-iugu-bank-slip-addons-gateway.php:235 63 msgid " Iugu: The customer generated a bank slip, awaiting payment confirmation."64 msgstr "" 65 66 #: includes/class-wc-iugu-api.php:9 1058 msgid "iugu: The customer generated a bank slip. Awaiting payment confirmation." 59 msgstr "" 60 61 #: includes/class-wc-iugu-api.php:936 67 62 #: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:337 68 63 #: includes/class-wc-iugu-credit-card-addons-gateway.php:374 69 msgid " Iugu: Invoice paid successfully by credit card."70 msgstr "" 71 72 #: includes/class-wc-iugu-api.php:9 1364 msgid "iugu: Invoice paid successfully by credit card." 65 msgstr "" 66 67 #: includes/class-wc-iugu-api.php:939 73 68 #: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:334 74 69 #: includes/class-wc-iugu-credit-card-addons-gateway.php:371 75 msgid " Iugu: Credit card declined."76 msgstr "" 77 78 #: includes/class-wc-iugu-api.php:9 4779 msgid " Iugu: Invoice paid by credit card, waiting for operator confirmation."80 msgstr "" 81 82 #: includes/class-wc-iugu-api.php:9 5683 msgid " Iugu: Invoice paid successfully."84 msgstr "" 85 86 #: includes/class-wc-iugu-api.php:9 6587 msgid " Iugu: Invoice canceled."88 msgstr "" 89 90 #: includes/class-wc-iugu-api.php:9 7091 msgid " Iugu: Invoice partially paid."92 msgstr "" 93 94 #: includes/class-wc-iugu-api.php: 97595 msgid " Iugu: Invoice refunded."96 msgstr "" 97 98 #: includes/class-wc-iugu-api.php: 97770 msgid "iugu: Credit card declined." 71 msgstr "" 72 73 #: includes/class-wc-iugu-api.php:973 74 msgid "iugu: Invoice paid by credit card. Waiting for operator confirmation." 75 msgstr "" 76 77 #: includes/class-wc-iugu-api.php:982 78 msgid "iugu: Invoice paid successfully." 79 msgstr "" 80 81 #: includes/class-wc-iugu-api.php:991 82 msgid "iugu: Invoice canceled." 83 msgstr "" 84 85 #: includes/class-wc-iugu-api.php:996 86 msgid "iugu: Invoice partially paid." 87 msgstr "" 88 89 #: includes/class-wc-iugu-api.php:1001 90 msgid "iugu: Invoice refunded." 91 msgstr "" 92 93 #: includes/class-wc-iugu-api.php:1003 99 94 msgid "Invoice for order %s was refunded" 100 95 msgstr "" 101 96 102 #: includes/class-wc-iugu-api.php: 97897 #: includes/class-wc-iugu-api.php:1004 103 98 msgid "Invoice refunded" 104 99 msgstr "" 105 100 106 #: includes/class-wc-iugu-api.php: 979107 msgid "Order %s has been marked as refunded by Iugu."108 msgstr "" 109 110 #: includes/class-wc-iugu-api.php: 985111 msgid " Iugu: Invoice expired."112 msgstr "" 113 114 #: includes/class-wc-iugu-api.php:10 26101 #: includes/class-wc-iugu-api.php:1005 102 msgid "Order %s has been marked as refunded by iugu." 103 msgstr "" 104 105 #: includes/class-wc-iugu-api.php:1011 106 msgid "iugu: Invoice expired." 107 msgstr "" 108 109 #: includes/class-wc-iugu-api.php:1052 115 110 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:309 116 111 #: includes/class-wc-iugu-bank-slip-addons-gateway.php:310 117 112 msgid "The request failed!" 113 msgstr "" 114 115 #: includes/class-wc-iugu-api.php:1069 116 msgid "Email address" 117 msgstr "" 118 119 #: includes/class-wc-iugu-api.php:1071 120 msgid "Street address" 121 msgstr "" 122 123 #: includes/class-wc-iugu-api.php:1072 124 msgid "Neighborhood" 125 msgstr "" 126 127 #: includes/class-wc-iugu-api.php:1073 128 msgid "Town / City" 129 msgstr "" 130 131 #: includes/class-wc-iugu-api.php:1074 132 msgid "State / County" 133 msgstr "" 134 135 #: includes/class-wc-iugu-api.php:1075 136 msgid "Postcode / ZIP" 137 msgstr "" 138 139 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:173 140 msgid "iugu: The customer generated a bank slip. Awaiting confirmation." 118 141 msgstr "" 119 142 … … 122 145 #: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:340 123 146 #: includes/class-wc-iugu-credit-card-addons-gateway.php:377 124 msgid " Iugu: Pre-order payment failed (%s)."147 msgid "iugu: Pre-order payment failed (%s)." 125 148 msgstr "" 126 149 127 150 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:262 128 151 #: includes/class-wc-iugu-bank-slip-addons-gateway.php:263 129 msgid " Iugu: Subscription paid successfully."152 msgid "iugu: Subscription paid successfully." 130 153 msgstr "" 131 154 132 155 #: includes/class-wc-iugu-bank-slip-addons-gateway-deprecated.php:269 133 156 #: includes/class-wc-iugu-bank-slip-addons-gateway.php:270 134 msgid " Iugu: Subscription payment failed."157 msgid "iugu: Subscription payment failed." 135 158 msgstr "" 136 159 137 160 #: includes/class-wc-iugu-bank-slip-gateway.php:26 138 msgid " Iugu - Bank Slip"161 msgid "iugu - Bank slip" 139 162 msgstr "" 140 163 141 164 #: includes/class-wc-iugu-bank-slip-gateway.php:27 142 msgid "Accept payments by bank slip using the Iugu."165 msgid "Accept bank slip payments using iugu." 143 166 msgstr "" 144 167 … … 149 172 150 173 #: includes/class-wc-iugu-bank-slip-gateway.php:105 151 msgid "Enable Iugu Bank Slip"174 msgid "Enable bank slip payments with iugu" 152 175 msgstr "" 153 176 … … 159 182 #: includes/class-wc-iugu-bank-slip-gateway.php:111 160 183 #: includes/class-wc-iugu-credit-card-gateway.php:117 161 msgid " This controls the title which the user sees during checkout."162 msgstr "" 163 164 #: includes/class-wc-iugu-bank-slip-gateway.php:11 3165 msgid "Bank Slip"166 msgstr "" 167 168 #: includes/class-wc-iugu-bank-slip-gateway.php:11 6169 #: includes/class-wc-iugu-credit-card-gateway.php:12 2184 msgid "Payment method title seen on the checkout page." 185 msgstr "" 186 187 #: includes/class-wc-iugu-bank-slip-gateway.php:112 188 msgid "Bank slip" 189 msgstr "" 190 191 #: includes/class-wc-iugu-bank-slip-gateway.php:115 192 #: includes/class-wc-iugu-credit-card-gateway.php:121 170 193 msgid "Description" 171 194 msgstr "" 172 195 196 #: includes/class-wc-iugu-bank-slip-gateway.php:117 197 #: includes/class-wc-iugu-credit-card-gateway.php:123 198 msgid "Payment method description seen on the checkout page." 199 msgstr "" 200 173 201 #: includes/class-wc-iugu-bank-slip-gateway.php:118 174 #: includes/class-wc-iugu-credit-card-gateway.php:124175 msgid "This controls the description which the user sees during checkout."176 msgstr ""177 178 #: includes/class-wc-iugu-bank-slip-gateway.php:119179 202 msgid "Pay with bank slip" 180 203 msgstr "" 181 204 182 #: includes/class-wc-iugu-bank-slip-gateway.php:12 2183 #: includes/class-wc-iugu-credit-card-gateway.php:12 8184 msgid "Integration Settings"185 msgstr "" 186 187 #: includes/class-wc-iugu-bank-slip-gateway.php:12 7188 #: includes/class-wc-iugu-credit-card-gateway.php:13 3205 #: includes/class-wc-iugu-bank-slip-gateway.php:121 206 #: includes/class-wc-iugu-credit-card-gateway.php:127 207 msgid "Integration settings" 208 msgstr "" 209 210 #: includes/class-wc-iugu-bank-slip-gateway.php:126 211 #: includes/class-wc-iugu-credit-card-gateway.php:132 189 212 msgid "Account ID" 190 213 msgstr "" 191 214 192 #: includes/class-wc-iugu-bank-slip-gateway.php:129 193 #: includes/class-wc-iugu-credit-card-gateway.php:135 194 msgid "" 195 "Please enter your Account ID. This is needed in order to take payment. Is " 196 "possible found the Account ID in %s." 197 msgstr "" 198 199 #: includes/class-wc-iugu-bank-slip-gateway.php:129 200 #: includes/class-wc-iugu-bank-slip-gateway.php:138 201 #: includes/class-wc-iugu-bank-slip-gateway.php:181 202 #: includes/class-wc-iugu-credit-card-gateway.php:135 203 #: includes/class-wc-iugu-credit-card-gateway.php:144 204 #: includes/class-wc-iugu-credit-card-gateway.php:225 205 msgid "Iugu Account Settings" 206 msgstr "" 207 208 #: includes/class-wc-iugu-bank-slip-gateway.php:136 209 #: includes/class-wc-iugu-credit-card-gateway.php:142 215 #: includes/class-wc-iugu-bank-slip-gateway.php:128 216 #: includes/class-wc-iugu-credit-card-gateway.php:134 217 msgid "Your iugu account's unique ID, found in %s." 218 msgstr "" 219 220 #: includes/class-wc-iugu-bank-slip-gateway.php:128 221 #: includes/class-wc-iugu-credit-card-gateway.php:223 222 msgid "iugu account settings" 223 msgstr "" 224 225 #: includes/class-wc-iugu-bank-slip-gateway.php:135 226 #: includes/class-wc-iugu-credit-card-gateway.php:141 210 227 msgid "API Token" 211 228 msgstr "" 212 229 213 #: includes/class-wc-iugu-bank-slip-gateway.php:138 214 #: includes/class-wc-iugu-credit-card-gateway.php:144 215 msgid "" 216 "Please enter your API Token. This is needed in order to take payment. Is " 217 "possible generate a new API Token in %s." 218 msgstr "" 219 220 #: includes/class-wc-iugu-bank-slip-gateway.php:145 221 #: includes/class-wc-iugu-credit-card-gateway.php:151 222 msgid "Payment Options" 223 msgstr "" 224 225 #: includes/class-wc-iugu-bank-slip-gateway.php:150 226 msgid "Deadline to pay the bank slip" 227 msgstr "" 228 229 #: includes/class-wc-iugu-bank-slip-gateway.php:152 230 #: includes/class-wc-iugu-bank-slip-gateway.php:137 231 #: includes/class-wc-iugu-credit-card-gateway.php:143 232 msgid "" 233 "For real payments, use a LIVE API token. When iugu sandbox is enabled, use " 234 "a TEST API token. API tokens can be found/created in %s." 235 msgstr "" 236 237 #: includes/class-wc-iugu-bank-slip-gateway.php:137 238 #: includes/class-wc-iugu-bank-slip-gateway.php:179 239 #: includes/class-wc-iugu-credit-card-gateway.php:134 240 #: includes/class-wc-iugu-credit-card-gateway.php:143 241 msgid "iugu Account Settings" 242 msgstr "" 243 244 #: includes/class-wc-iugu-bank-slip-gateway.php:144 245 #: includes/class-wc-iugu-credit-card-gateway.php:150 246 msgid "Payment options" 247 msgstr "" 248 249 #: includes/class-wc-iugu-bank-slip-gateway.php:149 250 msgid "Default payment deadline" 251 msgstr "" 252 253 #: includes/class-wc-iugu-bank-slip-gateway.php:151 230 254 msgid "Number of days the customer will have to pay the bank slip." 231 255 msgstr "" 232 256 233 #: includes/class-wc-iugu-bank-slip-gateway.php:161 234 #: includes/class-wc-iugu-credit-card-gateway.php:205 235 msgid "Integration Behavior" 257 #: includes/class-wc-iugu-bank-slip-gateway.php:159 258 #: includes/class-wc-iugu-credit-card-gateway.php:203 259 msgid "Integration behavior" 260 msgstr "" 261 262 #: includes/class-wc-iugu-bank-slip-gateway.php:164 263 #: includes/class-wc-iugu-credit-card-gateway.php:208 264 msgid "Send only the order total" 236 265 msgstr "" 237 266 238 267 #: includes/class-wc-iugu-bank-slip-gateway.php:166 239 268 #: includes/class-wc-iugu-credit-card-gateway.php:210 240 msgid " Send only the order total"241 msgstr ""242 243 #: includes/class-wc-iugu-bank-slip-gateway.php:168 244 #: includes/class-wc-iugu-credit-card-gateway.php:212 245 msgid "" 246 "If this option is enabled will only send the order total, not the list of " 247 "items."248 msgstr "" 249 250 #: includes/class-wc-iugu-bank-slip-gateway.php:17 2251 #: includes/class-wc-iugu-credit-card-gateway.php:21 6252 msgid " Gateway Testing"269 msgid "" 270 "When enabled, the customer only gets the order total, not the list of " 271 "purchased items." 272 msgstr "" 273 274 #: includes/class-wc-iugu-bank-slip-gateway.php:170 275 #: includes/class-wc-iugu-credit-card-gateway.php:214 276 msgid "Gateway testing" 277 msgstr "" 278 279 #: includes/class-wc-iugu-bank-slip-gateway.php:175 280 #: includes/class-wc-iugu-credit-card-gateway.php:219 281 msgid "iugu sandbox" 253 282 msgstr "" 254 283 255 284 #: includes/class-wc-iugu-bank-slip-gateway.php:177 256 285 #: includes/class-wc-iugu-credit-card-gateway.php:221 257 msgid " Iugu Sandbox"286 msgid "Enable iugu sandbox" 258 287 msgstr "" 259 288 260 289 #: includes/class-wc-iugu-bank-slip-gateway.php:179 261 290 #: includes/class-wc-iugu-credit-card-gateway.php:223 262 msgid " Enable Iugu Sandbox"263 msgstr ""264 265 #: includes/class-wc-iugu-bank-slip-gateway.php:181 266 #: includes/class-wc-iugu-credit-card-gateway.php:225 267 msgid "" 268 "Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you " 269 "must use the development API Token that can be created in %s."291 msgid "" 292 "Used to test payments. Don't forget to use a TEST API token, which can be " 293 "found/created in %s." 294 msgstr "" 295 296 #: includes/class-wc-iugu-bank-slip-gateway.php:182 297 #: includes/class-wc-iugu-credit-card-gateway.php:226 298 msgid "Debugging" 270 299 msgstr "" 271 300 272 301 #: includes/class-wc-iugu-bank-slip-gateway.php:184 273 302 #: includes/class-wc-iugu-credit-card-gateway.php:228 274 msgid " Debug Log"303 msgid "Enable logging" 275 304 msgstr "" 276 305 277 306 #: includes/class-wc-iugu-bank-slip-gateway.php:186 278 307 #: includes/class-wc-iugu-credit-card-gateway.php:230 279 msgid "Enable logging" 280 msgstr "" 281 282 #: includes/class-wc-iugu-bank-slip-gateway.php:188 283 #: includes/class-wc-iugu-credit-card-gateway.php:232 284 msgid "Log Iugu events, such as API requests, you can check this log in %s." 308 msgid "" 309 "Log iugu events, such as API requests, for debugging purposes. The log can " 310 "be found in %s." 285 311 msgstr "" 286 312 … … 289 315 #: includes/class-wc-iugu-credit-card-addons-gateway.php:55 290 316 #: includes/class-wc-iugu-credit-card-addons-gateway.php:112 291 #: includes/class-wc-iugu-credit-card-gateway.php:31 3292 msgid "" 293 "Please make sure your card details have been entered correctly and that"294 " your browser supports JavaScript."317 #: includes/class-wc-iugu-credit-card-gateway.php:311 318 msgid "" 319 "Please, make sure your credit card details have been entered correctly and " 320 "that your browser supports JavaScript." 295 321 msgstr "" 296 322 … … 300 326 #: includes/class-wc-iugu-credit-card-addons-gateway.php:124 301 327 msgid "" 302 "An error occurred while trying to save your data. Please contact us forget "328 "An error occurred while trying to save your data. Please, contact us to get " 303 329 "help." 304 330 msgstr "" … … 313 339 #: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:239 314 340 #: includes/class-wc-iugu-credit-card-addons-gateway.php:253 315 msgid " Iugu: Subscription paid successfully by credit card."341 msgid "iugu: Subscription paid successfully by credit card." 316 342 msgstr "" 317 343 318 344 #: includes/class-wc-iugu-credit-card-addons-gateway-deprecated.php:244 319 345 #: includes/class-wc-iugu-credit-card-addons-gateway.php:258 320 msgid " Iugu: Subscription payment failed. Credit card declined."346 msgid "iugu: Subscription payment failed. Credit card declined." 321 347 msgstr "" 322 348 323 349 #: includes/class-wc-iugu-credit-card-gateway.php:24 324 msgid " Iugu - Credit Card"350 msgid "iugu - Credit card" 325 351 msgstr "" 326 352 327 353 #: includes/class-wc-iugu-credit-card-gateway.php:25 328 msgid "Accept payments by credit card using the Iugu."354 msgid "Accept credit card payments using iugu." 329 355 msgstr "" 330 356 331 357 #: includes/class-wc-iugu-credit-card-gateway.php:111 332 msgid "Enable Iugu Credit Card" 333 msgstr "" 334 335 #: includes/class-wc-iugu-credit-card-gateway.php:119 336 msgid "Credit Card" 337 msgstr "" 338 339 #: includes/class-wc-iugu-credit-card-gateway.php:125 340 msgid "Pay with credit card." 341 msgstr "" 342 343 #: includes/class-wc-iugu-credit-card-gateway.php:156 344 msgid "Number of credit card Installments" 345 msgstr "" 346 347 #: includes/class-wc-iugu-credit-card-gateway.php:158 348 msgid "" 349 "The maximum number of installments allowed for credit cards. Put a number " 350 "bigger than 1 to enable the field. This cannot be greater than the number " 351 "allowed in your Iugu account." 358 msgid "Enable credit card payments with iugu" 359 msgstr "" 360 361 #: includes/class-wc-iugu-credit-card-gateway.php:118 362 msgid "Credit card" 363 msgstr "" 364 365 #: includes/class-wc-iugu-credit-card-gateway.php:124 366 msgid "Pay with credit card" 367 msgstr "" 368 369 #: includes/class-wc-iugu-credit-card-gateway.php:155 370 msgid "Installments limit" 371 msgstr "" 372 373 #: includes/class-wc-iugu-credit-card-gateway.php:157 374 msgid "" 375 "The maximum number of installments allowed for credit card payments. This " 376 "can't be greater than the setting allowed in your iugu account." 377 msgstr "" 378 379 #: includes/class-wc-iugu-credit-card-gateway.php:166 380 msgid "Smallest installment value" 352 381 msgstr "" 353 382 354 383 #: includes/class-wc-iugu-credit-card-gateway.php:168 355 msgid "Smallest Installment" 356 msgstr "" 357 358 #: includes/class-wc-iugu-credit-card-gateway.php:170 359 msgid "Smallest value of each installment, cannot be less than 5." 384 msgid "Smallest value of each installment. Value can't be lower than 5." 385 msgstr "" 386 387 #: includes/class-wc-iugu-credit-card-gateway.php:172 388 msgid "Pass on interest" 389 msgstr "" 390 391 #: includes/class-wc-iugu-credit-card-gateway.php:174 392 msgid "" 393 "Pass on the installments' interest to the customer. (Please, be aware that " 394 "this option currently only applies to iugu accounts created before 2017.)" 360 395 msgstr "" 361 396 362 397 #: includes/class-wc-iugu-credit-card-gateway.php:175 363 msgid "Pass interest rate"364 msgstr ""365 366 #: includes/class-wc-iugu-credit-card-gateway.php:177367 msgid "Pass on the Installments interest to the customer."368 msgstr ""369 370 #: includes/class-wc-iugu-credit-card-gateway.php:178371 #: includes/class-wc-iugu-credit-card-gateway.php:185372 #: includes/class-wc-iugu-credit-card-gateway.php:197373 msgid ""374 "This option is only for display and should represent what was configured on "375 "your Iugu account."376 msgstr ""377 378 398 #: includes/class-wc-iugu-credit-card-gateway.php:183 399 #: includes/class-wc-iugu-credit-card-gateway.php:195 400 msgid "" 401 "This option is only for display and should mimic your iugu account's " 402 "settings." 403 msgstr "" 404 405 #: includes/class-wc-iugu-credit-card-gateway.php:180 379 406 msgid "Free interest" 380 407 msgstr "" 381 408 382 #: includes/class-wc-iugu-credit-card-gateway.php:185 383 msgid "" 384 "Indicate how many installments shall not bear interest, use 0 to disable " 385 "this option." 409 #: includes/class-wc-iugu-credit-card-gateway.php:182 410 msgid "" 411 "Indicate how many installments shall not bear any interest. Enter 0 to " 412 "disable this option." 413 msgstr "" 414 415 #: includes/class-wc-iugu-credit-card-gateway.php:193 416 msgid "Transaction rate" 386 417 msgstr "" 387 418 388 419 #: includes/class-wc-iugu-credit-card-gateway.php:195 389 msgid "Rate per transaction" 390 msgstr "" 391 392 #: includes/class-wc-iugu-credit-card-gateway.php:197 393 msgid "Enter here the transaction rate that is set up in your plan in Iugu." 420 msgid "Enter the transaction rate set up in your iugu plan." 421 msgstr "" 422 423 #: includes/class-wc-iugu-credit-card-gateway.php:253 424 #: templates/credit-card/payment-form.php:17 425 msgid "Card number" 426 msgstr "" 427 428 #: includes/class-wc-iugu-credit-card-gateway.php:254 429 #: templates/credit-card/payment-form.php:30 430 msgid "Security code" 394 431 msgstr "" 395 432 396 433 #: includes/class-wc-iugu-credit-card-gateway.php:255 397 #: templates/credit-card/payment-form.php:17 398 msgid "Card Number" 434 msgid "Expiry date" 399 435 msgstr "" 400 436 401 437 #: includes/class-wc-iugu-credit-card-gateway.php:256 402 #: templates/credit-card/payment-form.php:30 403 msgid "Security Code" 438 msgid "First name" 404 439 msgstr "" 405 440 406 441 #: includes/class-wc-iugu-credit-card-gateway.php:257 407 msgid " Card Expiry Date"442 msgid "Last name" 408 443 msgstr "" 409 444 410 445 #: includes/class-wc-iugu-credit-card-gateway.php:258 411 msgid "First Name"412 msgstr ""413 414 #: includes/class-wc-iugu-credit-card-gateway.php:259415 msgid "Last Name"416 msgstr ""417 418 #: includes/class-wc-iugu-credit-card-gateway.php:260419 446 msgid "is invalid" 447 msgstr "" 448 449 #: includes/class-wc-iugu-my-account.php:41 450 #: includes/class-wc-iugu-my-account.php:64 451 #: templates/bank-slip/emails/html-instructions.php:17 452 #: templates/bank-slip/payment-instructions.php:16 453 msgid "Pay the bank slip" 420 454 msgstr "" 421 455 … … 425 459 #: includes/views/html-notice-ecfb-missing.php:20 426 460 #: includes/views/html-notice-woocommerce-missing.php:20 427 msgid " Iugu Disabled"461 msgid "iugu disabled" 428 462 msgstr "" 429 463 430 464 #: includes/views/html-notice-account-id-missing.php:13 431 msgid " You should inform your API Token."465 msgid "Please, inform a valid API token." 432 466 msgstr "" 433 467 … … 437 471 438 472 #: includes/views/html-notice-currency-not-supported.php:13 439 msgid "Currency <code>%s</code> is not supported. Works only with Brazilian Real." 473 msgid "" 474 "Currency <code>%s</code> is not supported. WooCommerce iugu only works with " 475 "Brazilian real (BRL)." 440 476 msgstr "" 441 477 442 478 #: includes/views/html-notice-ecfb-missing.php:20 443 msgid "Iugu WooCommerce requires the latest version of the %s to works." 479 #: includes/views/html-notice-woocommerce-missing.php:20 480 msgid "WooCommerce iugu requires the latest version of %s to work!" 444 481 msgstr "" 445 482 … … 449 486 450 487 #: includes/views/html-notice-woocommerce-missing.php:20 451 msgid "Iugu WooCommerce depends on the last version of %s to work!"452 msgstr ""453 454 #: includes/views/html-notice-woocommerce-missing.php:20455 488 msgid "WooCommerce" 456 489 msgstr "" 457 490 458 #: iugu-woocommerce.php:152 459 msgid "System Status > Logs" 460 msgstr "" 461 462 #: iugu-woocommerce.php:187 463 msgid "Credit Card Settings" 491 #: iugu-woocommerce.php:154 492 msgid "System status > logs" 464 493 msgstr "" 465 494 466 495 #: iugu-woocommerce.php:189 467 msgid "Bank Slip Settings" 496 msgid "Credit card settings" 497 msgstr "" 498 499 #: iugu-woocommerce.php:191 500 msgid "Bank slip settings" 468 501 msgstr "" 469 502 470 503 #: templates/bank-slip/checkout-instructions.php:16 471 504 msgid "" 472 "After clicking \"Place order\" you will have access to banking bank slip"473 "which you can print and pay in your internet banking or in a lottery "505 "After clicking on \"Place order\", you will have access to the bank slip, " 506 "which you can print and pay on your internet banking or in a lottery " 474 507 "retailer." 475 508 msgstr "" … … 489 522 #: templates/bank-slip/emails/plain-instructions.php:18 490 523 msgid "" 491 "Please use the link below to view your bank slip, you can print and pay in " 492 "your internet banking or in a lottery retailer:" 493 msgstr "" 494 495 #: templates/bank-slip/emails/html-instructions.php:17 496 #: templates/bank-slip/payment-instructions.php:16 497 msgid "Pay the bank slip" 524 "Use the link below to view your bank slip. You can print and pay it on your " 525 "internet banking or in a lottery retailer." 498 526 msgstr "" 499 527 … … 511 539 512 540 #: templates/bank-slip/payment-instructions.php:16 513 msgid "You can print and pay i n your internet banking or in a lottery retailer."541 msgid "You can print and pay it on your internet banking or in a lottery retailer." 514 542 msgstr "" 515 543 … … 521 549 522 550 #: templates/credit-card/payment-form.php:21 523 msgid "Name Printed on the Card"551 msgid "Name printed on card" 524 552 msgstr "" 525 553 526 554 #: templates/credit-card/payment-form.php:26 527 msgid "Expiry (MM/YYYY)"555 msgid "Expiry date (MM/YYYY)" 528 556 msgstr "" 529 557 … … 553 581 554 582 #. Plugin Name of the plugin/theme 555 msgid " Iugu WooCommerce"583 msgid "WooCommerce iugu" 556 584 msgstr "" 557 585 … … 565 593 566 594 #. Author of the plugin/theme 567 msgid " Iugu"595 msgid "iugu" 568 596 msgstr "" 569 597 570 598 #. Author URI of the plugin/theme 571 msgid "http ://iugu.com/"572 msgstr "" 599 msgid "https://iugu.com/" 600 msgstr "" -
iugu-woocommerce/trunk/readme.txt
r1801300 r1811329 4 4 Requires at least: 3.9 5 5 Tested up to: 4.9 6 Stable tag: 2.0. 06 Stable tag: 2.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 89 89 == Changelog == 90 90 91 = 2.0.1 = 92 * Adição: Tradução do plugin para o português. 93 91 94 = 2.0.0 = 92 95 * Melhoria: Removidas as funções deprecadas do WooCommerce. … … 98 101 == Upgrade Notice == 99 102 100 = 2.0. 0=101 Removemos as funções obsoletas do WooCommerce para lançar uma versão _major_ (2.0.0) compatível apenas com o WooCommerce 3.0 ou superior. Portanto, atualize o seu plugin do WC se necessário.103 = 2.0.1 = 104 Melhoramos todos os textos do plugin e o traduzimos inteiramente para o português. 102 105 103 106 == Suporte == -
iugu-woocommerce/trunk/templates/bank-slip/checkout-instructions.php
r1107944 r1811329 14 14 15 15 <div id="iugu-bank-slip-instructions"> 16 <p><?php _e( 'After clicking "Place order" you will have access to banking bank slip which you can print and pay in your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'Note: The order will be confirmed only after the payment approval.', 'iugu-woocommerce' ); ?></p>16 <p><?php _e( 'After clicking on "Place order", you will have access to the bank slip, which you can print and pay on your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'Note: The order will be confirmed only after the payment approval.', 'iugu-woocommerce' ); ?></p> 17 17 </div> -
iugu-woocommerce/trunk/templates/bank-slip/emails/html-instructions.php
r1107944 r1811329 15 15 <h2><?php _e( 'Payment', 'iugu-woocommerce' ); ?></h2> 16 16 17 <p class="order_details"><?php _e( ' Please use the link below to view your bank slip, you can print and pay in your internet banking or in a lottery retailer:', 'iugu-woocommerce' ); ?><br /><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></p>17 <p class="order_details"><?php _e( 'Use the link below to view your bank slip. You can print and pay it on your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></p> -
iugu-woocommerce/trunk/templates/bank-slip/emails/plain-instructions.php
r1107944 r1811329 16 16 echo "\n\n"; 17 17 18 _e( ' Please use the link below to view your bank slip, you can print and pay in your internet banking or in a lottery retailer:', 'iugu-woocommerce' );18 _e( 'Use the link below to view your bank slip. You can print and pay it on your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); 19 19 20 20 echo "\n"; -
iugu-woocommerce/trunk/templates/bank-slip/payment-instructions.php
r1107944 r1811329 14 14 15 15 <div class="woocommerce-message"> 16 <span><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><?php _e( 'Please click in the following button to view your bank slip.', 'iugu-woocommerce' ); ?><br /><?php _e( 'You can print and pay i n your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></span>16 <span><a class="button" href="<?php echo esc_url( $pdf ); ?>" target="_blank"><?php _e( 'Pay the bank slip', 'iugu-woocommerce' ); ?></a><?php _e( 'Please click in the following button to view your bank slip.', 'iugu-woocommerce' ); ?><br /><?php _e( 'You can print and pay it on your internet banking or in a lottery retailer.', 'iugu-woocommerce' ); ?><br /><?php _e( 'After we receive the bank slip payment confirmation, your order will be processed.', 'iugu-woocommerce' ); ?></span> 17 17 </div> -
iugu-woocommerce/trunk/templates/credit-card/payment-form.php
r1801300 r1811329 15 15 <fieldset id="iugu-credit-card-fields"> 16 16 <p class="form-row form-row-first"> 17 <label for="iugu-card-number"><?php _e( 'Card Number', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>17 <label for="iugu-card-number"><?php _e( 'Card number', 'iugu-woocommerce' ); ?> <span class="required">*</span></label> 18 18 <input id="iugu-card-number" class="input-text wc-credit-card-form-card-number" type="text" maxlength="20" autocomplete="off" placeholder="•••• •••• •••• ••••" style="font-size: 1.5em; padding: 8px;" data-iugu="number" /> 19 19 </p> 20 20 <p class="form-row form-row-last"> 21 <label for="iugu-card-holder-name"><?php _e( 'Name Printed on the Card', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>21 <label for="iugu-card-holder-name"><?php _e( 'Name printed on card', 'iugu-woocommerce' ); ?> <span class="required">*</span></label> 22 22 <input id="iugu-card-holder-name" name="iugu_card_holder_name" class="input-text" type="text" autocomplete="off" style="font-size: 1.5em; padding: 8px;" data-iugu="full_name" /> 23 23 </p> 24 24 <div class="clear"></div> 25 25 <p class="form-row form-row-first"> 26 <label for="iugu-card-expiry"><?php _e( 'Expiry (MM/YYYY)', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>26 <label for="iugu-card-expiry"><?php _e( 'Expiry date (MM/YYYY)', 'iugu-woocommerce' ); ?> <span class="required">*</span></label> 27 27 <input id="iugu-card-expiry" class="input-text wc-credit-card-form-card-expiry" type="text" autocomplete="off" placeholder="<?php _e( 'MM / YYYY', 'iugu-woocommerce' ); ?>" style="font-size: 1.5em; padding: 8px;" data-iugu="expiration" /> 28 28 </p> 29 29 <p class="form-row form-row-last"> 30 <label for="iugu-card-cvc"><?php _e( 'Security Code', 'iugu-woocommerce' ); ?> <span class="required">*</span></label>30 <label for="iugu-card-cvc"><?php _e( 'Security code', 'iugu-woocommerce' ); ?> <span class="required">*</span></label> 31 31 <input id="iugu-card-cvc" class="input-text wc-credit-card-form-card-cvc" type="text" autocomplete="off" placeholder="<?php _e( 'CVC', 'iugu-woocommerce' ); ?>" style="font-size: 1.5em; padding: 8px;" data-iugu="verification_value" /> 32 32 </p>
Note: See TracChangeset
for help on using the changeset viewer.