Changeset 1982294
- Timestamp:
- 11/29/2018 01:29:32 AM (7 years ago)
- Location:
- woo-businesspay
- Files:
-
- 3 added
- 10 edited
-
assets/Screenshot_6.jpg (added)
-
assets/screenshot-4.png (added)
-
assets/screenshot-5.png (added)
-
trunk/assets/js/frontend.js (modified) (1 diff)
-
trunk/assets/js/frontend.min.js (modified) (1 diff)
-
trunk/includes/woocommerce-businesspay-gateway.php (modified) (40 diffs)
-
trunk/languages/woocommerce-businesspay-pt_BR.mo (modified) (previous)
-
trunk/languages/woocommerce-businesspay-pt_BR.po (modified) (23 diffs)
-
trunk/languages/woocommerce-businesspay.pot (modified) (20 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/templates/businesspay-panel-antifraud.php (modified) (2 diffs)
-
trunk/templates/businesspay-panel-gateway.php (modified) (2 diffs)
-
trunk/woocommerce-businesspay.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
woo-businesspay/trunk/assets/js/frontend.js
r1962624 r1982294 55 55 jQuery("#businesspay_card_brand").val('unknown'); 56 56 } 57 }); 58 59 jQuery(document).on('keyup', '#businesspay_holder_name', function(){ 60 jQuery("#businesspay_holder_name").val(jQuery("#businesspay_holder_name").val().toUpperCase()); 57 61 }); 58 62 -
woo-businesspay/trunk/assets/js/frontend.min.js
r1962624 r1982294 1 (function(b){jQuery(document).on("click","#businesspay_tablink_card",function(f){f.preventDefault();e()});jQuery(document).on("click","#businesspay_tablink_transfer",function(f){f.preventDefault();a()});jQuery(document).on("click","#businesspay_tablink_billet",function(f){f.preventDefault();c()});jQuery(document).on("click","#businesspay_transfer_itau_radio",function(){jQuery("#businesspay-transfer-itau-li").addClass("active");jQuery("#businesspay-transfer-bradesco-li").removeClass("active")});jQuery(document).on("click","#businesspay_transfer_bradesco_radio",function(){jQuery("#businesspay-transfer-itau-li").removeClass("active");jQuery("#businesspay-transfer-bradesco-li").addClass("active")});jQuery(document).on("click","#businesspay_billet_itau_radio",function(){jQuery("#businesspay-billet-itau-li").addClass("active");jQuery("#businesspay-billet-bradesco-li").removeClass("active")});jQuery(document).on("click","#businesspay_billet_bradesco_radio",function(){jQuery("#businesspay-billet-itau-li").removeClass("active");jQuery("#businesspay-billet-bradesco-li").addClass("active")});jQuery(document).on("keyup","#businesspay_card_number",function(){var f=jQuery("#businesspay_card_number");if(f.hasClass("visa")){jQuery("#businesspay_card_brand").val("visa")}else{if(f.hasClass("mastercard")){jQuery("#businesspay_card_brand").val("mastercard")}else{if(f.hasClass("amex")){jQuery("#businesspay_card_brand").val("amex")}else{if(f.hasClass("dinersclub")){jQuery("#businesspay_card_brand").val("dinersclub")}else{if(f.hasClass("discover")){jQuery("#businesspay_card_brand").val("discover")}else{jQuery("#businesspay_card_brand").val("unknown")}}}}}});jQuery(document).on("key down","#businesspay_doc",function(h){var i=h.key.replace(/\D/g,"");var g=jQuery(this).val().replace(/\D/g,"");var f=g.concat(i).length;jQuery(this).mask((f<=11)?"000.000.000-00":"00.000.000/0000-00")});jQuery(document).on("keyup","#businesspay_doc",function(h){var i=h.key.replace(/\D/g,"");var g=jQuery(this).val().replace(/\D/g,"");var f=g.concat(i).length-1;jQuery(this).mask((f<=11)?"000.000.000-00":"00.000.000/0000-00")});function e(){jQuery("#businesspay_content_credit_card").show();jQuery("#businesspay_content_transfer").hide();jQuery("#businesspay_content_billet").hide();jQuery("#businesspay_tablink_card").addClass("active");jQuery("#businesspay_tablink_transfer").removeClass("active");jQuery("#businesspay_tablink_billet").removeClass("active");jQuery("#businesspay_selected_tab").val("card")}function a(){jQuery("#businesspay_content_credit_card").hide();jQuery("#businesspay_content_transfer").show();jQuery("#businesspay_content_billet").hide();jQuery("#businesspay_tablink_card").removeClass("active");jQuery("#businesspay_tablink_transfer").addClass("active");jQuery("#businesspay_tablink_billet").removeClass("active");jQuery("#businesspay_selected_tab").val("transfer")}function c(){jQuery("#businesspay_content_credit_card").hide();jQuery("#businesspay_content_transfer").hide();jQuery("#businesspay_content_billet").show();jQuery("#businesspay_tablink_card").removeClass("active");jQuery("#businesspay_tablink_transfer").removeClass("active");jQuery("#businesspay_tablink_billet").addClass("active");jQuery("#businesspay_selected_tab").val("billet")}function d(){if(jQuery("#businesspay_content_credit_card").length){e()}else{if(jQuery("#businesspay_content_transfer").length){a()}else{if(jQuery("#businesspay_content_billet").length){c()}}}}jQuery(document).on("updated_checkout",function(){d()});jQuery(document).ready(function(){d()})})(jQuery.noConflict());1 (function(b){jQuery(document).on("click","#businesspay_tablink_card",function(f){f.preventDefault();e()});jQuery(document).on("click","#businesspay_tablink_transfer",function(f){f.preventDefault();a()});jQuery(document).on("click","#businesspay_tablink_billet",function(f){f.preventDefault();c()});jQuery(document).on("click","#businesspay_transfer_itau_radio",function(){jQuery("#businesspay-transfer-itau-li").addClass("active");jQuery("#businesspay-transfer-bradesco-li").removeClass("active")});jQuery(document).on("click","#businesspay_transfer_bradesco_radio",function(){jQuery("#businesspay-transfer-itau-li").removeClass("active");jQuery("#businesspay-transfer-bradesco-li").addClass("active")});jQuery(document).on("click","#businesspay_billet_itau_radio",function(){jQuery("#businesspay-billet-itau-li").addClass("active");jQuery("#businesspay-billet-bradesco-li").removeClass("active")});jQuery(document).on("click","#businesspay_billet_bradesco_radio",function(){jQuery("#businesspay-billet-itau-li").removeClass("active");jQuery("#businesspay-billet-bradesco-li").addClass("active")});jQuery(document).on("keyup","#businesspay_card_number",function(){var f=jQuery("#businesspay_card_number");if(f.hasClass("visa")){jQuery("#businesspay_card_brand").val("visa")}else{if(f.hasClass("mastercard")){jQuery("#businesspay_card_brand").val("mastercard")}else{if(f.hasClass("amex")){jQuery("#businesspay_card_brand").val("amex")}else{if(f.hasClass("dinersclub")){jQuery("#businesspay_card_brand").val("dinersclub")}else{if(f.hasClass("discover")){jQuery("#businesspay_card_brand").val("discover")}else{jQuery("#businesspay_card_brand").val("unknown")}}}}}});jQuery(document).on("keyup","#businesspay_holder_name",function(){jQuery("#businesspay_holder_name").val(jQuery("#businesspay_holder_name").val().toUpperCase())});jQuery(document).on("keydown","#businesspay_doc",function(h){var i=h.key.replace(/\D/g,"");var g=jQuery(this).val().replace(/\D/g,"");var f=g.concat(i).length;jQuery(this).mask((f<=11)?"000.000.000-00":"00.000.000/0000-00")});jQuery(document).on("keyup","#businesspay_doc",function(h){var i=h.key.replace(/\D/g,"");var g=jQuery(this).val().replace(/\D/g,"");var f=g.concat(i).length-1;jQuery(this).mask((f<=11)?"000.000.000-00":"00.000.000/0000-00")});function e(){jQuery("#businesspay_content_credit_card").show();jQuery("#businesspay_content_transfer").hide();jQuery("#businesspay_content_billet").hide();jQuery("#businesspay_tablink_card").addClass("active");jQuery("#businesspay_tablink_transfer").removeClass("active");jQuery("#businesspay_tablink_billet").removeClass("active");jQuery("#businesspay_selected_tab").val("card")}function a(){jQuery("#businesspay_content_credit_card").hide();jQuery("#businesspay_content_transfer").show();jQuery("#businesspay_content_billet").hide();jQuery("#businesspay_tablink_card").removeClass("active");jQuery("#businesspay_tablink_transfer").addClass("active");jQuery("#businesspay_tablink_billet").removeClass("active");jQuery("#businesspay_selected_tab").val("transfer")}function c(){jQuery("#businesspay_content_credit_card").hide();jQuery("#businesspay_content_transfer").hide();jQuery("#businesspay_content_billet").show();jQuery("#businesspay_tablink_card").removeClass("active");jQuery("#businesspay_tablink_transfer").removeClass("active");jQuery("#businesspay_tablink_billet").addClass("active");jQuery("#businesspay_selected_tab").val("billet")}function d(){if(jQuery("#businesspay_content_credit_card").length){e()}else{if(jQuery("#businesspay_content_transfer").length){a()}else{if(jQuery("#businesspay_content_billet").length){c()}}}}jQuery(document).on("updated_checkout",function(){d()});jQuery(document).ready(function(){d()})})(jQuery.noConflict()); -
woo-businesspay/trunk/includes/woocommerce-businesspay-gateway.php
r1977545 r1982294 11 11 $name_in_invoice, $invoice_prefix, $installments, $installments_minimum, $installments_maximum, 12 12 $installment_minimum_value, $billet_logo_url, $billet_number_days, $billet_instruction_1, $sandbox, $debug, 13 $authority, $auth_ id, $auth_last, $auth_next, $auth_interval, $auth_vendor_id, $enable_client, $enable_install,14 $ antifraud_product_id, $antifraud_login_demo, $antifraud_login_live, $antifraud_password_demo,15 $antifraud_password_ live, $antifraud_app_id_demo, $antifraud_app_id_live, $antifraud_auth_token,16 $antifraud_auth_ expiration, $auth_api, $auth_scope, $auth_version, $auth_schema, $auth_gateway, $auth_validate,17 $auth_ summary, $default_session_interval, $default_billet_expiration_days, $logger;13 $authority, $auth_client_id, $auth_install_id, $auth_last, $auth_next, $auth_interval, $auth_vendor_id, 14 $enable_client, $enable_install, $antifraud_product_id, $antifraud_login_demo, $antifraud_login_live, 15 $antifraud_password_demo, $antifraud_password_live, $antifraud_app_id_demo, $antifraud_app_id_live, 16 $antifraud_auth_token, $antifraud_auth_expiration, $auth_api, $auth_scope, $auth_version, $auth_schema, 17 $auth_gateway, $default_session_interval, $default_billet_expiration_days, $logger; 18 18 19 19 public … … 26 26 $this->method_title = esc_html__( 'BusinessPay', 'woocommerce-businesspay' ); 27 27 $this->method_description = esc_html__( 'Accept payments using BusinessPay Gateway.', 'woocommerce-businesspay' ); 28 $this->supports = array( 'products' );28 $this->supports = array( 'products', 'refunds' ); 29 29 30 30 $this->gateway_demo_url = 'https://apidemo.gate2all.com.br'; … … 73 73 74 74 //Auth 75 $this->auth_id = get_option( 'businesspay_auth_id' ); 75 $this->auth_client_id = get_option( 'businesspay_auth_client_id' ); 76 $this->auth_install_id = get_option( 'businesspay_auth_install_id' ); 76 77 $this->auth_vendor_id = '1'; 77 78 $this->enable_client = get_option( 'businesspay_enable_client' ); … … 89 90 $this->default_session_interval = '12'; 90 91 91 $this->auth_api = 'wp-json'; 92 $this->authority = 'agenciahypelab'; 93 $this->auth_scope = 'authorization'; 94 $this->auth_version = 'v1'; 95 $this->auth_schema = 'https'; 96 $this->auth_gateway = 'gate2all'; 97 $this->auth_validate = 'validate'; 98 $this->auth_summary = 'summary'; 92 $this->auth_api = 'wp-json'; 93 $this->authority = 'agenciahypelab'; 94 $this->auth_scope = 'authorization'; 95 $this->auth_version = 'v1'; 96 $this->auth_schema = 'https'; 97 $this->auth_gateway = 'gate2all'; 99 98 100 99 //Actions 101 add_action( 'woocommerce_api_wc_' . $this->id, array( $this, 'webhook_callback' ) ); 100 add_action( 'woocommerce_api_wc_' . $this->id, array( 101 $this, 102 'webhook_callback' 103 ) 104 ); 102 105 add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( 103 106 $this, … … 112 115 'businesspay_admin_panel_antifraud' 113 116 ) ); 114 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); 117 add_action( 'wp_enqueue_scripts', array( 118 $this, 119 'enqueue_scripts' 120 ) 121 ); 115 122 add_action( 'wp_footer', array( $this, 'antifraud_insert_mapper' ) ); 116 123 117 124 //Filters 118 add_filter( 'woocommerce_billing_fields', array( $this, 'set_neighborhood_required' ) ); 125 add_filter( 'woocommerce_billing_fields', array( 126 $this, 127 'set_neighborhood_required' 128 ) 129 ); 119 130 120 131 //Admin notices … … 133 144 134 145 //Get session Info 135 $this->get_session_ info();146 $this->get_session_renew(); 136 147 137 148 echo '<table class="businesspay-table">'; … … 354 365 'description' => '', 355 366 ), 356 'billet_logo_url' => array(357 'type' => 'text',358 'title' => esc_html__( 'Custom Logo URL', 'woocommerce-businesspay' ),359 'description' => esc_html__( 'URL logo image to be shown on the billet', 'woocommerce-businesspay' ),360 'default' => '',361 'desc_tip' => true,362 ),363 367 'billet_number_days' => array( 364 368 'title' => esc_html__( 'Number of Days', 'woocommerce-businesspay' ), … … 569 573 } 570 574 575 public function process_refund( $order_id, $amount = null, $reason = '' ) { 576 $result = true; 577 $order = wc_get_order( $order_id ); 578 if ( $amount == $this->get_total_order( $order ) ) { 579 if ( ! empty( $reason ) ) { 580 $this->gateway_maybe_do_refund( $order, $reason ); 581 $this->antifraud_maybe_do_refund( $order, $reason ); 582 } else { 583 wc_create_order_note( $order_id, __( 'Failed to refund order. The reason field must be filled.', 'woocommerce-businesspay' ) ); 584 } 585 } else { 586 wc_create_order_note( $order_id, __( 'Failed to refund order. The Amount must be identical to order total.', 'woocommerce-businesspay' ) ); 587 } 588 589 return $result; 590 } 571 591 572 592 //GATEWAY CALLS … … 665 685 } 666 686 667 $response = $this->gateway_api_request( 'POST', ' /transactions', $body );687 $response = $this->gateway_api_request( 'POST', 'transactions', $body ); 668 688 669 689 if ( ! isset( $response->result ) ) { … … 686 706 $result = array( 'result' => 'failure', 'messages' => '' ); 687 707 try { 688 $order_id = $this->get_order_id( $order ); 689 $transaction_id = get_post_meta( $order_id, '_businesspay-transaction-id', true ); 690 $body = array( 'transactionId' => $transaction_id ); 691 692 $response = $this->gateway_api_request( 'PUT', '/transactions/' . $transaction_id . '/capture', $body ); 693 if ( ! isset( $response->result ) ) { 694 $this->gateway_insert_order_metadata( $order, $response ); 695 $result = $this->gateway_insert_order_status( $order, $response ); 708 $oid = $this->get_order_id( $order ); 709 $amount_captured = get_post_meta( $oid, '_businesspay-card-captured-amount', true ); 710 if ( empty( $amount_captured ) ) { 711 $transaction_id = get_post_meta( $oid, '_businesspay-transaction-id', true ); 712 $body = array( 'transactionId' => $transaction_id ); 713 $endpoint = 'transactions/' . $transaction_id . '/capture'; 714 $response = $this->gateway_api_request( 'PUT', $endpoint, $body ); 715 if ( ! isset( $response->result ) ) { 716 $this->gateway_insert_order_metadata( $order, $response ); 717 $result = $this->gateway_insert_order_status( $order, $response ); 718 } 696 719 } 697 720 } catch ( Exception $e ) { … … 718 741 ); 719 742 720 $url = ( $this->sandbox == 'yes' ) ? $this->gateway_demo_url . '/' . $this->gateway_demo_version : $this->gateway_live_url . '/' . $this->gateway_live_version; 721 $this->logger( 'API Gateway Request | URL', $url ); 722 $this->logger( 'API Gateway Request | BODY', $body ); 723 724 $response = wp_safe_remote_post( $url . $endpoint, $payload ); 725 743 $url = ( $this->sandbox == 'yes' ) ? $this->gateway_demo_url . '/' . $this->gateway_demo_version . '/' . $endpoint : $this->gateway_live_url . '/' . $this->gateway_live_version . '/' . $endpoint; 744 745 $response = wp_safe_remote_post( $url, $payload ); 726 746 if ( ! is_wp_error( $response ) ) { 727 747 $response_json = json_decode( wp_remote_retrieve_body( $response ) ); … … 811 831 update_post_meta( $order_id, '_businesspay-bankslip-payment-amount', $response->payment->bankSlip->paymentAmount ); 812 832 } 813 $this-> set_summary_info( $order );833 $this->auth_transaction( $order ); 814 834 } 815 835 } catch ( Exception $e ) { … … 851 871 $tid = get_post_meta( $order_id, '_businesspay-transaction-type', true ); 852 872 if ( strlen( $tid ) > 0 ) { 873 delete_post_meta( $order_id, '_businesspay-transaction-id' ); 853 874 delete_post_meta( $order_id, '_businesspay-transaction-type' ); 854 875 delete_post_meta( $order_id, '_businesspay-transaction-date' ); … … 926 947 break; 927 948 case 9: //CANCELADA 928 $result = ' cancelled';949 $result = 'refunded'; 929 950 break; 930 951 case 10: //PENDENTE DE CONFIRMAÇÃO … … 939 960 } 940 961 941 //Verify billet & transfer payment amount942 if ( $result == 'processing' ) {962 if ( $result == 'processing' && $this->get_gateway_payment_captured( $response ) ) { 963 //Verify payment amount 943 964 $paid_wrong = false; 944 965 $paid_total = $this->get_gateway_payment_amount( $response ); … … 996 1017 break; 997 1018 case 9: //CANCELADA 998 $result = ' failure';1019 $result = 'success'; 999 1020 break; 1000 1021 case 10: //PENDENTE DE CONFIRMAÇÃO … … 1060 1081 } 1061 1082 1062 //Verify billet & transfer payment amount1063 if ( $result == 'processing' ) {1083 if ( $response->status == 6 && $this->get_gateway_payment_captured( $response ) ) { 1084 //Verify payment amount 1064 1085 $paid_wrong = false; 1065 1086 $paid_total = $this->get_gateway_payment_amount( $response ); … … 1085 1106 } 1086 1107 1108 //GATEWAY REFUNDS 1109 1110 private function gateway_maybe_do_refund( $order, $reason ) { 1111 $status = get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-status', true ); 1112 $transaction_id = get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-id', true ); 1113 $transaction_type = get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-type', true ); 1114 $transaction_card = $transaction_type == 'credit-card' || $transaction_type == 'debit-card'; 1115 1116 if ( ( $status == 5 || $status == 6 ) && ! empty( $transaction_id ) && $transaction_card ) { 1117 $this->gateway_do_refund( $order, $reason ); 1118 } else { 1119 if ( $transaction_type == 'billet' ) { 1120 wc_create_order_note( $this->get_order_id( $order ), __( 'Billet transactions cannot be refunded.', 'woocommerce-businesspary' ) ); 1121 } elseif ( $transaction_type == 'bank-transfer' ) { 1122 wc_create_order_note( $this->get_order_id( $order ), __( 'Bank transfer transactions cannot be refunded.', 'woocommerce-businesspary' ) ); 1123 } 1124 } 1125 } 1126 1127 private function gateway_do_refund( $order ) { 1128 $result = array( 'result' => 'failure', 'messages' => '' ); 1129 try { 1130 $order_id = $this->get_order_id( $order ); 1131 $transaction_id = get_post_meta( $order_id, '_businesspay-transaction-id', true ); 1132 $body = array( 'transactionId' => $transaction_id ); 1133 $endpoint = 'transactions/' . $transaction_id . '/void'; 1134 $response = $this->gateway_api_request( 'PUT', $endpoint, $body ); 1135 $this->logger( 'Gateway API Do Refund | Response', $response ); 1136 if ( ! isset( $response->result ) ) { 1137 $this->gateway_insert_order_metadata( $order, $response ); 1138 $result = $this->gateway_insert_order_status( $order, $response ); 1139 } 1140 } catch ( Exception $e ) { 1141 $this->logger( 'Gateway API Do Refund Error', $e->getMessage() ); 1142 } 1143 1144 return $result; 1145 } 1146 1087 1147 1088 1148 //ANTIFRAUD CALLS … … 1149 1209 1150 1210 private function antifraud_maybe_do_analysis( $order, $gateway_response ) { 1151 if ( $this->enable_antifraud && $gateway_response->status == 5 ) { 1152 $oid = $this->get_order_id( $order ); 1153 $transaction_type = get_post_meta( $oid, '_businesspay-transaction-type', true ); 1154 if ( $transaction_type == 'credit-card' || $transaction_type == 'debit-card' ) { 1155 $this->antifraud_do_analysis( $order ); 1156 } 1211 $status = $gateway_response->status; 1212 $oid = $this->get_order_id( $order ); 1213 $transaction_id = get_post_meta( $oid, '_businesspay-antifraud-transaction-id', true ); 1214 $transaction_type = get_post_meta( $oid, '_businesspay-transaction-type', true ); 1215 $transaction_card = $transaction_type == 'credit-card' || $transaction_type == 'debit-card'; 1216 $amount_captured = get_post_meta( $oid, '_businesspay-card-captured-amount', true ); 1217 1218 if ( ( $status == 5 || $status == 6 ) && empty( $transaction_id ) && $transaction_card && empty( $amount_captured ) && $this->enable_antifraud ) { 1219 $this->antifraud_do_analysis( $order ); 1157 1220 } 1158 1221 } … … 1297 1360 $url = ( $this->sandbox == 'yes' ) ? $this->antifraud_demo_url . '/api/' . $this->antifraud_demo_version . '/' . $endpoint : $this->antifraud_live_url . '/' . $this->antifraud_live_version . '/' . $endpoint; 1298 1361 1299 $this->logger( 'API Antifraud Request | Body', $body ); 1362 $this->logger( 'API Antifraud Request | URL', $method . ' - ' . $url ); 1363 $this->logger( 'API Antifraud Request | BODY', $body ); 1300 1364 $response = wp_safe_remote_post( $url, $payload ); 1301 1365 … … 1353 1417 if ( $res_result == 'success' ) { 1354 1418 $res_note = esc_html__( 'Antifraud Status: ', 'woocommerce-businesspay' ) . $res_message; 1355 $this->update_order_status( $order, $res_status, $res_note ); 1419 1420 if ( ! empty( $res_status ) ) { 1421 $this->update_order_status( $order, $res_status, $res_note ); 1422 } else { 1423 wc_create_order_note( $this->get_order_id( $order ), $res_note ); 1424 } 1425 1356 1426 1357 1427 $analysis = $response->orders[0]->status; … … 1400 1470 break; 1401 1471 case 'CAN': //CANCELADO PELO CLIENTE 1402 $result = ' cancelled';1472 $result = ''; 1403 1473 break; 1404 1474 case 'FRD': //FRAUDE CONFIRMADA … … 1527 1597 } 1528 1598 1599 //ANTIFRAUD REFUNDS 1600 1601 private function antifraud_maybe_do_refund( $order, $reason ) { 1602 $status = get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-status', true ); 1603 $transaction_id = get_post_meta( $this->get_order_id( $order ), '_businesspay-antifraud-transaction-id', true ); 1604 $transaction_type = get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-type', true ); 1605 $transaction_card = $transaction_type == 'credit-card' || $transaction_type == 'debit-card'; 1606 1607 if ( $status == 9 && ! empty( $transaction_id ) && $transaction_card && $this->enable_antifraud ) { 1608 $this->antifraud_do_refund( $order, $reason ); 1609 } 1610 } 1611 1612 private function antifraud_do_refund( $order, $reason ) { 1613 $result = array( 'result' => 'failure', 'messages' => '' ); 1614 $retry_num = 0; 1615 while ( $retry_num < 3 ) { 1616 $retry_num ++; 1617 try { 1618 1619 $orders = array( $this->get_order_id( $order ) ); 1620 1621 $body = array( 1622 'message' => $reason, 1623 'orders' => $orders 1624 ); 1625 1626 $response = $this->antifraud_api_request( 'POST', 'chargeback', $body ); 1627 if ( ! $response->result == 'failure' ) { 1628 $this->antifraud_insert_order_metadata( $order, $response ); 1629 $response = $this->antifraud_insert_order_status( $order, $response ); 1630 $retry_num = 3; 1631 $result = $response; 1632 } 1633 } catch ( Exception $e ) { 1634 $this->logger( 'Antifraud Refund Error', $e->getMessage() ); 1635 } 1636 } 1637 1638 return $result; 1639 } 1640 1529 1641 1530 1642 //WEBHOOK CALLBACK … … 1533 1645 $contents = file_get_contents( "php://input" ); 1534 1646 $json = json_decode( $contents ); 1535 $this->logger( 'API Notification | Body', $json ); 1536 1537 if ( isset( $json->transactionId ) && isset( $json->referenceId ) ) { 1538 $this->gateway_maybe_consult_status( $json->referenceId, $json->transactionId ); 1539 } elseif ( isset( $json->code ) && isset( $json->date ) && isset( $json->type ) ) { 1540 $this->antifraud_maybe_consult_status( $json->code, $json->type ); 1541 } else { 1542 $this->logger( 'WebHook Callback Error', 'Fields not detected. Suspicious call.' ); 1543 } 1544 } 1545 1546 private function gateway_maybe_consult_status( $order_id, $transactionId ) { 1647 $this->logger( 'Webhook Callback | Body', $json ); 1648 1649 if ( ! is_wp_error( $json ) ) { 1650 header( 'HTTP/1.1 200 OK' ); 1651 1652 if ( isset( $json->transactionId ) && isset( $json->referenceId ) ) { 1653 $this->consult_status_gateway( $json->referenceId, $json->transactionId ); 1654 } elseif ( isset( $json->code ) && isset( $json->date ) && isset( $json->type ) ) { 1655 $this->consult_status_antifraud( $json->code, $json->type ); 1656 } else { 1657 $this->logger( 'WebHook Callback Error', 'Fields not detected. Suspicious call.' ); 1658 } 1659 } 1660 } 1661 1662 private function consult_status_gateway( $order_id, $transactionId ) { 1547 1663 $result = false; 1548 1664 try { … … 1551 1667 if ( $transactionId == $order->get_transaction_id() ) { 1552 1668 $body = array( 'transactionId' => $transactionId ); 1553 $response = $this->gateway_api_request( 'GET', '/transactions/' . $transactionId, $body ); 1669 $endpoint = 'transactions/' . $transactionId; 1670 $response = $this->gateway_api_request( 'GET', $endpoint, $body ); 1554 1671 if ( ! isset( $response->result ) ) { 1555 1672 $this->gateway_insert_order_metadata( $order, $response ); … … 1572 1689 } 1573 1690 1574 private function antifraud_maybe_consult_status( $order_id, $type ) {1691 private function consult_status_antifraud( $order_id, $type ) { 1575 1692 $result = false; 1576 1693 try { … … 1579 1696 if ( $type == 'status' ) { 1580 1697 $body = ''; 1581 $response = $this->antifraud_api_request( 'GET', '/orders/' . $order_id . '/status', $body ); 1698 $endpoint = 'orders/' . $order_id . '/status'; 1699 $response = $this->antifraud_api_request( 'GET', $endpoint, $body ); 1582 1700 if ( ! isset( $response->result ) ) { 1583 1701 $this->antifraud_insert_order_metadata( $order, $response ); … … 1590 1708 } catch ( Exception $e ) { 1591 1709 $this->logger( 'Antifraud API Consult Status Error', $e->getMessage() ); 1710 } 1711 1712 return $result; 1713 } 1714 1715 1716 //AUTH TRANSACTIONS 1717 1718 private function auth_transaction( $order ) { 1719 $result = false; 1720 try { 1721 $oid = $this->get_order_id( $order ); 1722 1723 // Connectivity 1724 $status = get_post_meta( $oid, '_businesspay-auth-connectivity', true ); 1725 if ( empty( $status ) || $status == 'no' ) { 1726 $transaction_status = get_post_meta( $oid, '_businesspay-transaction-status', true ); 1727 if ( $transaction_status == '5' || $transaction_status == '6' ) { 1728 $this->auth_transaction_connectivity( $order ); 1729 } 1730 } 1731 1732 // Antifraud 1733 if ( $this->enable_antifraud ) { 1734 $status = get_post_meta( $oid, '_businesspay-auth-antifraud', true ); 1735 if ( empty( $status ) || $status == 'no' ) { 1736 $transaction_status = get_post_meta( $oid, '_businesspay-antifraud-transaction-id', true ); 1737 if ( ! empty( $transaction_status ) ) { 1738 $this->auth_transaction_antifraud( $order ); 1739 } 1740 } 1741 } 1742 1743 $type = get_post_meta( $oid, '_businesspay-transaction-type', true ); 1744 if ( $type == 'billet' ) { 1745 $status = get_post_meta( $oid, '_businesspay-auth-billet', true ); 1746 if ( empty( $status ) || $status == 'no' ) { 1747 $transaction_status = get_post_meta( $oid, '_businesspay-transaction-status', true ); 1748 if ( $transaction_status == '5' || $transaction_status == '6' ) { 1749 $this->auth_transaction_billet( $order ); 1750 } 1751 } 1752 } elseif ( $type == 'credit-card' ) { 1753 $status = get_post_meta( $oid, '_businesspay-auth-credit', true ); 1754 if ( empty( $status ) || $status == 'no' ) { 1755 $transaction_status = get_post_meta( $oid, '_businesspay-transaction-status', true ); 1756 if ( $transaction_status == '5' || $transaction_status == '6' ) { 1757 $this->auth_transaction_credit( $order ); 1758 } 1759 } 1760 } elseif ( $type == 'debit-card' ) { 1761 $status = get_post_meta( $oid, '_businesspay-auth-debit', true ); 1762 if ( empty( $status ) || $status == 'no' ) { 1763 $transaction_status = get_post_meta( $oid, '_businesspay-transaction-status', true ); 1764 if ( $transaction_status == '5' || $transaction_status == '6' ) { 1765 $this->auth_transaction_debit( $order ); 1766 } 1767 } 1768 } elseif ( $type == 'bank-transfer' ) { 1769 $status = get_post_meta( $oid, '_businesspay-auth-transfer', true ); 1770 if ( empty( $status ) || $status == 'no' ) { 1771 $transaction_status = get_post_meta( $oid, '_businesspay-transaction-status', true ); 1772 if ( $transaction_status == '5' || $transaction_status == '6' ) { 1773 $this->auth_transaction_transfer( $order ); 1774 } 1775 } 1776 } 1777 1778 1779 } catch ( Exception $e ) { 1780 $this->logger( 'Auth Connectivity Error', $e->getMessage() ); 1781 } 1782 1783 return $result; 1784 } 1785 1786 private function auth_transaction_connectivity( $order ) { 1787 $result = false; 1788 try { 1789 $body = array( 1790 'clientId' => $this->get_auth_client_id(), 1791 'installId' => $this->get_auth_install_id(), 1792 'orderId' => $this->get_auth_order_id( $order ), 1793 'transactionId' => $this->get_auth_transaction_id( $order ), 1794 'transactionDate' => $this->get_auth_transaction_date( $order ), 1795 'transactionValue' => $this->get_auth_transaction_value( $order ), 1796 'transactionStatus' => $this->get_auth_transaction_status( $order ), 1797 'provider' => $this->get_auth_provider( $order ), 1798 'modeApi' => $this->get_auth_mode_api(), 1799 ); 1800 $response = $this->auth_api_request( 'POST', 'connectivity', $body ); 1801 if ( ! isset( $response->result ) ) { 1802 $response_body = json_decode( $response ); 1803 $status = ( ! is_wp_error( $response_body ) ) ? 'yes' : 'no'; 1804 update_post_meta( $this->get_order_id( $order ), '_businesspay-auth-connectivity', $status ); 1805 $result = true; 1806 } 1807 } catch ( Exception $e ) { 1808 $this->logger( 'Auth Connectivity Error', $e->getMessage() ); 1809 } 1810 1811 return $result; 1812 } 1813 1814 private function auth_transaction_antifraud( $order ) { 1815 $result = false; 1816 try { 1817 $body = array( 1818 'clientId' => $this->get_auth_client_id(), 1819 'installId' => $this->get_auth_install_id(), 1820 'orderId' => $this->get_auth_order_id( $order ), 1821 'transactionId' => $this->get_auth_transaction_id( $order ), 1822 'transactionDate' => $this->get_auth_transaction_date( $order ), 1823 'transactionValue' => $this->get_auth_transaction_value( $order ), 1824 'transactionStatus' => $this->get_auth_transaction_status( $order ), 1825 'provider' => 'CLEARSALE', 1826 'antifraudProductId' => $this->get_auth_antifraud_product_id(), 1827 'modeApi' => $this->get_auth_mode_api(), 1828 ); 1829 $response = $this->auth_api_request( 'POST', 'antifraud', $body ); 1830 if ( ! isset( $response->result ) ) { 1831 $response_body = json_decode( $response ); 1832 $status = ( ! is_wp_error( $response_body ) ) ? 'yes' : 'no'; 1833 update_post_meta( $this->get_order_id( $order ), '_businesspay-auth-antifraud', $status ); 1834 $result = true; 1835 } 1836 } catch ( Exception $e ) { 1837 $this->logger( 'Auth Antifraud Error', $e->getMessage() ); 1838 } 1839 1840 return $result; 1841 } 1842 1843 private function auth_transaction_billet( $order ) { 1844 $result = false; 1845 try { 1846 $body = array( 1847 'clientId' => $this->get_auth_client_id(), 1848 'installId' => $this->get_auth_install_id(), 1849 'orderId' => $this->get_auth_order_id( $order ), 1850 'transactionId' => $this->get_auth_transaction_id( $order ), 1851 'transactionDate' => $this->get_auth_transaction_date( $order ), 1852 'transactionValue' => $this->get_auth_transaction_value( $order ), 1853 'transactionStatus' => $this->get_auth_transaction_status( $order ), 1854 'provider' => $this->get_auth_provider( $order ), 1855 'modeApi' => $this->get_auth_mode_api(), 1856 ); 1857 $response = $this->auth_api_request( 'POST', 'billet', $body ); 1858 if ( ! isset( $response->result ) ) { 1859 $response_body = json_decode( $response ); 1860 $status = ( ! is_wp_error( $response_body ) ) ? 'yes' : 'no'; 1861 update_post_meta( $this->get_order_id( $order ), '_businesspay-auth-billet', $status ); 1862 $result = true; 1863 } 1864 } catch ( Exception $e ) { 1865 $this->logger( 'Auth Billet Error', $e->getMessage() ); 1866 } 1867 1868 return $result; 1869 } 1870 1871 private function auth_transaction_credit( $order ) { 1872 $result = false; 1873 try { 1874 $body = array( 1875 'clientId' => $this->get_auth_client_id(), 1876 'installId' => $this->get_auth_install_id(), 1877 'orderId' => $this->get_auth_order_id( $order ), 1878 'transactionId' => $this->get_auth_transaction_id( $order ), 1879 'transactionDate' => $this->get_auth_transaction_date( $order ), 1880 'transactionValue' => $this->get_auth_transaction_value( $order ), 1881 'transactionStatus' => $this->get_auth_transaction_status( $order ), 1882 'cardInstallments' => $this->get_auth_card_installments( $order ), 1883 'cardBrand' => $this->get_auth_card_brand( $order ), 1884 'provider' => $this->get_auth_provider( $order ), 1885 'modeApi' => $this->get_auth_mode_api(), 1886 ); 1887 $response = $this->auth_api_request( 'POST', 'credit', $body ); 1888 if ( ! isset( $response->result ) ) { 1889 $response_body = json_decode( $response ); 1890 $status = ( ! is_wp_error( $response_body ) ) ? 'yes' : 'no'; 1891 update_post_meta( $this->get_order_id( $order ), '_businesspay-auth-credit', $status ); 1892 $result = true; 1893 } 1894 } catch ( Exception $e ) { 1895 $this->logger( 'Auth Credit Error', $e->getMessage() ); 1896 } 1897 1898 return $result; 1899 } 1900 1901 private function auth_transaction_debit( $order ) { 1902 $result = false; 1903 try { 1904 $body = array( 1905 'clientId' => $this->get_auth_client_id(), 1906 'installId' => $this->get_auth_install_id(), 1907 'orderId' => $this->get_auth_order_id( $order ), 1908 'transactionId' => $this->get_auth_transaction_id( $order ), 1909 'transactionDate' => $this->get_auth_transaction_date( $order ), 1910 'transactionValue' => $this->get_auth_transaction_value( $order ), 1911 'transactionStatus' => $this->get_auth_transaction_status( $order ), 1912 'cardBrand' => $this->get_auth_card_brand( $order ), 1913 'provider' => $this->get_auth_provider( $order ), 1914 'modeApi' => $this->get_auth_mode_api(), 1915 ); 1916 $response = $this->auth_api_request( 'POST', 'debit', $body ); 1917 if ( ! isset( $response->result ) ) { 1918 $response_body = json_decode( $response ); 1919 $status = ( ! is_wp_error( $response_body ) ) ? 'yes' : 'no'; 1920 update_post_meta( $this->get_order_id( $order ), '_businesspay-auth-debit', $status ); 1921 $result = true; 1922 } 1923 } catch ( Exception $e ) { 1924 $this->logger( 'Auth Debit Error', $e->getMessage() ); 1925 } 1926 1927 return $result; 1928 } 1929 1930 private function auth_transaction_transfer( $order ) { 1931 $result = false; 1932 try { 1933 $body = array( 1934 'clientId' => $this->get_auth_client_id(), 1935 'installId' => $this->get_auth_install_id(), 1936 'orderId' => $this->get_auth_order_id( $order ), 1937 'transactionId' => $this->get_auth_transaction_id( $order ), 1938 'transactionDate' => $this->get_auth_transaction_date( $order ), 1939 'transactionValue' => $this->get_auth_transaction_value( $order ), 1940 'transactionStatus' => $this->get_auth_transaction_status( $order ), 1941 'provider' => $this->get_auth_provider( $order ), 1942 'modeApi' => $this->get_auth_mode_api(), 1943 ); 1944 $response = $this->auth_api_request( 'POST', 'debit', $body ); 1945 if ( ! isset( $response->result ) ) { 1946 $response_body = json_decode( $response ); 1947 $status = ( ! is_wp_error( $response_body ) ) ? 'yes' : 'no'; 1948 update_post_meta( $this->get_order_id( $order ), '_businesspay-auth-transfer', $status ); 1949 $result = true; 1950 } 1951 } catch ( Exception $e ) { 1952 $this->logger( 'Auth Debit Error', $e->getMessage() ); 1953 } 1954 1955 return $result; 1956 } 1957 1958 private function auth_api_request( $method, $endpoint, $body ) { 1959 $result = array( 'result' => 'failure', 'messages' => '' ); 1960 try { 1961 $payload = array( 1962 'method' => $method, 1963 'sslverify' => true, 1964 'timeout' => 60, 1965 'headers' => array( 1966 'Content-Type' => 'application/json', 1967 'authenticationApi' => $this->authentication_api, 1968 'authenticationKey' => $this->authentication_key 1969 ), 1970 'body' => json_encode( $body ) 1971 ); 1972 1973 $url = $this->auth_schema . '://' . $this->auth_gateway . '.' . $this->authority . '.com.br'; 1974 $url .= '/' . $this->auth_api . '/' . $this->auth_scope . '/' . $this->auth_version . '/' . $endpoint; 1975 1976 $this->logger( 'API Auth Request | URL', $url ); 1977 $this->logger( 'API Auth Request | BODY', $body ); 1978 $response = wp_safe_remote_post( $url, $payload ); 1979 1980 if ( ! is_wp_error( $response ) ) { 1981 $response_body = json_decode( wp_remote_retrieve_body( $response ) ); 1982 $this->logger( 'API Auth Response | JSON', $response_body ); 1983 if ( ! empty( $response_body ) ) { 1984 $result = $response_body; 1985 } else { 1986 wc_add_notice( esc_html__( 'The credentials for this virtual store are not valid on the BusinessPay server. Please try again.', 'woocommerce-businesspay' ), 'error' ); 1987 } 1988 } else { 1989 $this->logger( 'Auth API Request Error', 'is_wp_error' ); 1990 } 1991 } catch ( Exception $e ) { 1992 $this->logger( 'Auth API Request Error', $e->getMessage() ); 1592 1993 } 1593 1994 … … 1801 2202 1802 2203 return $payment_amount; 2204 } 2205 2206 private function get_gateway_payment_captured( $response ) { 2207 $captured = false; 2208 $status = $response->status; 2209 if ( isset( $response->payment->card ) ) { 2210 $captured = $response->payment->card->capture; 2211 } elseif ( isset( $response->payment->bankSlip ) ) { 2212 $captured = ( $response->payment->bankSlip->paymentAmount >= $response->amount ); 2213 } elseif ( $response->payment->electronicTransfer ) { 2214 $captured = ( $status == '5' || $status == '6' ) ? true : false; 2215 } 2216 2217 return $captured; 1803 2218 } 1804 2219 … … 2356 2771 2357 2772 2773 // AUTH GETTERS 2774 2775 private function get_auth_client_id() { 2776 return $this->auth_client_id; 2777 } 2778 2779 private function get_auth_install_id() { 2780 return $this->auth_install_id; 2781 } 2782 2783 private function get_auth_order_id( $order ) { 2784 return $this->get_order_id( $order ); 2785 } 2786 2787 private function get_auth_transaction_id( $order ) { 2788 return get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-id', true ); 2789 } 2790 2791 private function get_auth_transaction_date( $order ) { 2792 return str_replace( 'T', ' ', get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-date', true ) ); 2793 } 2794 2795 private function get_auth_transaction_value( $order ) { 2796 return $order->order_total; 2797 } 2798 2799 private function get_auth_transaction_status( $order ) { 2800 return get_post_meta( $this->get_order_id( $order ), '_businesspay-transaction-status', true ); 2801 } 2802 2803 private function get_auth_provider( $order ) { 2804 $result = ''; 2805 $oid = $this->get_order_id( $order ); 2806 $type = get_post_meta( $oid, '_businesspay-transaction-type', true ); 2807 2808 if ( $type == 'credit-card' || $type == 'debit-card' ) { 2809 $result = strtoupper( get_post_meta( $oid, '_businesspay-card-provider', true ) ); 2810 } else if ( $type == 'billet' ) { 2811 $result = 'BILLET'; 2812 } elseif ( $type == 'bank-transfer' ) { 2813 $result = 'TRANSFER'; 2814 } 2815 2816 return $result; 2817 } 2818 2819 private function get_auth_mode_api() { 2820 return ( $this->sandbox == 'yes' ) ? 'demo' : 'live'; 2821 } 2822 2823 private function get_auth_antifraud_product_id() { 2824 return $this->antifraud_product_id; 2825 } 2826 2827 private function get_auth_card_installments( $order ) { 2828 return get_post_meta( $this->get_order_id( $order ), '_businesspay-card-installments', true ); 2829 } 2830 2831 private function get_auth_card_brand( $order ) { 2832 return get_post_meta( $this->get_order_id( $order ), '_businesspay-card-brand', true ); 2833 } 2834 2835 2358 2836 //SETTERS 2359 2837 … … 2368 2846 } 2369 2847 2370 private function set_option_auth_id( $value ) { 2371 update_option( 'businesspay_auth_id', $value ); 2372 $this->auth_id = $value; 2848 private function set_option_auth_client_id( $value ) { 2849 update_option( 'businesspay_auth_client_id', $value ); 2850 $this->auth_client_id = $value; 2851 } 2852 2853 private function set_option_auth_install_id( $value ) { 2854 update_option( 'businesspay_auth_install_id', $value ); 2855 $this->auth_install_id = $value; 2373 2856 } 2374 2857 … … 2436 2919 $expiration = new DateTime( str_replace( 'T', ' ', $value ) ); 2437 2920 $expiration->modify( '-1 minutes' ); 2921 2438 2922 update_option( 'businesspay_antifraud_auth_expiration', $expiration->format( $this->get_date_format() ) ); 2439 2923 $this->antifraud_auth_expiration = $expiration; 2440 }2441 2442 private function set_summary_info( $order ) {2443 $result = false;2444 try {2445 $action = $this->auth_schema . '://' . $this->auth_gateway . '.' . $this->authority . '.com.br';2446 $action .= '/' . $this->auth_api . '/' . $this->auth_scope . '/' . $this->auth_version . '/' . $this->auth_summary;2447 2448 $oid = $this->get_order_id( $order );2449 2450 $body = array(2451 'orderId' => $oid,2452 'transactionId' => get_post_meta( $oid, '_businesspay-transaction-id', true ),2453 'transactionDate' => str_replace( 'T', ' ', get_post_meta( $oid, '_businesspay-transaction-date', true ) ),2454 'transactionStatus' => get_post_meta( $oid, '_businesspay-transaction-status', true ),2455 'transactionValue' => $order->order_total,2456 'transactionType' => get_post_meta( $oid, '_businesspay-transaction-type', true ),2457 'cardBrand' => get_post_meta( $oid, '_businesspay-card-brand', true ),2458 'cardInstallments' => get_post_meta( $oid, '_businesspay-card-installments', true ),2459 'providerCard' => get_post_meta( $oid, '_businesspay-card-provider', true ),2460 'providerTransfer' => get_post_meta( $oid, '_businesspay-electronic-transfer-provider', true ),2461 'providerBillet' => get_post_meta( $oid, '_businesspay-bankslip-provider', true ),2462 'vendorId' => $this->auth_vendor_id,2463 'name' => substr( $this->get_blog_name(), 0, 50 ),2464 'domain' => $this->get_blog_domain(),2465 'modeApi' => ( $this->sandbox == 'yes' ) ? 'demo' : 'live',2466 'usingAntifraud' => ( $this->enable_antifraud ) ? '1' : '0',2467 'versionApi' => ( $this->sandbox == 'yes' ) ? $this->gateway_demo_version : $this->gateway_live_version,2468 'versionWp' => get_bloginfo( 'version' ),2469 'versionPlugin' => WC_BusinessPay::VERSION,2470 'versionPhp' => WC_BusinessPay::get_php_version(),2471 'versionWoo' => WC_BusinessPay::get_woo_version()2472 );2473 2474 $payload = array(2475 'method' => 'POST',2476 'sslverify' => true,2477 'timeout' => 60,2478 'headers' => array(2479 'Content-Type' => 'application/json',2480 'authenticationApi' => $this->authentication_api,2481 'authenticationKey' => $this->authentication_key2482 ),2483 'body' => json_encode( $body )2484 );2485 2486 $response = wp_safe_remote_post( $action, $payload );2487 2488 if ( ! is_wp_error( $response ) ) {2489 $response_body = wp_remote_retrieve_body( $response );2490 $response_body = $this->clear_response( $response_body );2491 2492 if ( ! empty( $response_body ) ) {2493 $response = json_decode( $response_body );2494 2495 $this->logger( 'Summary | Response', $response );2496 $result = true;2497 }2498 }2499 2500 } catch ( Exception $e ) {2501 $this->logger( 'Set Summary Info Error', $e->getMessage() );2502 }2503 2504 return $result;2505 2924 } 2506 2925 … … 2622 3041 2623 3042 if ( $session ) { 2624 $this->get_session_ info();3043 $this->get_session_renew(); 2625 3044 } 2626 3045 … … 2631 3050 } 2632 3051 2633 private function get_session_ info() {3052 private function get_session_renew() { 2634 3053 try { 2635 3054 if ( ! empty( $this->authentication_api ) && ! empty( $this->authentication_key ) ) { 2636 3055 $action = $this->auth_schema . '://' . $this->auth_gateway . '.' . $this->authority . '.com.br'; 2637 $action .= '/' . $this->auth_api . '/' . $this->auth_scope . '/' . $this->auth_version . '/ ' . $this->auth_validate;3056 $action .= '/' . $this->auth_api . '/' . $this->auth_scope . '/' . $this->auth_version . '/newsession'; 2638 3057 2639 3058 $body = array( … … 2666 3085 ); 2667 3086 2668 $this->logger( ' Session Info| Request', $payload );3087 $this->logger( 'New Session | Request', $payload ); 2669 3088 2670 3089 $response = wp_safe_remote_post( $action, $payload ); 2671 3090 2672 $this->logger( ' Session Info| Response', $response );3091 $this->logger( 'New Session | Response', $response ); 2673 3092 2674 3093 if ( ! is_wp_error( $response ) ) { … … 2684 3103 $this->set_option_auth_last( $today ); 2685 3104 $this->set_option_auth_next( $next ); 2686 $this->set_option_auth_id( $response->id ); 3105 $this->set_option_auth_client_id( $response->client_id ); 3106 $this->set_option_auth_install_id( $response->install_id ); 2687 3107 $this->set_option_auth_interval( $response->auth_interval ); 2688 3108 $this->set_option_enable_client( $response->client_enabled ); … … 2701 3121 } 2702 3122 } catch ( Exception $e ) { 2703 $this->logger( ' Get Session InfoError', $e->getMessage() );3123 $this->logger( 'New Session Error', $e->getMessage() ); 2704 3124 } 2705 3125 } … … 2847 3267 private function update_order_status( $order, $status, $note ) { 2848 3268 if ( $order->get_status() == $status ) { 2849 $order->add_order_note($note );3269 wc_create_order_note( $this->get_order_id( $order ), $note ); 2850 3270 } else { 2851 3271 $order->update_status( $status, $note ); … … 2938 3358 } 2939 3359 2940 private function logger( $scope, $m sg) {3360 private function logger( $scope, $message ) { 2941 3361 if ( $this->debug == 'yes' ) { 2942 3362 global $woocommerce; … … 2948 3368 } 2949 3369 } 2950 $this->logger->add( 'BusinessPay', $scope . ': ' . print_r( $m sg, true ) );3370 $this->logger->add( 'BusinessPay', $scope . ': ' . print_r( $message, true ) ); 2951 3371 } 2952 3372 } -
woo-businesspay/trunk/languages/woocommerce-businesspay-pt_BR.po
r1977545 r1982294 3 3 "Project-Id-Version: WooCommerce BusinessPay\n" 4 4 "Report-Msgid-Bugs-To: \n" 5 "POT-Creation-Date: 2018-11-2 0 16:10+0000\n"6 "PO-Revision-Date: 2018-11-2 0 16:11+0000\n"5 "POT-Creation-Date: 2018-11-29 00:19+0000\n" 6 "PO-Revision-Date: 2018-11-29 00:21+0000\n" 7 7 "Last-Translator: webmaster <webmaster@hypelab.com.br>\n" 8 8 "Language-Team: Português do Brasil\n" … … 33 33 34 34 #: templates/businesspay-panel-gateway.php:25 35 #: includes/woocommerce-businesspay-gateway.php:3 2935 #: includes/woocommerce-businesspay-gateway.php:340 36 36 msgid "Debit Card" 37 37 msgstr "Cartão de débito" … … 43 43 44 44 #: templates/businesspay-panel-gateway.php:30 45 #: includes/woocommerce-businesspay-gateway.php:2 4045 #: includes/woocommerce-businesspay-gateway.php:251 46 46 msgid "Credit Card" 47 47 msgstr "Cartão de crédito" … … 50 50 msgid "Unknown Brand" 51 51 msgstr "Bandeira desconhecida" 52 53 #: templates/businesspay-panel-gateway.php:3854 #: templates/frontend-template.php:9555 msgid "In "56 msgstr "Em "57 52 58 53 #: templates/businesspay-panel-gateway.php:38 … … 60 55 msgid "x of " 61 56 msgstr "x de " 62 63 #: templates/businesspay-panel-gateway.php:3864 #: templates/frontend-template.php:9565 msgid " on credit card"66 msgstr " no cartão de crédito"67 57 68 58 #: templates/businesspay-panel-gateway.php:42 … … 79 69 #: templates/businesspay-panel-gateway.php:64 80 70 #: templates/frontend-template.php:26 81 #: includes/woocommerce-businesspay-gateway.php:3 4571 #: includes/woocommerce-businesspay-gateway.php:356 82 72 msgid "Billet" 83 73 msgstr "Boleto" … … 92 82 93 83 #: templates/businesspay-panel-gateway.php:103 94 msgid "Token: " 95 msgstr "Token:" 84 #: templates/businesspay-panel-antifraud.php:37 85 msgid "ID: " 86 msgstr "ID: " 96 87 97 88 #: templates/businesspay-panel-gateway.php:105 98 #: templates/businesspay-panel-antifraud.php:3 689 #: templates/businesspay-panel-antifraud.php:39 99 90 msgid "Date: " 100 91 msgstr "Data: " 101 92 102 93 #: templates/businesspay-panel-gateway.php:107 103 #: templates/businesspay-panel-antifraud.php: 3894 #: templates/businesspay-panel-antifraud.php:41 104 95 msgid "Status: " 105 96 msgstr "Status: " … … 202 193 msgstr "depende de um certificado SSL ativo para funcionar!" 203 194 204 #: templates/businesspay-panel-antifraud.php:33 195 #: templates/businesspay-panel-antifraud.php:25 196 msgid "Not applicable." 197 msgstr "Não aplicável." 198 199 #: templates/businesspay-panel-antifraud.php:36 205 200 msgid "Analysis Information" 206 201 msgstr "Dados da Análise" 207 202 208 #: templates/businesspay-panel-antifraud.php:34 209 msgid "ID: " 210 msgstr "ID: " 211 212 #: templates/businesspay-panel-antifraud.php:40 203 #: templates/businesspay-panel-antifraud.php:43 213 204 msgid "Score: " 214 205 msgstr "Score: " 215 206 216 #: templates/businesspay-panel-antifraud.php:4 2207 #: templates/businesspay-panel-antifraud.php:45 217 208 msgid "Message: " 218 209 msgstr "Mensagem: " … … 223 214 224 215 #: templates/frontend-template.php:21 225 #: includes/woocommerce-businesspay-gateway.php:3 37216 #: includes/woocommerce-businesspay-gateway.php:348 226 217 msgid "Bank Transfer" 227 218 msgstr "Transferência" … … 259 250 msgstr "Selecione" 260 251 252 #: templates/frontend-template.php:95 253 msgid "In " 254 msgstr "Em " 255 256 #: templates/frontend-template.php:95 257 msgid " on credit card" 258 msgstr " no cartão de crédito" 259 261 260 #: templates/frontend-template.php:104 262 261 msgid "Card holder document number" … … 317 316 msgstr "Receba pagamentos usando o BusinessPay." 318 317 319 #: includes/woocommerce-businesspay-gateway.php:1 62318 #: includes/woocommerce-businesspay-gateway.php:173 320 319 msgid "Account Enabled" 321 320 msgstr "Conta habilitada." 322 321 323 #: includes/woocommerce-businesspay-gateway.php:1 62322 #: includes/woocommerce-businesspay-gateway.php:173 324 323 msgid "Account Disabled" 325 324 msgstr "Conta inativa ou inexistente." 326 325 327 #: includes/woocommerce-businesspay-gateway.php:1 63326 #: includes/woocommerce-businesspay-gateway.php:174 328 327 msgid "Installation Enabled" 329 328 msgstr "Instalação habilitada." 330 329 331 #: includes/woocommerce-businesspay-gateway.php:1 63330 #: includes/woocommerce-businesspay-gateway.php:174 332 331 msgid "Installation Disabled" 333 332 msgstr "Instalação não registrada." 334 333 335 #: includes/woocommerce-businesspay-gateway.php:1 64334 #: includes/woocommerce-businesspay-gateway.php:175 336 335 msgid "Antifraud Enabled" 337 336 msgstr "Antifraude habilitado." 338 337 339 #: includes/woocommerce-businesspay-gateway.php:1 64338 #: includes/woocommerce-businesspay-gateway.php:175 340 339 msgid "Antifraud Disabled" 341 340 msgstr "Antifraude desabilitado." 342 341 343 #: includes/woocommerce-businesspay-gateway.php:1 65342 #: includes/woocommerce-businesspay-gateway.php:176 344 343 msgid "Product not configured" 345 344 msgstr "Produto não configurado" 346 345 347 #: includes/woocommerce-businesspay-gateway.php:1 67346 #: includes/woocommerce-businesspay-gateway.php:178 348 347 msgid "Client Account:" 349 348 msgstr "Conta do cliente:" 350 349 351 #: includes/woocommerce-businesspay-gateway.php:1 68350 #: includes/woocommerce-businesspay-gateway.php:179 352 351 msgid "Client Installation:" 353 352 msgstr "Instalação do cliente:" 354 353 355 #: includes/woocommerce-businesspay-gateway.php:1 69354 #: includes/woocommerce-businesspay-gateway.php:180 356 355 msgid "Client Antifraud:" 357 356 msgstr "Antifraude do cliente:" 358 357 359 #: includes/woocommerce-businesspay-gateway.php:1 70358 #: includes/woocommerce-businesspay-gateway.php:181 360 359 msgid "Antifraud Product:" 361 360 msgstr "Produto Antifraude: " 362 361 363 #: includes/woocommerce-businesspay-gateway.php:1 83362 #: includes/woocommerce-businesspay-gateway.php:194 364 363 msgid "Antifraud by " 365 364 msgstr "Antifraude por " 366 365 367 #: includes/woocommerce-businesspay-gateway.php: 192366 #: includes/woocommerce-businesspay-gateway.php:203 368 367 msgid "BusinessPay Payment Gateway" 369 368 msgstr "BusinessPay" 370 369 371 #: includes/woocommerce-businesspay-gateway.php: 197370 #: includes/woocommerce-businesspay-gateway.php:208 372 371 msgid "Enable BusinessPay" 373 372 msgstr "Habilita checkout BusinessPay" 374 373 375 #: includes/woocommerce-businesspay-gateway.php: 198374 #: includes/woocommerce-businesspay-gateway.php:209 376 375 msgid "Enable BusinessPay Gateway Plugin" 377 376 msgstr "Habilita plugin de pagamentos BusinessPay" 378 377 379 #: includes/woocommerce-businesspay-gateway.php: 199378 #: includes/woocommerce-businesspay-gateway.php:210 380 379 msgid "Enable BusinessPay gateway plugin options." 381 380 msgstr "Habilita opções do plugin de pagamentos BusinessPay" 382 381 383 #: includes/woocommerce-businesspay-gateway.php:2 05382 #: includes/woocommerce-businesspay-gateway.php:216 384 383 msgid "Title" 385 384 msgstr "Título" 386 385 387 #: includes/woocommerce-businesspay-gateway.php:2 06386 #: includes/woocommerce-businesspay-gateway.php:217 388 387 msgid "Payment method title seen on the checkout page." 389 388 msgstr "Título do método de pagamento visto na página de checkout." 390 389 391 #: includes/woocommerce-businesspay-gateway.php:2 07390 #: includes/woocommerce-businesspay-gateway.php:218 392 391 msgid "BusinessPay | Payments via credit card, debit and billet." 393 392 msgstr "BusinessPay | Pagamentos via cartão de crédito, débito e boleto." 394 393 395 #: includes/woocommerce-businesspay-gateway.php:2 12394 #: includes/woocommerce-businesspay-gateway.php:223 396 395 msgid "Description" 397 396 msgstr "Descrição" 398 397 399 #: includes/woocommerce-businesspay-gateway.php:2 13398 #: includes/woocommerce-businesspay-gateway.php:224 400 399 msgid "Payment method description seen on the checkout page." 401 400 msgstr "Descrição do método de pagamento visto na página de checkout." 402 401 403 #: includes/woocommerce-businesspay-gateway.php:2 14402 #: includes/woocommerce-businesspay-gateway.php:225 404 403 msgid "Pay using BusinessPay, a secure experience of online buys." 405 404 msgstr "Pague usando BusinessPay, uma experiência segura de compras online." 406 405 407 #: includes/woocommerce-businesspay-gateway.php:2 19406 #: includes/woocommerce-businesspay-gateway.php:230 408 407 msgid "Gateway Settings" 409 408 msgstr "Configurações do gateway" 410 409 411 #: includes/woocommerce-businesspay-gateway.php:2 24410 #: includes/woocommerce-businesspay-gateway.php:235 412 411 msgid "Authentication API" 413 412 msgstr "Usuário da API" 414 413 415 #: includes/woocommerce-businesspay-gateway.php:2 25414 #: includes/woocommerce-businesspay-gateway.php:236 416 415 msgid "Use your BusinessPay Authentication API" 417 416 msgstr "Insira seu usuário da API BusinessPay" 418 417 419 #: includes/woocommerce-businesspay-gateway.php:2 32418 #: includes/woocommerce-businesspay-gateway.php:243 420 419 msgid "Authentication Key" 421 420 msgstr "Chave da API" 422 421 423 #: includes/woocommerce-businesspay-gateway.php:2 33422 #: includes/woocommerce-businesspay-gateway.php:244 424 423 msgid "Use your BusinessPay Authentication Key" 425 424 msgstr "Insira sua chave da API BusinessPay" 426 425 427 #: includes/woocommerce-businesspay-gateway.php:2 41426 #: includes/woocommerce-businesspay-gateway.php:252 428 427 msgid "Enable credit card payments with BusinessPay" 429 428 msgstr "Habilita pagamentos com cartão de crédito" 430 429 431 #: includes/woocommerce-businesspay-gateway.php:2 42430 #: includes/woocommerce-businesspay-gateway.php:253 432 431 msgid "Enable credit card payment with BusinessPay on checkout page" 433 432 msgstr "Habilita cartão de crédito com BusinessPay na página de checkout" 434 433 435 #: includes/woocommerce-businesspay-gateway.php:2 47434 #: includes/woocommerce-businesspay-gateway.php:258 436 435 msgid "Credit Card Settings" 437 436 msgstr "Configurações de cartão de crédito" 438 437 439 #: includes/woocommerce-businesspay-gateway.php:2 53438 #: includes/woocommerce-businesspay-gateway.php:264 440 439 msgid "Name in Invoice" 441 440 msgstr "Nome na fatura" 442 441 443 #: includes/woocommerce-businesspay-gateway.php:2 54442 #: includes/woocommerce-businesspay-gateway.php:265 444 443 msgid "" 445 444 "Name in Invoice to identify Shop. Its important to avoid gateway chargebacks." … … 448 447 "chargebacks no Gateway." 449 448 450 #: includes/woocommerce-businesspay-gateway.php:2 61449 #: includes/woocommerce-businesspay-gateway.php:272 451 450 msgid "Invoice Prefix" 452 451 msgstr "Prefixo da fatura" 453 452 454 #: includes/woocommerce-businesspay-gateway.php:2 62453 #: includes/woocommerce-businesspay-gateway.php:273 455 454 msgid "Shop prefix to identify invoice shop origin" 456 455 msgstr "Prefixo da loja para identificar a loja de origem do pedido" 457 456 458 #: includes/woocommerce-businesspay-gateway.php:2 68457 #: includes/woocommerce-businesspay-gateway.php:279 459 458 msgid "Installments" 460 459 msgstr "Parcelamento" 461 460 462 #: includes/woocommerce-businesspay-gateway.php:2 70461 #: includes/woocommerce-businesspay-gateway.php:281 463 462 msgid "Enable Installments" 464 463 msgstr "Habilita parcelamento com cartão de crédito" 465 464 466 #: includes/woocommerce-businesspay-gateway.php:2 74465 #: includes/woocommerce-businesspay-gateway.php:285 467 466 msgid "Installments Settings" 468 467 msgstr "Configurações de parcelamento" 469 468 470 #: includes/woocommerce-businesspay-gateway.php:2 79469 #: includes/woocommerce-businesspay-gateway.php:290 471 470 msgid "Minimum Installment" 472 471 msgstr "Parcelamento mínimo" 473 472 474 #: includes/woocommerce-businesspay-gateway.php:2 81473 #: includes/woocommerce-businesspay-gateway.php:292 475 474 msgid "Indicate the minimum installments." 476 475 msgstr "Indica o mínimo de parcelas." 477 476 478 #: includes/woocommerce-businesspay-gateway.php:3 00477 #: includes/woocommerce-businesspay-gateway.php:311 479 478 msgid "Maximum Installment" 480 479 msgstr "Parcelamento máximo" 481 480 482 #: includes/woocommerce-businesspay-gateway.php:3 02481 #: includes/woocommerce-businesspay-gateway.php:313 483 482 msgid "Indicate the Maximum installments." 484 483 msgstr "Indica o máximo de parcelas." 485 484 486 #: includes/woocommerce-businesspay-gateway.php:3 21485 #: includes/woocommerce-businesspay-gateway.php:332 487 486 msgid "Minimum Value" 488 487 msgstr "Valor mínimo" 489 488 490 #: includes/woocommerce-businesspay-gateway.php:3 22489 #: includes/woocommerce-businesspay-gateway.php:333 491 490 msgid "Minimum value by installment" 492 491 msgstr "Valor mínimo por parcela" 493 492 494 #: includes/woocommerce-businesspay-gateway.php:3 30493 #: includes/woocommerce-businesspay-gateway.php:341 495 494 msgid "Enable debit card payments with BusinessPay" 496 495 msgstr "Habilita pagamentos por cartão de débito" 497 496 498 #: includes/woocommerce-businesspay-gateway.php:3 31497 #: includes/woocommerce-businesspay-gateway.php:342 499 498 msgid "Enable debit card payment on checkout page" 500 499 msgstr "Habilita cartão de débito na página de checkout" 501 500 502 #: includes/woocommerce-businesspay-gateway.php:3 38501 #: includes/woocommerce-businesspay-gateway.php:349 503 502 msgid "Enable bank transfer payments with BusinessPay" 504 503 msgstr "Habilita pagamentos por transferência bancária" 505 504 506 #: includes/woocommerce-businesspay-gateway.php:3 39505 #: includes/woocommerce-businesspay-gateway.php:350 507 506 msgid "Enable bank transfer payment on checkout page" 508 507 msgstr "Habilita pagamentos por transferência bancária na página de checkout" 509 508 510 #: includes/woocommerce-businesspay-gateway.php:3 46509 #: includes/woocommerce-businesspay-gateway.php:357 511 510 msgid "Enable billet payments with BusinessPay" 512 511 msgstr "Habilita pagamentos por boleto bancário" 513 512 514 #: includes/woocommerce-businesspay-gateway.php:3 47513 #: includes/woocommerce-businesspay-gateway.php:358 515 514 msgid "Enable billet payment on checkout page" 516 515 msgstr "Habilita pagamento por boleto na página de checkout" 517 516 518 #: includes/woocommerce-businesspay-gateway.php:3 52517 #: includes/woocommerce-businesspay-gateway.php:363 519 518 msgid "Billet Settings" 520 519 msgstr "Configurações de boleto" 521 520 522 #: includes/woocommerce-businesspay-gateway.php:358 523 msgid "Custom Logo URL" 524 msgstr "URL do logotipo customizado" 525 526 #: includes/woocommerce-businesspay-gateway.php:359 527 msgid "URL logo image to be shown on the billet" 528 msgstr "URL da imagem do logotipo a ser exibido no boleto" 529 530 #: includes/woocommerce-businesspay-gateway.php:364 521 #: includes/woocommerce-businesspay-gateway.php:368 531 522 msgid "Number of Days" 532 523 msgstr "Dias para vencimento" 533 524 534 #: includes/woocommerce-businesspay-gateway.php:3 66525 #: includes/woocommerce-businesspay-gateway.php:370 535 526 msgid "Days of expiry of the billet after printed." 536 527 msgstr "Dias para expiração do boleto após impresso." 537 528 538 #: includes/woocommerce-businesspay-gateway.php:37 3529 #: includes/woocommerce-businesspay-gateway.php:377 539 530 msgid "Instruction Line" 540 531 msgstr "Linha de instrução" 541 532 542 #: includes/woocommerce-businesspay-gateway.php:37 4533 #: includes/woocommerce-businesspay-gateway.php:378 543 534 msgid "Billet instruction line" 544 535 msgstr "Linha de instrução do boleto" 545 536 546 #: includes/woocommerce-businesspay-gateway.php:3 79537 #: includes/woocommerce-businesspay-gateway.php:383 547 538 msgid "Tools" 548 539 msgstr "Ferramentas" 549 540 550 #: includes/woocommerce-businesspay-gateway.php:38 5541 #: includes/woocommerce-businesspay-gateway.php:389 551 542 msgid "BusinessPay Sandbox" 552 543 msgstr "Ambiente de testes" 553 544 554 #: includes/woocommerce-businesspay-gateway.php:3 86545 #: includes/woocommerce-businesspay-gateway.php:390 555 546 msgid "Enable BusinessPay sandbox mode" 556 547 msgstr "Habilita ambiente de testes do BusinessPay" 557 548 558 #: includes/woocommerce-businesspay-gateway.php:3 87549 #: includes/woocommerce-businesspay-gateway.php:391 559 550 msgid "Enable BusinessPay Sandbox" 560 551 msgstr "Habilita sandbox do BusinessPay" 561 552 562 #: includes/woocommerce-businesspay-gateway.php:39 4553 #: includes/woocommerce-businesspay-gateway.php:398 563 554 msgid "Debug" 564 555 msgstr "Log de erros" 565 556 566 #: includes/woocommerce-businesspay-gateway.php:39 5557 #: includes/woocommerce-businesspay-gateway.php:399 567 558 msgid "Enable logging" 568 559 msgstr "Habilitar log de erros do WooCommerce" 569 560 570 #: includes/woocommerce-businesspay-gateway.php:40 1561 #: includes/woocommerce-businesspay-gateway.php:405 571 562 msgid "Status" 572 563 msgstr "Status" 573 564 574 #: includes/woocommerce-businesspay-gateway.php:42 3565 #: includes/woocommerce-businesspay-gateway.php:427 575 566 msgid "Card number must be at least 16 characters." 576 567 msgstr "O campo Número do cartão deve conter pelo menos 15 caracteres." 577 568 578 #: includes/woocommerce-businesspay-gateway.php:4 26569 #: includes/woocommerce-businesspay-gateway.php:430 579 570 msgid "The Card Number field must be numeric." 580 571 msgstr "O campo Número do cartão deve ser numérico." 581 572 582 #: includes/woocommerce-businesspay-gateway.php:4 29573 #: includes/woocommerce-businesspay-gateway.php:433 583 574 msgid "Invalid card number." 584 575 msgstr "Número de cartão inválido." 585 576 586 #: includes/woocommerce-businesspay-gateway.php:4 36577 #: includes/woocommerce-businesspay-gateway.php:440 587 578 msgid "The Name field can not be less than 6 characters." 588 579 msgstr "O campo Nome não pode conter menos que 6 caracteres." 589 580 590 #: includes/woocommerce-businesspay-gateway.php:4 39581 #: includes/woocommerce-businesspay-gateway.php:443 591 582 msgid "The Name field can not be greater than 25 characters." 592 583 msgstr "O campo Nome não pode conter mais que 25 caracteres." 593 584 594 #: includes/woocommerce-businesspay-gateway.php:44 2585 #: includes/woocommerce-businesspay-gateway.php:446 595 586 msgid "The Name field can not have numbers." 596 587 msgstr "O campo Nome não pode conter números." 597 588 598 #: includes/woocommerce-businesspay-gateway.php:45 2589 #: includes/woocommerce-businesspay-gateway.php:456 599 590 msgid "The Month of Expiration field must have 2 digits." 600 591 msgstr "O valor do mês de expiração deve conter 2 dígitos." 601 592 602 #: includes/woocommerce-businesspay-gateway.php:45 5593 #: includes/woocommerce-businesspay-gateway.php:459 603 594 msgid "The Month of Expiration field must be numeric." 604 595 msgstr "O valor do mês de expiração deve ser numérico." 605 596 606 #: includes/woocommerce-businesspay-gateway.php:4 58597 #: includes/woocommerce-businesspay-gateway.php:462 607 598 msgid "The Year of Expiration field must be numeric." 608 599 msgstr "O valor do ano de expiração deve ser numérico." 609 600 610 #: includes/woocommerce-businesspay-gateway.php:46 1601 #: includes/woocommerce-businesspay-gateway.php:465 611 602 msgid "The Year of Expiration field must have 4 digits." 612 603 msgstr "O valor do ano de expiração deve conter 4 dígitos." 613 604 614 #: includes/woocommerce-businesspay-gateway.php:4 68615 #: includes/woocommerce-businesspay-gateway.php:47 4605 #: includes/woocommerce-businesspay-gateway.php:472 606 #: includes/woocommerce-businesspay-gateway.php:478 616 607 msgid "The CVC field must have 3 or 4 digits." 617 608 msgstr "O campo CVC deve conter 3 ou 4 dígitos." 618 609 619 #: includes/woocommerce-businesspay-gateway.php:47 1610 #: includes/woocommerce-businesspay-gateway.php:475 620 611 msgid "The CVC field must be numeric." 621 612 msgstr "O campo CVC deve ser numérico." 622 613 623 #: includes/woocommerce-businesspay-gateway.php:48 1614 #: includes/woocommerce-businesspay-gateway.php:485 624 615 msgid "Please select a installment option." 625 616 msgstr "Por favor selecione uma opção de parcelamento." 626 617 627 #: includes/woocommerce-businesspay-gateway.php:49 2618 #: includes/woocommerce-businesspay-gateway.php:496 628 619 msgid "The Document field must have 11 digits for CPF or 14 digits for CNPJ." 629 620 msgstr "" … … 631 622 "dígitos para CNPJ." 632 623 633 #: includes/woocommerce-businesspay-gateway.php:49 5624 #: includes/woocommerce-businesspay-gateway.php:499 634 625 msgid "The Document field must be numeric." 635 626 msgstr "O campo CPF ou CNPJ do portador deve ser numérico." 636 627 637 #: includes/woocommerce-businesspay-gateway.php: 498628 #: includes/woocommerce-businesspay-gateway.php:502 638 629 msgid "The Document field as CPF is invalid." 639 630 msgstr "O valor do campo CPF ou CNPJ do portador como CPF é inválido." 640 631 641 #: includes/woocommerce-businesspay-gateway.php:50 1632 #: includes/woocommerce-businesspay-gateway.php:505 642 633 msgid "The Document field as CNPJ is invalid." 643 634 msgstr "O valor do campo CPF ou CNPJ do portador como CNPJ é inválido." 644 635 645 #: includes/woocommerce-businesspay-gateway.php:5 09636 #: includes/woocommerce-businesspay-gateway.php:513 646 637 msgid "Please select a origin transfer bank option." 647 638 msgstr "Por favor selecione o banco de origem da transferência." 648 639 649 #: includes/woocommerce-businesspay-gateway.php:51 5650 #: includes/woocommerce-businesspay-gateway.php:5 28640 #: includes/woocommerce-businesspay-gateway.php:519 641 #: includes/woocommerce-businesspay-gateway.php:532 651 642 msgid "The Neighborhood field need to be filled." 652 643 msgstr "O campo Bairro é obrigatório." 653 644 654 #: includes/woocommerce-businesspay-gateway.php:52 2645 #: includes/woocommerce-businesspay-gateway.php:526 655 646 msgid "Please select a origin billet bank option." 656 647 msgstr "Por favor selecione o banco emissor do boleto." 657 648 658 #: includes/woocommerce-businesspay-gateway.php:5 46649 #: includes/woocommerce-businesspay-gateway.php:550 659 650 msgid "BusinessPay | Debit Card" 660 651 msgstr "BusinessPay | Cartão de débito" 661 652 662 #: includes/woocommerce-businesspay-gateway.php:5 48653 #: includes/woocommerce-businesspay-gateway.php:552 663 654 msgid "BusinessPay | Credit Card" 664 655 msgstr "BusinessPay | Cartão de crédito" 665 656 666 #: includes/woocommerce-businesspay-gateway.php:55 0657 #: includes/woocommerce-businesspay-gateway.php:554 667 658 msgid "BusinessPay | Bank Transfer" 668 659 msgstr "BusinessPay | Transferência bancária" 669 660 670 #: includes/woocommerce-businesspay-gateway.php:55 2661 #: includes/woocommerce-businesspay-gateway.php:556 671 662 msgid "BusinessPay | Billet" 672 663 msgstr "BusinessPay | Boleto" 673 664 674 #: includes/woocommerce-businesspay-gateway.php:732 665 #: includes/woocommerce-businesspay-gateway.php:583 666 msgid "Failed to refund order. The reason field must be filled." 667 msgstr "Falha ao estornar pedido. O campo razão deve ser preenchido." 668 669 #: includes/woocommerce-businesspay-gateway.php:586 670 msgid "Failed to refund order. The Amount must be identical to order total." 671 msgstr "" 672 "Falha ao estornar pedido. A quantidade deve ser idêntica ao total do pedido." 673 674 #: includes/woocommerce-businesspay-gateway.php:754 675 675 msgid "" 676 676 "The credentials for this virtual store are not valid on the BusinessPay " … … 678 678 msgstr "As credenciais desta loja virtual não são válidas neste servidor." 679 679 680 #: includes/woocommerce-businesspay-gateway.php:7 35681 #: includes/woocommerce-businesspay-gateway.php:13 11680 #: includes/woocommerce-businesspay-gateway.php:757 681 #: includes/woocommerce-businesspay-gateway.php:1377 682 682 msgid "Could not receive a valid server response. Please try again." 683 683 msgstr "" … … 685 685 "novamente." 686 686 687 #: includes/woocommerce-businesspay-gateway.php:8 28687 #: includes/woocommerce-businesspay-gateway.php:850 688 688 msgid "BusinessPay Status: " 689 689 msgstr "Status BusinessPay: " 690 690 691 #: includes/woocommerce-businesspay-gateway.php:10 22691 #: includes/woocommerce-businesspay-gateway.php:1045 692 692 msgid "Transaction started but not confirmed." 693 693 msgstr "Transação iniciada mas não confirmada." 694 694 695 #: includes/woocommerce-businesspay-gateway.php:10 25695 #: includes/woocommerce-businesspay-gateway.php:1048 696 696 msgid "Awating payment." 697 697 msgstr "Aguardando pagamento." 698 698 699 #: includes/woocommerce-businesspay-gateway.php:10 28699 #: includes/woocommerce-businesspay-gateway.php:1051 700 700 msgid "Transaction effectivated." 701 701 msgstr "Transação efetivada." 702 702 703 #: includes/woocommerce-businesspay-gateway.php:10 31703 #: includes/woocommerce-businesspay-gateway.php:1054 704 704 msgid "Transaction under analysis." 705 705 msgstr "Transação em análise." 706 706 707 #: includes/woocommerce-businesspay-gateway.php:10 34707 #: includes/woocommerce-businesspay-gateway.php:1057 708 708 msgid "Transaction expired." 709 709 msgstr "Transação expirada." 710 710 711 #: includes/woocommerce-businesspay-gateway.php:10 37711 #: includes/woocommerce-businesspay-gateway.php:1060 712 712 msgid "Transaction authorized." 713 713 msgstr "Transação autorizada." 714 714 715 #: includes/woocommerce-businesspay-gateway.php:10 40715 #: includes/woocommerce-businesspay-gateway.php:1063 716 716 msgid "Transaction confirmed." 717 717 msgstr "Transação confirmada." 718 718 719 #: includes/woocommerce-businesspay-gateway.php:10 43719 #: includes/woocommerce-businesspay-gateway.php:1066 720 720 msgid "Transaction denied." 721 721 msgstr "Transação negada." 722 722 723 #: includes/woocommerce-businesspay-gateway.php:10 46723 #: includes/woocommerce-businesspay-gateway.php:1069 724 724 msgid "Cancellation in progress." 725 725 msgstr "Cancelamento em andamento." 726 726 727 #: includes/woocommerce-businesspay-gateway.php:10 49727 #: includes/woocommerce-businesspay-gateway.php:1072 728 728 msgid "Transaction Canceled." 729 729 msgstr "Transação cancelada." 730 730 731 #: includes/woocommerce-businesspay-gateway.php:10 52731 #: includes/woocommerce-businesspay-gateway.php:1075 732 732 msgid "Transaction pending of confirmation." 733 733 msgstr "Transação pendente de confirmação." 734 734 735 #: includes/woocommerce-businesspay-gateway.php:10 55735 #: includes/woocommerce-businesspay-gateway.php:1078 736 736 msgid "Failure to communicate with the provider." 737 737 msgstr "Falha na comunicação com o emissor." 738 738 739 #: includes/woocommerce-businesspay-gateway.php:10 58739 #: includes/woocommerce-businesspay-gateway.php:1081 740 740 msgid "No valid server response." 741 741 msgstr "Nenhuma resposta válida do servidor." 742 742 743 #: includes/woocommerce-businesspay-gateway.php:1 077743 #: includes/woocommerce-businesspay-gateway.php:1100 744 744 msgid "payment made less than the value of the order." 745 msgstr "Pagamento feito com valor menor que o vaor do pedido." 746 747 #: includes/woocommerce-businesspay-gateway.php:1308 745 msgstr "Pagamento efetuado com valor menor que o valor do pedido." 746 747 #: includes/woocommerce-businesspay-gateway.php:1374 748 #: includes/woocommerce-businesspay-gateway.php:1988 748 749 msgid "" 749 750 "The credentials for this virtual store are not valid on the BusinessPay " … … 753 754 "novamente em alguns instantes." 754 755 755 #: includes/woocommerce-businesspay-gateway.php:1 354756 #: includes/woocommerce-businesspay-gateway.php:1420 756 757 msgid "Antifraud Status: " 757 758 msgstr "Status Antifraude: " 758 759 759 #: includes/woocommerce-businesspay-gateway.php:1 486760 #: includes/woocommerce-businesspay-gateway.php:1558 760 761 msgid "" 761 762 "Order was automatically approved according to parameters defined in the " … … 765 766 "de aprovação automática." 766 767 767 #: includes/woocommerce-businesspay-gateway.php:1 489768 #: includes/woocommerce-businesspay-gateway.php:1561 768 769 msgid "Order is queued for analysis." 769 770 msgstr "Pedido está na fila para análise." 770 771 771 #: includes/woocommerce-businesspay-gateway.php:1 492772 #: includes/woocommerce-businesspay-gateway.php:1564 772 773 msgid "Order manually approved by decision-making of an analyst." 773 774 msgstr "Pedido aprovado manualmente através da tomada de decisão do analista." 774 775 775 #: includes/woocommerce-businesspay-gateway.php:1 495776 #: includes/woocommerce-businesspay-gateway.php:1567 776 777 msgid "" 777 778 "Order approved automatically by client-established policy or antifraud " … … 781 782 "do software antifraude." 782 783 783 #: includes/woocommerce-businesspay-gateway.php:1 498784 #: includes/woocommerce-businesspay-gateway.php:1570 784 785 msgid "Canceled by customer or duplicated order." 785 786 msgstr "Cancelado pelo cliente ou pedido duplicado." 786 787 787 #: includes/woocommerce-businesspay-gateway.php:15 01788 #: includes/woocommerce-businesspay-gateway.php:1573 788 789 msgid "" 789 790 "Order imputed as fraud confirmed by contact with the card administrator and " … … 795 796 "desconhece a compra." 796 797 797 #: includes/woocommerce-businesspay-gateway.php:15 04798 #: includes/woocommerce-businesspay-gateway.php:1576 798 799 msgid "Order imported and not classified Score by the analyzer yet." 799 800 msgstr "Pedido importado e não classificado Score ainda pelo analista." 800 801 801 #: includes/woocommerce-businesspay-gateway.php:15 07802 #: includes/woocommerce-businesspay-gateway.php:1579 802 803 msgid "" 803 804 "Order Automatically Disapproved by some type of business rule that needs to " … … 807 808 "precisa ser aplicada." 808 809 809 #: includes/woocommerce-businesspay-gateway.php:15 10810 #: includes/woocommerce-businesspay-gateway.php:1582 810 811 msgid "" 811 812 "Order disapproved without suspicion by lack of contact with the client " … … 817 818 "SUS ou Cancelado)." 818 819 819 #: includes/woocommerce-businesspay-gateway.php:15 13820 #: includes/woocommerce-businesspay-gateway.php:1585 820 821 msgid "" 821 822 "Order disapproved automatically by policy established by customer or " … … 825 826 "software antifraude." 826 827 827 #: includes/woocommerce-businesspay-gateway.php:15 16828 #: includes/woocommerce-businesspay-gateway.php:1588 828 829 msgid "" 829 830 "Order automatically approved by policy established by the customer or " … … 833 834 "software antifraude." 834 835 835 #: includes/woocommerce-businesspay-gateway.php: 1639836 #: includes/woocommerce-businesspay-gateway.php:2042 836 837 msgid "Woocommerce Order" 837 838 msgstr "Pedido do WooCommerce" 838 839 839 #: includes/woocommerce-businesspay-gateway.php: 2974840 #: includes/woocommerce-businesspay-gateway.php: 2981840 #: includes/woocommerce-businesspay-gateway.php:3396 841 #: includes/woocommerce-businesspay-gateway.php:3403 841 842 msgid "BusinessPay Disabled" 842 843 msgstr "BusinessPay desabilitado" 843 844 844 #: includes/woocommerce-businesspay-gateway.php: 2975845 #: includes/woocommerce-businesspay-gateway.php:3397 845 846 msgid "You must enable at least one form of payment." 846 847 msgstr "Você precisa habilitar ao menos uma forma de pagamento." 847 848 848 #: includes/woocommerce-businesspay-gateway.php: 2976849 #: includes/woocommerce-businesspay-gateway.php:3398 849 850 msgid "Click here to configure!" 850 851 msgstr "Clique aqui para configurar!" 851 852 852 #: includes/woocommerce-businesspay-gateway.php: 2982853 #: includes/woocommerce-businesspay-gateway.php:3404 853 854 #, php-format 854 855 msgid "" -
woo-businesspay/trunk/languages/woocommerce-businesspay.pot
r1977545 r1982294 4 4 "Project-Id-Version: WooCommerce BusinessPay\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2018-11-2 0 16:10+0000\n"6 "POT-Creation-Date: 2018-11-29 00:19+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: Gustavo Piucco <gustavopiucco@gmail.com>\n" … … 33 33 34 34 #: templates/businesspay-panel-gateway.php:25 35 #: includes/woocommerce-businesspay-gateway.php:3 2935 #: includes/woocommerce-businesspay-gateway.php:340 36 36 msgid "Debit Card" 37 37 msgstr "" … … 43 43 44 44 #: templates/businesspay-panel-gateway.php:30 45 #: includes/woocommerce-businesspay-gateway.php:2 4045 #: includes/woocommerce-businesspay-gateway.php:251 46 46 msgid "Credit Card" 47 47 msgstr "" … … 49 49 #: templates/businesspay-panel-gateway.php:32 50 50 msgid "Unknown Brand" 51 msgstr ""52 53 #: templates/businesspay-panel-gateway.php:3854 #: templates/frontend-template.php:9555 msgid "In "56 51 msgstr "" 57 52 … … 59 54 #: templates/frontend-template.php:95 60 55 msgid "x of " 61 msgstr ""62 63 #: templates/businesspay-panel-gateway.php:3864 #: templates/frontend-template.php:9565 msgid " on credit card"66 56 msgstr "" 67 57 … … 79 69 #: templates/businesspay-panel-gateway.php:64 80 70 #: templates/frontend-template.php:26 81 #: includes/woocommerce-businesspay-gateway.php:3 4571 #: includes/woocommerce-businesspay-gateway.php:356 82 72 msgid "Billet" 83 73 msgstr "" … … 92 82 93 83 #: templates/businesspay-panel-gateway.php:103 94 msgid "Token: " 84 #: templates/businesspay-panel-antifraud.php:37 85 msgid "ID: " 95 86 msgstr "" 96 87 97 88 #: templates/businesspay-panel-gateway.php:105 98 #: templates/businesspay-panel-antifraud.php:3 689 #: templates/businesspay-panel-antifraud.php:39 99 90 msgid "Date: " 100 91 msgstr "" 101 92 102 93 #: templates/businesspay-panel-gateway.php:107 103 #: templates/businesspay-panel-antifraud.php: 3894 #: templates/businesspay-panel-antifraud.php:41 104 95 msgid "Status: " 105 96 msgstr "" … … 200 191 msgstr "" 201 192 202 #: templates/businesspay-panel-antifraud.php:33 193 #: templates/businesspay-panel-antifraud.php:25 194 msgid "Not applicable." 195 msgstr "" 196 197 #: templates/businesspay-panel-antifraud.php:36 203 198 msgid "Analysis Information" 204 199 msgstr "" 205 200 206 #: templates/businesspay-panel-antifraud.php:34 207 msgid "ID: " 208 msgstr "" 209 210 #: templates/businesspay-panel-antifraud.php:40 201 #: templates/businesspay-panel-antifraud.php:43 211 202 msgid "Score: " 212 203 msgstr "" 213 204 214 #: templates/businesspay-panel-antifraud.php:4 2205 #: templates/businesspay-panel-antifraud.php:45 215 206 msgid "Message: " 216 207 msgstr "" … … 221 212 222 213 #: templates/frontend-template.php:21 223 #: includes/woocommerce-businesspay-gateway.php:3 37214 #: includes/woocommerce-businesspay-gateway.php:348 224 215 msgid "Bank Transfer" 225 216 msgstr "" … … 257 248 msgstr "" 258 249 250 #: templates/frontend-template.php:95 251 msgid "In " 252 msgstr "" 253 254 #: templates/frontend-template.php:95 255 msgid " on credit card" 256 msgstr "" 257 259 258 #: templates/frontend-template.php:104 260 259 msgid "Card holder document number" … … 315 314 msgstr "" 316 315 317 #: includes/woocommerce-businesspay-gateway.php:1 62316 #: includes/woocommerce-businesspay-gateway.php:173 318 317 msgid "Account Enabled" 319 318 msgstr "" 320 319 321 #: includes/woocommerce-businesspay-gateway.php:1 62320 #: includes/woocommerce-businesspay-gateway.php:173 322 321 msgid "Account Disabled" 323 322 msgstr "" 324 323 325 #: includes/woocommerce-businesspay-gateway.php:1 63324 #: includes/woocommerce-businesspay-gateway.php:174 326 325 msgid "Installation Enabled" 327 326 msgstr "" 328 327 329 #: includes/woocommerce-businesspay-gateway.php:1 63328 #: includes/woocommerce-businesspay-gateway.php:174 330 329 msgid "Installation Disabled" 331 330 msgstr "" 332 331 333 #: includes/woocommerce-businesspay-gateway.php:1 64332 #: includes/woocommerce-businesspay-gateway.php:175 334 333 msgid "Antifraud Enabled" 335 334 msgstr "" 336 335 337 #: includes/woocommerce-businesspay-gateway.php:1 64336 #: includes/woocommerce-businesspay-gateway.php:175 338 337 msgid "Antifraud Disabled" 339 338 msgstr "" 340 339 341 #: includes/woocommerce-businesspay-gateway.php:1 65340 #: includes/woocommerce-businesspay-gateway.php:176 342 341 msgid "Product not configured" 343 342 msgstr "" 344 343 345 #: includes/woocommerce-businesspay-gateway.php:1 67344 #: includes/woocommerce-businesspay-gateway.php:178 346 345 msgid "Client Account:" 347 346 msgstr "" 348 347 349 #: includes/woocommerce-businesspay-gateway.php:1 68348 #: includes/woocommerce-businesspay-gateway.php:179 350 349 msgid "Client Installation:" 351 350 msgstr "" 352 351 353 #: includes/woocommerce-businesspay-gateway.php:1 69352 #: includes/woocommerce-businesspay-gateway.php:180 354 353 msgid "Client Antifraud:" 355 354 msgstr "" 356 355 357 #: includes/woocommerce-businesspay-gateway.php:1 70356 #: includes/woocommerce-businesspay-gateway.php:181 358 357 msgid "Antifraud Product:" 359 358 msgstr "" 360 359 361 #: includes/woocommerce-businesspay-gateway.php:1 83360 #: includes/woocommerce-businesspay-gateway.php:194 362 361 msgid "Antifraud by " 363 362 msgstr "" 364 363 365 #: includes/woocommerce-businesspay-gateway.php: 192364 #: includes/woocommerce-businesspay-gateway.php:203 366 365 msgid "BusinessPay Payment Gateway" 367 366 msgstr "" 368 367 369 #: includes/woocommerce-businesspay-gateway.php: 197368 #: includes/woocommerce-businesspay-gateway.php:208 370 369 msgid "Enable BusinessPay" 371 370 msgstr "" 372 371 373 #: includes/woocommerce-businesspay-gateway.php: 198372 #: includes/woocommerce-businesspay-gateway.php:209 374 373 msgid "Enable BusinessPay Gateway Plugin" 375 374 msgstr "" 376 375 377 #: includes/woocommerce-businesspay-gateway.php: 199376 #: includes/woocommerce-businesspay-gateway.php:210 378 377 msgid "Enable BusinessPay gateway plugin options." 379 378 msgstr "" 380 379 381 #: includes/woocommerce-businesspay-gateway.php:2 05380 #: includes/woocommerce-businesspay-gateway.php:216 382 381 msgid "Title" 383 382 msgstr "" 384 383 385 #: includes/woocommerce-businesspay-gateway.php:2 06384 #: includes/woocommerce-businesspay-gateway.php:217 386 385 msgid "Payment method title seen on the checkout page." 387 386 msgstr "" 388 387 389 #: includes/woocommerce-businesspay-gateway.php:2 07388 #: includes/woocommerce-businesspay-gateway.php:218 390 389 msgid "BusinessPay | Payments via credit card, debit and billet." 391 390 msgstr "" 392 391 393 #: includes/woocommerce-businesspay-gateway.php:2 12392 #: includes/woocommerce-businesspay-gateway.php:223 394 393 msgid "Description" 395 394 msgstr "" 396 395 397 #: includes/woocommerce-businesspay-gateway.php:2 13396 #: includes/woocommerce-businesspay-gateway.php:224 398 397 msgid "Payment method description seen on the checkout page." 399 398 msgstr "" 400 399 401 #: includes/woocommerce-businesspay-gateway.php:2 14400 #: includes/woocommerce-businesspay-gateway.php:225 402 401 msgid "Pay using BusinessPay, a secure experience of online buys." 403 402 msgstr "" 404 403 405 #: includes/woocommerce-businesspay-gateway.php:2 19404 #: includes/woocommerce-businesspay-gateway.php:230 406 405 msgid "Gateway Settings" 407 406 msgstr "" 408 407 409 #: includes/woocommerce-businesspay-gateway.php:2 24408 #: includes/woocommerce-businesspay-gateway.php:235 410 409 msgid "Authentication API" 411 410 msgstr "" 412 411 413 #: includes/woocommerce-businesspay-gateway.php:2 25412 #: includes/woocommerce-businesspay-gateway.php:236 414 413 msgid "Use your BusinessPay Authentication API" 415 414 msgstr "" 416 415 417 #: includes/woocommerce-businesspay-gateway.php:2 32416 #: includes/woocommerce-businesspay-gateway.php:243 418 417 msgid "Authentication Key" 419 418 msgstr "" 420 419 421 #: includes/woocommerce-businesspay-gateway.php:2 33420 #: includes/woocommerce-businesspay-gateway.php:244 422 421 msgid "Use your BusinessPay Authentication Key" 423 422 msgstr "" 424 423 425 #: includes/woocommerce-businesspay-gateway.php:2 41424 #: includes/woocommerce-businesspay-gateway.php:252 426 425 msgid "Enable credit card payments with BusinessPay" 427 426 msgstr "" 428 427 429 #: includes/woocommerce-businesspay-gateway.php:2 42428 #: includes/woocommerce-businesspay-gateway.php:253 430 429 msgid "Enable credit card payment with BusinessPay on checkout page" 431 430 msgstr "" 432 431 433 #: includes/woocommerce-businesspay-gateway.php:2 47432 #: includes/woocommerce-businesspay-gateway.php:258 434 433 msgid "Credit Card Settings" 435 434 msgstr "" 436 435 437 #: includes/woocommerce-businesspay-gateway.php:2 53436 #: includes/woocommerce-businesspay-gateway.php:264 438 437 msgid "Name in Invoice" 439 438 msgstr "" 440 439 441 #: includes/woocommerce-businesspay-gateway.php:2 54440 #: includes/woocommerce-businesspay-gateway.php:265 442 441 msgid "" 443 442 "Name in Invoice to identify Shop. Its important to avoid gateway chargebacks." 444 443 msgstr "" 445 444 446 #: includes/woocommerce-businesspay-gateway.php:2 61445 #: includes/woocommerce-businesspay-gateway.php:272 447 446 msgid "Invoice Prefix" 448 447 msgstr "" 449 448 450 #: includes/woocommerce-businesspay-gateway.php:2 62449 #: includes/woocommerce-businesspay-gateway.php:273 451 450 msgid "Shop prefix to identify invoice shop origin" 452 451 msgstr "" 453 452 454 #: includes/woocommerce-businesspay-gateway.php:2 68453 #: includes/woocommerce-businesspay-gateway.php:279 455 454 msgid "Installments" 456 455 msgstr "" 457 456 458 #: includes/woocommerce-businesspay-gateway.php:2 70457 #: includes/woocommerce-businesspay-gateway.php:281 459 458 msgid "Enable Installments" 460 459 msgstr "" 461 460 462 #: includes/woocommerce-businesspay-gateway.php:2 74461 #: includes/woocommerce-businesspay-gateway.php:285 463 462 msgid "Installments Settings" 464 463 msgstr "" 465 464 466 #: includes/woocommerce-businesspay-gateway.php:2 79465 #: includes/woocommerce-businesspay-gateway.php:290 467 466 msgid "Minimum Installment" 468 467 msgstr "" 469 468 470 #: includes/woocommerce-businesspay-gateway.php:2 81469 #: includes/woocommerce-businesspay-gateway.php:292 471 470 msgid "Indicate the minimum installments." 472 471 msgstr "" 473 472 474 #: includes/woocommerce-businesspay-gateway.php:3 00473 #: includes/woocommerce-businesspay-gateway.php:311 475 474 msgid "Maximum Installment" 476 475 msgstr "" 477 476 478 #: includes/woocommerce-businesspay-gateway.php:3 02477 #: includes/woocommerce-businesspay-gateway.php:313 479 478 msgid "Indicate the Maximum installments." 480 479 msgstr "" 481 480 482 #: includes/woocommerce-businesspay-gateway.php:3 21481 #: includes/woocommerce-businesspay-gateway.php:332 483 482 msgid "Minimum Value" 484 483 msgstr "" 485 484 486 #: includes/woocommerce-businesspay-gateway.php:3 22485 #: includes/woocommerce-businesspay-gateway.php:333 487 486 msgid "Minimum value by installment" 488 487 msgstr "" 489 488 490 #: includes/woocommerce-businesspay-gateway.php:3 30489 #: includes/woocommerce-businesspay-gateway.php:341 491 490 msgid "Enable debit card payments with BusinessPay" 492 491 msgstr "" 493 492 494 #: includes/woocommerce-businesspay-gateway.php:3 31493 #: includes/woocommerce-businesspay-gateway.php:342 495 494 msgid "Enable debit card payment on checkout page" 496 495 msgstr "" 497 496 498 #: includes/woocommerce-businesspay-gateway.php:3 38497 #: includes/woocommerce-businesspay-gateway.php:349 499 498 msgid "Enable bank transfer payments with BusinessPay" 500 499 msgstr "" 501 500 502 #: includes/woocommerce-businesspay-gateway.php:3 39501 #: includes/woocommerce-businesspay-gateway.php:350 503 502 msgid "Enable bank transfer payment on checkout page" 504 503 msgstr "" 505 504 506 #: includes/woocommerce-businesspay-gateway.php:3 46505 #: includes/woocommerce-businesspay-gateway.php:357 507 506 msgid "Enable billet payments with BusinessPay" 508 507 msgstr "" 509 508 510 #: includes/woocommerce-businesspay-gateway.php:3 47509 #: includes/woocommerce-businesspay-gateway.php:358 511 510 msgid "Enable billet payment on checkout page" 512 511 msgstr "" 513 512 514 #: includes/woocommerce-businesspay-gateway.php:3 52513 #: includes/woocommerce-businesspay-gateway.php:363 515 514 msgid "Billet Settings" 516 515 msgstr "" 517 516 518 #: includes/woocommerce-businesspay-gateway.php:358 519 msgid "Custom Logo URL" 520 msgstr "" 521 522 #: includes/woocommerce-businesspay-gateway.php:359 523 msgid "URL logo image to be shown on the billet" 524 msgstr "" 525 526 #: includes/woocommerce-businesspay-gateway.php:364 517 #: includes/woocommerce-businesspay-gateway.php:368 527 518 msgid "Number of Days" 528 519 msgstr "" 529 520 530 #: includes/woocommerce-businesspay-gateway.php:3 66521 #: includes/woocommerce-businesspay-gateway.php:370 531 522 msgid "Days of expiry of the billet after printed." 532 523 msgstr "" 533 524 534 #: includes/woocommerce-businesspay-gateway.php:37 3525 #: includes/woocommerce-businesspay-gateway.php:377 535 526 msgid "Instruction Line" 536 527 msgstr "" 537 528 538 #: includes/woocommerce-businesspay-gateway.php:37 4529 #: includes/woocommerce-businesspay-gateway.php:378 539 530 msgid "Billet instruction line" 540 531 msgstr "" 541 532 542 #: includes/woocommerce-businesspay-gateway.php:3 79533 #: includes/woocommerce-businesspay-gateway.php:383 543 534 msgid "Tools" 544 535 msgstr "" 545 536 546 #: includes/woocommerce-businesspay-gateway.php:38 5537 #: includes/woocommerce-businesspay-gateway.php:389 547 538 msgid "BusinessPay Sandbox" 548 539 msgstr "" 549 540 550 #: includes/woocommerce-businesspay-gateway.php:3 86541 #: includes/woocommerce-businesspay-gateway.php:390 551 542 msgid "Enable BusinessPay sandbox mode" 552 543 msgstr "" 553 544 554 #: includes/woocommerce-businesspay-gateway.php:3 87545 #: includes/woocommerce-businesspay-gateway.php:391 555 546 msgid "Enable BusinessPay Sandbox" 556 547 msgstr "" 557 548 558 #: includes/woocommerce-businesspay-gateway.php:39 4549 #: includes/woocommerce-businesspay-gateway.php:398 559 550 msgid "Debug" 560 551 msgstr "" 561 552 562 #: includes/woocommerce-businesspay-gateway.php:39 5553 #: includes/woocommerce-businesspay-gateway.php:399 563 554 msgid "Enable logging" 564 555 msgstr "" 565 556 566 #: includes/woocommerce-businesspay-gateway.php:40 1557 #: includes/woocommerce-businesspay-gateway.php:405 567 558 msgid "Status" 568 559 msgstr "" 569 560 570 #: includes/woocommerce-businesspay-gateway.php:42 3561 #: includes/woocommerce-businesspay-gateway.php:427 571 562 msgid "Card number must be at least 16 characters." 572 563 msgstr "" 573 564 574 #: includes/woocommerce-businesspay-gateway.php:4 26565 #: includes/woocommerce-businesspay-gateway.php:430 575 566 msgid "The Card Number field must be numeric." 576 567 msgstr "" 577 568 578 #: includes/woocommerce-businesspay-gateway.php:4 29569 #: includes/woocommerce-businesspay-gateway.php:433 579 570 msgid "Invalid card number." 580 571 msgstr "" 581 572 582 #: includes/woocommerce-businesspay-gateway.php:4 36573 #: includes/woocommerce-businesspay-gateway.php:440 583 574 msgid "The Name field can not be less than 6 characters." 584 575 msgstr "" 585 576 586 #: includes/woocommerce-businesspay-gateway.php:4 39577 #: includes/woocommerce-businesspay-gateway.php:443 587 578 msgid "The Name field can not be greater than 25 characters." 588 579 msgstr "" 589 580 590 #: includes/woocommerce-businesspay-gateway.php:44 2581 #: includes/woocommerce-businesspay-gateway.php:446 591 582 msgid "The Name field can not have numbers." 592 583 msgstr "" 593 584 594 #: includes/woocommerce-businesspay-gateway.php:45 2585 #: includes/woocommerce-businesspay-gateway.php:456 595 586 msgid "The Month of Expiration field must have 2 digits." 596 587 msgstr "" 597 588 598 #: includes/woocommerce-businesspay-gateway.php:45 5589 #: includes/woocommerce-businesspay-gateway.php:459 599 590 msgid "The Month of Expiration field must be numeric." 600 591 msgstr "" 601 592 602 #: includes/woocommerce-businesspay-gateway.php:4 58593 #: includes/woocommerce-businesspay-gateway.php:462 603 594 msgid "The Year of Expiration field must be numeric." 604 595 msgstr "" 605 596 606 #: includes/woocommerce-businesspay-gateway.php:46 1597 #: includes/woocommerce-businesspay-gateway.php:465 607 598 msgid "The Year of Expiration field must have 4 digits." 608 599 msgstr "" 609 600 610 #: includes/woocommerce-businesspay-gateway.php:4 68611 #: includes/woocommerce-businesspay-gateway.php:47 4601 #: includes/woocommerce-businesspay-gateway.php:472 602 #: includes/woocommerce-businesspay-gateway.php:478 612 603 msgid "The CVC field must have 3 or 4 digits." 613 604 msgstr "" 614 605 615 #: includes/woocommerce-businesspay-gateway.php:47 1606 #: includes/woocommerce-businesspay-gateway.php:475 616 607 msgid "The CVC field must be numeric." 617 608 msgstr "" 618 609 619 #: includes/woocommerce-businesspay-gateway.php:48 1610 #: includes/woocommerce-businesspay-gateway.php:485 620 611 msgid "Please select a installment option." 621 612 msgstr "" 622 613 623 #: includes/woocommerce-businesspay-gateway.php:49 2614 #: includes/woocommerce-businesspay-gateway.php:496 624 615 msgid "The Document field must have 11 digits for CPF or 14 digits for CNPJ." 625 616 msgstr "" 626 617 627 #: includes/woocommerce-businesspay-gateway.php:49 5618 #: includes/woocommerce-businesspay-gateway.php:499 628 619 msgid "The Document field must be numeric." 629 620 msgstr "" 630 621 631 #: includes/woocommerce-businesspay-gateway.php: 498622 #: includes/woocommerce-businesspay-gateway.php:502 632 623 msgid "The Document field as CPF is invalid." 633 624 msgstr "" 634 625 635 #: includes/woocommerce-businesspay-gateway.php:50 1626 #: includes/woocommerce-businesspay-gateway.php:505 636 627 msgid "The Document field as CNPJ is invalid." 637 628 msgstr "" 638 629 639 #: includes/woocommerce-businesspay-gateway.php:5 09630 #: includes/woocommerce-businesspay-gateway.php:513 640 631 msgid "Please select a origin transfer bank option." 641 632 msgstr "" 642 633 643 #: includes/woocommerce-businesspay-gateway.php:51 5644 #: includes/woocommerce-businesspay-gateway.php:5 28634 #: includes/woocommerce-businesspay-gateway.php:519 635 #: includes/woocommerce-businesspay-gateway.php:532 645 636 msgid "The Neighborhood field need to be filled." 646 637 msgstr "" 647 638 648 #: includes/woocommerce-businesspay-gateway.php:52 2639 #: includes/woocommerce-businesspay-gateway.php:526 649 640 msgid "Please select a origin billet bank option." 650 641 msgstr "" 651 642 652 #: includes/woocommerce-businesspay-gateway.php:5 46643 #: includes/woocommerce-businesspay-gateway.php:550 653 644 msgid "BusinessPay | Debit Card" 654 645 msgstr "" 655 646 656 #: includes/woocommerce-businesspay-gateway.php:5 48647 #: includes/woocommerce-businesspay-gateway.php:552 657 648 msgid "BusinessPay | Credit Card" 658 649 msgstr "" 659 650 660 #: includes/woocommerce-businesspay-gateway.php:55 0651 #: includes/woocommerce-businesspay-gateway.php:554 661 652 msgid "BusinessPay | Bank Transfer" 662 653 msgstr "" 663 654 664 #: includes/woocommerce-businesspay-gateway.php:55 2655 #: includes/woocommerce-businesspay-gateway.php:556 665 656 msgid "BusinessPay | Billet" 666 657 msgstr "" 667 658 668 #: includes/woocommerce-businesspay-gateway.php:732 659 #: includes/woocommerce-businesspay-gateway.php:583 660 msgid "Failed to refund order. The reason field must be filled." 661 msgstr "" 662 663 #: includes/woocommerce-businesspay-gateway.php:586 664 msgid "Failed to refund order. The Amount must be identical to order total." 665 msgstr "" 666 667 #: includes/woocommerce-businesspay-gateway.php:754 669 668 msgid "" 670 669 "The credentials for this virtual store are not valid on the BusinessPay " … … 672 671 msgstr "" 673 672 674 #: includes/woocommerce-businesspay-gateway.php:7 35675 #: includes/woocommerce-businesspay-gateway.php:13 11673 #: includes/woocommerce-businesspay-gateway.php:757 674 #: includes/woocommerce-businesspay-gateway.php:1377 676 675 msgid "Could not receive a valid server response. Please try again." 677 676 msgstr "" 678 677 679 #: includes/woocommerce-businesspay-gateway.php:8 28678 #: includes/woocommerce-businesspay-gateway.php:850 680 679 msgid "BusinessPay Status: " 681 680 msgstr "" 682 681 683 #: includes/woocommerce-businesspay-gateway.php:10 22682 #: includes/woocommerce-businesspay-gateway.php:1045 684 683 msgid "Transaction started but not confirmed." 685 684 msgstr "" 686 685 687 #: includes/woocommerce-businesspay-gateway.php:10 25686 #: includes/woocommerce-businesspay-gateway.php:1048 688 687 msgid "Awating payment." 689 688 msgstr "" 690 689 691 #: includes/woocommerce-businesspay-gateway.php:10 28690 #: includes/woocommerce-businesspay-gateway.php:1051 692 691 msgid "Transaction effectivated." 693 692 msgstr "" 694 693 695 #: includes/woocommerce-businesspay-gateway.php:10 31694 #: includes/woocommerce-businesspay-gateway.php:1054 696 695 msgid "Transaction under analysis." 697 696 msgstr "" 698 697 699 #: includes/woocommerce-businesspay-gateway.php:10 34698 #: includes/woocommerce-businesspay-gateway.php:1057 700 699 msgid "Transaction expired." 701 700 msgstr "" 702 701 703 #: includes/woocommerce-businesspay-gateway.php:10 37702 #: includes/woocommerce-businesspay-gateway.php:1060 704 703 msgid "Transaction authorized." 705 704 msgstr "" 706 705 707 #: includes/woocommerce-businesspay-gateway.php:10 40706 #: includes/woocommerce-businesspay-gateway.php:1063 708 707 msgid "Transaction confirmed." 709 708 msgstr "" 710 709 711 #: includes/woocommerce-businesspay-gateway.php:10 43710 #: includes/woocommerce-businesspay-gateway.php:1066 712 711 msgid "Transaction denied." 713 712 msgstr "" 714 713 715 #: includes/woocommerce-businesspay-gateway.php:10 46714 #: includes/woocommerce-businesspay-gateway.php:1069 716 715 msgid "Cancellation in progress." 717 716 msgstr "" 718 717 719 #: includes/woocommerce-businesspay-gateway.php:10 49718 #: includes/woocommerce-businesspay-gateway.php:1072 720 719 msgid "Transaction Canceled." 721 720 msgstr "" 722 721 723 #: includes/woocommerce-businesspay-gateway.php:10 52722 #: includes/woocommerce-businesspay-gateway.php:1075 724 723 msgid "Transaction pending of confirmation." 725 724 msgstr "" 726 725 727 #: includes/woocommerce-businesspay-gateway.php:10 55726 #: includes/woocommerce-businesspay-gateway.php:1078 728 727 msgid "Failure to communicate with the provider." 729 728 msgstr "" 730 729 731 #: includes/woocommerce-businesspay-gateway.php:10 58730 #: includes/woocommerce-businesspay-gateway.php:1081 732 731 msgid "No valid server response." 733 732 msgstr "" 734 733 735 #: includes/woocommerce-businesspay-gateway.php:1 077734 #: includes/woocommerce-businesspay-gateway.php:1100 736 735 msgid "payment made less than the value of the order." 737 736 msgstr "" 738 737 739 #: includes/woocommerce-businesspay-gateway.php:1308 738 #: includes/woocommerce-businesspay-gateway.php:1374 739 #: includes/woocommerce-businesspay-gateway.php:1988 740 740 msgid "" 741 741 "The credentials for this virtual store are not valid on the BusinessPay " … … 743 743 msgstr "" 744 744 745 #: includes/woocommerce-businesspay-gateway.php:1 354745 #: includes/woocommerce-businesspay-gateway.php:1420 746 746 msgid "Antifraud Status: " 747 747 msgstr "" 748 748 749 #: includes/woocommerce-businesspay-gateway.php:1 486749 #: includes/woocommerce-businesspay-gateway.php:1558 750 750 msgid "" 751 751 "Order was automatically approved according to parameters defined in the " … … 753 753 msgstr "" 754 754 755 #: includes/woocommerce-businesspay-gateway.php:1 489755 #: includes/woocommerce-businesspay-gateway.php:1561 756 756 msgid "Order is queued for analysis." 757 757 msgstr "" 758 758 759 #: includes/woocommerce-businesspay-gateway.php:1 492759 #: includes/woocommerce-businesspay-gateway.php:1564 760 760 msgid "Order manually approved by decision-making of an analyst." 761 761 msgstr "" 762 762 763 #: includes/woocommerce-businesspay-gateway.php:1 495763 #: includes/woocommerce-businesspay-gateway.php:1567 764 764 msgid "" 765 765 "Order approved automatically by client-established policy or antifraud " … … 767 767 msgstr "" 768 768 769 #: includes/woocommerce-businesspay-gateway.php:1 498769 #: includes/woocommerce-businesspay-gateway.php:1570 770 770 msgid "Canceled by customer or duplicated order." 771 771 msgstr "" 772 772 773 #: includes/woocommerce-businesspay-gateway.php:15 01773 #: includes/woocommerce-businesspay-gateway.php:1573 774 774 msgid "" 775 775 "Order imputed as fraud confirmed by contact with the card administrator and " … … 778 778 msgstr "" 779 779 780 #: includes/woocommerce-businesspay-gateway.php:15 04780 #: includes/woocommerce-businesspay-gateway.php:1576 781 781 msgid "Order imported and not classified Score by the analyzer yet." 782 782 msgstr "" 783 783 784 #: includes/woocommerce-businesspay-gateway.php:15 07784 #: includes/woocommerce-businesspay-gateway.php:1579 785 785 msgid "" 786 786 "Order Automatically Disapproved by some type of business rule that needs to " … … 788 788 msgstr "" 789 789 790 #: includes/woocommerce-businesspay-gateway.php:15 10790 #: includes/woocommerce-businesspay-gateway.php:1582 791 791 msgid "" 792 792 "Order disapproved without suspicion by lack of contact with the client " … … 795 795 msgstr "" 796 796 797 #: includes/woocommerce-businesspay-gateway.php:15 13797 #: includes/woocommerce-businesspay-gateway.php:1585 798 798 msgid "" 799 799 "Order disapproved automatically by policy established by customer or " … … 801 801 msgstr "" 802 802 803 #: includes/woocommerce-businesspay-gateway.php:15 16803 #: includes/woocommerce-businesspay-gateway.php:1588 804 804 msgid "" 805 805 "Order automatically approved by policy established by the customer or " … … 807 807 msgstr "" 808 808 809 #: includes/woocommerce-businesspay-gateway.php: 1639809 #: includes/woocommerce-businesspay-gateway.php:2042 810 810 msgid "Woocommerce Order" 811 811 msgstr "" 812 812 813 #: includes/woocommerce-businesspay-gateway.php: 2974814 #: includes/woocommerce-businesspay-gateway.php: 2981813 #: includes/woocommerce-businesspay-gateway.php:3396 814 #: includes/woocommerce-businesspay-gateway.php:3403 815 815 msgid "BusinessPay Disabled" 816 816 msgstr "" 817 817 818 #: includes/woocommerce-businesspay-gateway.php: 2975818 #: includes/woocommerce-businesspay-gateway.php:3397 819 819 msgid "You must enable at least one form of payment." 820 820 msgstr "" 821 821 822 #: includes/woocommerce-businesspay-gateway.php: 2976822 #: includes/woocommerce-businesspay-gateway.php:3398 823 823 msgid "Click here to configure!" 824 824 msgstr "" 825 825 826 #: includes/woocommerce-businesspay-gateway.php: 2982826 #: includes/woocommerce-businesspay-gateway.php:3404 827 827 #, php-format 828 828 msgid "" -
woo-businesspay/trunk/readme.txt
r1977545 r1982294 13 13 14 14 == Description == 15 A [BusinessPay](https://www.businesspay.com.br) oferece soluções em meios de pagamento para o negócio de seus clientes em captura de transações com antifraude by ClearSale com as principais bandeiras do mercado e emissão de boletos, com as menores taxas de administração e de antecipação de recebíveis do mercado. 15 A [BusinessPay](https://www.businesspay.com.br) oferece as melhores soluções em meios de pagamento online com antifraude by ClearSale usando as principais bandeiras do mercado e emissão de boletos, com as menores taxas de administração e de antecipação de recebíveis do mercado. 16 Gostou desse plugin? Ajude a comunidade fazendo uma avaliação ;) 17 Sugestões serão sempre bem-vindas. 16 18 17 19 = Para Vendedores = 18 Usar a BusinessPay é a melhor maneira de vender usando o WooCommerce. 19 Oferecemos suporte de alta qualidade para ajudar sua equipe a se manter focada na operação do negócio. 20 Através do painel de administração dos pedidos do WooCommerce, você tem acesso a todas as informações disponíveis sobre a transação, os status informados pelo software antifraude e rede adquirente e a captura, para que você tenha total segurança em cada operação. 20 Usar a BusinessPay é a melhor maneira de vender no Brasil usando o WooCommerce. Oferecemos as melhores taxas do mercado e modelo de antecipação diferenciados. 21 A integração é fácil e rápida, e você tem total controle das informações de pagamento e antifraude na tela de edição do pedido, ajudando a identificar rapidamente qual a situação atual do pedido. 22 Na tela do pedido agora oferecemos também a opção de cancelamento (estorno) no gateway de pagamento. Você não precisa mais entrar no painel de controle do gateway para realizar o estorno. 23 Através do painel de administração dos pedidos do WooCommerce, você tem acesso a todas as informações disponíveis sobre a transação, os status informados pelo software antifraude e rede adquirente e a captura (efetivação), para que você tenha total segurança em todas as transações. 21 24 Este plugin utiliza antifraude da ClearSale nativamente, isso significa que você não precisa se preocupar com configurações, nós cuidamos de tudo pra você. 22 25 23 = Os seguintes produtos antifraude da ClearSale são compatíveis: =24 * Realtime Decision ;25 * ClearSale Total ;26 * Total Garantido ;27 * Application ;26 = Os seguintes produtos antifraude da ClearSale são 100% compatíveis com este plugin: = 27 * Realtime Decision (resposta de aprovação em tempo real); 28 * ClearSale Total (grande parte da resposta em tempo real e uma parcela de análise de mesa); 29 * Total Garantido (mesmo modo do Total mas com garantia de recebimento do valor do pedido); 30 * Application (análise de mesa por sua equipe através do software ClearSale); 28 31 29 32 Saiba mais em [ClearSale para E-Commerce](https://br.clear.sale/antifraude/ecommerce). 30 33 31 Solicite a abertura de sua conta e m [www.businesspay.com.br](https://www.businesspay.com.br).34 Solicite a abertura de sua conta e começe já em [www.businesspay.com.br](https://www.businesspay.com.br). 32 35 33 = Para Co mpradores =34 Para o co mprador, oferecemos a melhor experiência de compra, com facilidade de uso e segurança sempre.35 O ferecemos também um cartão visualna página de finalização do pedido para facilitar a inserção dos dados do cartão.36 = Para Consumidores = 37 Para o consumidor, oferecemos a melhor experiência de compra possível na internet, com rapidez, facilidade de uso e segurança padrão PCI Compliance. 38 O layout oferece cartão visual interativo na página de finalização do pedido para facilitar a inserção dos dados do cartão. 36 39 37 = Os seguintes meios de pagamento são compatíveis: =38 * Cartão de Crédito ;40 = As seguintes formas de pagamento são compatíveis: = 41 * Cartão de Crédito à vista ou parcelado em até 12x; 39 42 * Cartão de débito; 40 43 * Boleto Bancário via Bradesco ou Itaú; … … 50 53 * JCB; 51 54 * Mastercard; 55 * Mastercard Maestro; 52 56 * Visa; 57 * Visa Electron; 53 58 54 59 = Compatibilidade = 55 60 O plugin verifica a versão do PHP, do Wordpress e do WooCommerce para determinar se é compatível com a versão atual do plugin. 56 O plugin é compatível com dispositivos mobile. 57 Sugestões serão bem-vindas. 61 O plugin é compatível também com visualizações de tela em smartphones e tablets. 58 62 59 63 == Antifraude == … … 69 73 70 74 == Screenshots == 71 1. WooCommerce BusinessPay com Visual Card habilitado na página de finalização do pedido.75 1. WooCommerce BusinessPay no modo crédito ou débito com Visual Card habilitado na página de finalização do pedido. 72 76 2. Simulação da inserção de um cartão de crédito Visa com WooCommerce Visual Card habilitado. 73 77 3. Simulação da digitação do código CVV no verso do cartão com WooCommerce Visual Card habilitado. 78 4. Modo de visualização de transferência bancária. 79 5. Modo de visualização de boleto. 80 6. Visualização das informações do pedido jonto ao BusinessPay e ClearSale através da página de edição do pedido do WooCommerce (Painel administrativo). 81 7. Opção de cancelamento (estorno) do pedido na página de edição do pedido do WooCommerce (Painel administrativo). 74 82 75 83 == Frequently Asked Questions == 84 = Como faço para criar minha conta? = 85 * É fácil e rápido. Após cadastro no site [www.businesspay.com.br](https://www.businesspay.com.br) você receberá o contato de um especialista que irá fornecer as credenciais de acesso. Basta inserí-las na tela de configuração do plugin que já estará funcionando. 86 87 = Este plugin é desenvolvido pela BusinessPay? = 88 * Sim, este plugin é desenvolvido e atualizado por nossa equipe interna de tecnologia. 89 90 = Como posso falar com o suporte técnico? = 91 * Você pode entrar em contato com um de nossos especialistas através do site. Prometemos responder rapidamente. [www.businesspay.com.br](https://www.businesspay.com.br). 92 93 = É possível testar o plugin antes de contratar? = 94 * Sim, ao se cadastrar você receberá também as credenciais para o ambiente Sandbox para que você possa testar em sua plataforma antes de iniciar a operação em produção. 95 76 96 = O plugin funciona com o antifraude desabilitado? = 77 97 * Sim, mas os pagamentos serão capturados automaticamente, sem possibilidade de verificação manual por enquanto. … … 81 101 82 102 == Upgrade Notice == 83 = 1.0.6 - 2018/11/20 = 84 * Add | Inserted Default Authentication Key and API to sandbox mode. 85 * Add | Admin panel antifraud product info. 86 * Add | Antifraud product Realtime Decision compatibility. 87 * Add | Async antifraud webhook consult status. 88 * Fix | Void index.php created in each plugin folder. 89 * Fix | Performance and code structure improvement. 103 = 1.0.7 - 2018/11/28 = 104 * Add | Option to refund order in edit order admin page using WooCommerce refund support. 105 * Fix | 3 Minor bug fixes. 106 * Fix | More friendly messages to order admin. 107 * Fix | Frontend card holder name in Uppercase now. 108 * Fix | Error log messages more friendly. 90 109 91 110 == Changelog == 111 = 1.0.7 - 2018/11/28 = 112 * Add | Option to refund order in edit order admin page using WooCommerce refund support. 113 * Fix | 3 Minor bug fixes. 114 * Fix | More friendly messages to order admin. 115 * Fix | Frontend card holder name in Uppercase now. 116 * Fix | Error log messages more friendly. 117 92 118 = 1.0.6 - 2018/11/20 = 93 119 * Add | Inserted Default Authentication Key and API to sandbox mode. -
woo-businesspay/trunk/templates/businesspay-panel-antifraud.php
r1977545 r1982294 20 20 $af_transaction_date = $af_transaction_date->format( 'd/m/Y ' . esc_html__( '\a\t', 'woocommerce-businesspay' ) . ' H:i:s' ); 21 21 22 $af_transaction_status = get_post_meta( $oid, '_businesspay-antifraud-status-code', true ) . ' - ' . get_post_meta( $oid, '_businesspay-antifraud-status', true );22 $af_transaction_status = get_post_meta( $oid, '_businesspay-antifraud-status-code', true ); 23 23 $af_score = get_post_meta( $oid, '_businesspay-antifraud-score', true ); 24 $af_message = get_post_meta( $oid, '_businesspay-antifraud-message', true ); 24 if ( empty( $af_score ) ) { 25 $af_score = __( 'Not applicable.', 'woocommerce-businesspay' ); 26 } 27 $af_message = get_post_meta( $oid, '_businesspay-antifraud-message', true ); 25 28 26 29 ?> … … 40 43 <strong><?php esc_html_e( 'Score: ', 'woocommerce-businesspay' ); ?></strong><?php echo $af_score; ?> 41 44 <br/> 42 <strong><?php esc_html_e( 'Message: ', 'woocommerce-businesspay' ); ?></strong><?php echo $af_ score; ?>45 <strong><?php esc_html_e( 'Message: ', 'woocommerce-businesspay' ); ?></strong><?php echo $af_message; ?> 43 46 <br/> 44 47 </p> -
woo-businesspay/trunk/templates/businesspay-panel-gateway.php
r1977545 r1982294 36 36 $bp_current_installment_value = $bp_order_value / $bp_installments; 37 37 $bp_current_installment_value = number_format( $bp_current_installment_value, 2, ',', '.' ); 38 $bp_installments = esc_html__( 'In ', 'woocommerce-businesspay' ) . $bp_installments . esc_html__( 'x of ', 'woocommerce-businesspay' ) . $bp_woo_currency . $bp_current_installment_value . esc_html__( ' on credit card', 'woocommerce-businesspay' );38 $bp_installments = $bp_installments . esc_html__( 'x of ', 'woocommerce-businesspay' ) . $bp_woo_currency . $bp_current_installment_value; 39 39 40 40 break; … … 101 101 <p> 102 102 <strong><?php esc_html_e( 'Transaction Information', 'woocommerce-businesspay' ); ?></strong><br/> 103 <strong><?php esc_html_e( ' Token: ', 'woocommerce-businesspay' ); ?></strong><?php echo $bp_transaction_id; ?>103 <strong><?php esc_html_e( 'ID: ', 'woocommerce-businesspay' ); ?></strong><?php echo $bp_transaction_id; ?> 104 104 <br/> 105 105 <strong><?php esc_html_e( 'Date: ', 'woocommerce-businesspay' ); ?></strong><?php echo $bp_transaction_date; ?> -
woo-businesspay/trunk/woocommerce-businesspay.php
r1977545 r1982294 6 6 * Author: BusinessPay 7 7 * Author URI: https://www.businesspay.com.br/ 8 * Version: 1.0. 68 * Version: 1.0.7 9 9 * Text Domain: woocommerce-businesspay 10 10 * Domain Path: /languages … … 19 19 20 20 class WC_BusinessPay { 21 const VERSION = '1.0. 6';21 const VERSION = '1.0.7'; 22 22 const VERSION_MIN_PHP = '5.4'; 23 23 const VERSION_MIN_WP = '4.7'; … … 87 87 88 88 89 90 89 //NOTICES 91 90
Note: See TracChangeset
for help on using the changeset viewer.