Plugin Directory

Changeset 1982294


Ignore:
Timestamp:
11/29/2018 01:29:32 AM (7 years ago)
Author:
businesspay
Message:

1.0.7 - 2018/11/28

  • Add | Option to refund order in edit order admin page using WooCommerce refund support.
  • Fix | 3 Minor bug fixes.
  • Fix | More friendly messages to order admin.
  • Fix | Frontend card holder name in Uppercase now.
  • Fix | Error log messages more friendly.
Location:
woo-businesspay
Files:
3 added
10 edited

Legend:

Unmodified
Added
Removed
  • woo-businesspay/trunk/assets/js/frontend.js

    r1962624 r1982294  
    5555            jQuery("#businesspay_card_brand").val('unknown');
    5656        }
     57    });
     58
     59    jQuery(document).on('keyup', '#businesspay_holder_name', function(){
     60            jQuery("#businesspay_holder_name").val(jQuery("#businesspay_holder_name").val().toUpperCase());
    5761    });
    5862
  • 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("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());
     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  
    1111        $name_in_invoice, $invoice_prefix, $installments, $installments_minimum, $installments_maximum,
    1212        $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;
    1818
    1919    public
     
    2626        $this->method_title       = esc_html__( 'BusinessPay', 'woocommerce-businesspay' );
    2727        $this->method_description = esc_html__( 'Accept payments using BusinessPay Gateway.', 'woocommerce-businesspay' );
    28         $this->supports           = array( 'products' );
     28        $this->supports           = array( 'products', 'refunds' );
    2929
    3030        $this->gateway_demo_url       = 'https://apidemo.gate2all.com.br';
     
    7373
    7474        //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' );
    7677        $this->auth_vendor_id            = '1';
    7778        $this->enable_client             = get_option( 'businesspay_enable_client' );
     
    8990        $this->default_session_interval  = '12';
    9091
    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';
    9998
    10099        //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        );
    102105        add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array(
    103106            $this,
     
    112115            'businesspay_admin_panel_antifraud'
    113116        ) );
    114         add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
     117        add_action( 'wp_enqueue_scripts', array(
     118                $this,
     119                'enqueue_scripts'
     120            )
     121        );
    115122        add_action( 'wp_footer', array( $this, 'antifraud_insert_mapper' ) );
    116123
    117124        //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        );
    119130
    120131        //Admin notices
     
    133144
    134145        //Get session Info
    135         $this->get_session_info();
     146        $this->get_session_renew();
    136147
    137148        echo '<table class="businesspay-table">';
     
    354365                'description' => '',
    355366            ),
    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             ),
    363367            'billet_number_days'        => array(
    364368                'title'       => esc_html__( 'Number of Days', 'woocommerce-businesspay' ),
     
    569573    }
    570574
     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    }
    571591
    572592    //GATEWAY CALLS
     
    665685            }
    666686
    667             $response = $this->gateway_api_request( 'POST', '/transactions', $body );
     687            $response = $this->gateway_api_request( 'POST', 'transactions', $body );
    668688
    669689            if ( ! isset( $response->result ) ) {
     
    686706        $result = array( 'result' => 'failure', 'messages' => '' );
    687707        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                }
    696719            }
    697720        } catch ( Exception $e ) {
     
    718741                );
    719742
    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 );
    726746                if ( ! is_wp_error( $response ) ) {
    727747                    $response_json = json_decode( wp_remote_retrieve_body( $response ) );
     
    811831                    update_post_meta( $order_id, '_businesspay-bankslip-payment-amount', $response->payment->bankSlip->paymentAmount );
    812832                }
    813                 $this->set_summary_info( $order );
     833                $this->auth_transaction( $order );
    814834            }
    815835        } catch ( Exception $e ) {
     
    851871        $tid = get_post_meta( $order_id, '_businesspay-transaction-type', true );
    852872        if ( strlen( $tid ) > 0 ) {
     873            delete_post_meta( $order_id, '_businesspay-transaction-id' );
    853874            delete_post_meta( $order_id, '_businesspay-transaction-type' );
    854875            delete_post_meta( $order_id, '_businesspay-transaction-date' );
     
    926947                    break;
    927948                case 9: //CANCELADA
    928                     $result = 'cancelled';
     949                    $result = 'refunded';
    929950                    break;
    930951                case 10: //PENDENTE DE CONFIRMAÇÃO
     
    939960            }
    940961
    941             //Verify billet & transfer payment amount
    942             if ( $result == 'processing' ) {
     962            if ( $result == 'processing' && $this->get_gateway_payment_captured( $response ) ) {
     963                //Verify payment amount
    943964                $paid_wrong = false;
    944965                $paid_total = $this->get_gateway_payment_amount( $response );
     
    9961017                    break;
    9971018                case 9: //CANCELADA
    998                     $result = 'failure';
     1019                    $result = 'success';
    9991020                    break;
    10001021                case 10: //PENDENTE DE CONFIRMAÇÃO
     
    10601081            }
    10611082
    1062             //Verify billet & transfer payment amount
    1063             if ( $result == 'processing' ) {
     1083            if ( $response->status == 6 && $this->get_gateway_payment_captured( $response ) ) {
     1084                //Verify payment amount
    10641085                $paid_wrong = false;
    10651086                $paid_total = $this->get_gateway_payment_amount( $response );
     
    10851106    }
    10861107
     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
    10871147
    10881148    //ANTIFRAUD CALLS
     
    11491209
    11501210    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 );
    11571220        }
    11581221    }
     
    12971360            $url = ( $this->sandbox == 'yes' ) ? $this->antifraud_demo_url . '/api/' . $this->antifraud_demo_version . '/' . $endpoint : $this->antifraud_live_url . '/' . $this->antifraud_live_version . '/' . $endpoint;
    12981361
    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 );
    13001364            $response = wp_safe_remote_post( $url, $payload );
    13011365
     
    13531417            if ( $res_result == 'success' ) {
    13541418                $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
    13561426
    13571427                $analysis = $response->orders[0]->status;
     
    14001470                    break;
    14011471                case 'CAN': //CANCELADO PELO CLIENTE
    1402                     $result = 'cancelled';
     1472                    $result = '';
    14031473                    break;
    14041474                case 'FRD': //FRAUDE CONFIRMADA
     
    15271597    }
    15281598
     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
    15291641
    15301642    //WEBHOOK CALLBACK
     
    15331645        $contents = file_get_contents( "php://input" );
    15341646        $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 ) {
    15471663        $result = false;
    15481664        try {
     
    15511667                if ( $transactionId == $order->get_transaction_id() ) {
    15521668                    $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 );
    15541671                    if ( ! isset( $response->result ) ) {
    15551672                        $this->gateway_insert_order_metadata( $order, $response );
     
    15721689    }
    15731690
    1574     private function antifraud_maybe_consult_status( $order_id, $type ) {
     1691    private function consult_status_antifraud( $order_id, $type ) {
    15751692        $result = false;
    15761693        try {
     
    15791696                if ( $type == 'status' ) {
    15801697                    $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 );
    15821700                    if ( ! isset( $response->result ) ) {
    15831701                        $this->antifraud_insert_order_metadata( $order, $response );
     
    15901708        } catch ( Exception $e ) {
    15911709            $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() );
    15921993        }
    15931994
     
    18012202
    18022203        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;
    18032218    }
    18042219
     
    23562771
    23572772
     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
    23582836    //SETTERS
    23592837
     
    23682846    }
    23692847
    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;
    23732856    }
    23742857
     
    24362919        $expiration = new DateTime( str_replace( 'T', ' ', $value ) );
    24372920        $expiration->modify( '-1 minutes' );
     2921
    24382922        update_option( 'businesspay_antifraud_auth_expiration', $expiration->format( $this->get_date_format() ) );
    24392923        $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_key
    2482                 ),
    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;
    25052924    }
    25062925
     
    26223041
    26233042        if ( $session ) {
    2624             $this->get_session_info();
     3043            $this->get_session_renew();
    26253044        }
    26263045
     
    26313050    }
    26323051
    2633     private function get_session_info() {
     3052    private function get_session_renew() {
    26343053        try {
    26353054            if ( ! empty( $this->authentication_api ) && ! empty( $this->authentication_key ) ) {
    26363055                $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';
    26383057
    26393058                $body = array(
     
    26663085                );
    26673086
    2668                 $this->logger( 'Session Info | Request', $payload );
     3087                $this->logger( 'New Session | Request', $payload );
    26693088
    26703089                $response = wp_safe_remote_post( $action, $payload );
    26713090
    2672                 $this->logger( 'Session Info | Response', $response );
     3091                $this->logger( 'New Session | Response', $response );
    26733092
    26743093                if ( ! is_wp_error( $response ) ) {
     
    26843103                            $this->set_option_auth_last( $today );
    26853104                            $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 );
    26873107                            $this->set_option_auth_interval( $response->auth_interval );
    26883108                            $this->set_option_enable_client( $response->client_enabled );
     
    27013121            }
    27023122        } catch ( Exception $e ) {
    2703             $this->logger( 'Get Session Info Error', $e->getMessage() );
     3123            $this->logger( 'New Session Error', $e->getMessage() );
    27043124        }
    27053125    }
     
    28473267    private function update_order_status( $order, $status, $note ) {
    28483268        if ( $order->get_status() == $status ) {
    2849             $order->add_order_note( $note );
     3269            wc_create_order_note( $this->get_order_id( $order ), $note );
    28503270        } else {
    28513271            $order->update_status( $status, $note );
     
    29383358    }
    29393359
    2940     private function logger( $scope, $msg ) {
     3360    private function logger( $scope, $message ) {
    29413361        if ( $this->debug == 'yes' ) {
    29423362            global $woocommerce;
     
    29483368                }
    29493369            }
    2950             $this->logger->add( 'BusinessPay', $scope . ': ' . print_r( $msg, true ) );
     3370            $this->logger->add( 'BusinessPay', $scope . ': ' . print_r( $message, true ) );
    29513371        }
    29523372    }
  • woo-businesspay/trunk/languages/woocommerce-businesspay-pt_BR.po

    r1977545 r1982294  
    33"Project-Id-Version: WooCommerce BusinessPay\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2018-11-20 16:10+0000\n"
    6 "PO-Revision-Date: 2018-11-20 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"
    77"Last-Translator: webmaster <webmaster@hypelab.com.br>\n"
    88"Language-Team: Português do Brasil\n"
     
    3333
    3434#: templates/businesspay-panel-gateway.php:25
    35 #: includes/woocommerce-businesspay-gateway.php:329
     35#: includes/woocommerce-businesspay-gateway.php:340
    3636msgid "Debit Card"
    3737msgstr "Cartão de débito"
     
    4343
    4444#: templates/businesspay-panel-gateway.php:30
    45 #: includes/woocommerce-businesspay-gateway.php:240
     45#: includes/woocommerce-businesspay-gateway.php:251
    4646msgid "Credit Card"
    4747msgstr "Cartão de crédito"
     
    5050msgid "Unknown Brand"
    5151msgstr "Bandeira desconhecida"
    52 
    53 #: templates/businesspay-panel-gateway.php:38
    54 #: templates/frontend-template.php:95
    55 msgid "In "
    56 msgstr "Em "
    5752
    5853#: templates/businesspay-panel-gateway.php:38
     
    6055msgid "x of "
    6156msgstr "x de "
    62 
    63 #: templates/businesspay-panel-gateway.php:38
    64 #: templates/frontend-template.php:95
    65 msgid " on credit card"
    66 msgstr " no cartão de crédito"
    6757
    6858#: templates/businesspay-panel-gateway.php:42
     
    7969#: templates/businesspay-panel-gateway.php:64
    8070#: templates/frontend-template.php:26
    81 #: includes/woocommerce-businesspay-gateway.php:345
     71#: includes/woocommerce-businesspay-gateway.php:356
    8272msgid "Billet"
    8373msgstr "Boleto"
     
    9282
    9383#: templates/businesspay-panel-gateway.php:103
    94 msgid "Token: "
    95 msgstr "Token:"
     84#: templates/businesspay-panel-antifraud.php:37
     85msgid "ID: "
     86msgstr "ID: "
    9687
    9788#: templates/businesspay-panel-gateway.php:105
    98 #: templates/businesspay-panel-antifraud.php:36
     89#: templates/businesspay-panel-antifraud.php:39
    9990msgid "Date: "
    10091msgstr "Data: "
    10192
    10293#: templates/businesspay-panel-gateway.php:107
    103 #: templates/businesspay-panel-antifraud.php:38
     94#: templates/businesspay-panel-antifraud.php:41
    10495msgid "Status: "
    10596msgstr "Status: "
     
    202193msgstr "depende de um certificado SSL ativo para funcionar!"
    203194
    204 #: templates/businesspay-panel-antifraud.php:33
     195#: templates/businesspay-panel-antifraud.php:25
     196msgid "Not applicable."
     197msgstr "Não aplicável."
     198
     199#: templates/businesspay-panel-antifraud.php:36
    205200msgid "Analysis Information"
    206201msgstr "Dados da Análise"
    207202
    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
    213204msgid "Score: "
    214205msgstr "Score: "
    215206
    216 #: templates/businesspay-panel-antifraud.php:42
     207#: templates/businesspay-panel-antifraud.php:45
    217208msgid "Message: "
    218209msgstr "Mensagem: "
     
    223214
    224215#: templates/frontend-template.php:21
    225 #: includes/woocommerce-businesspay-gateway.php:337
     216#: includes/woocommerce-businesspay-gateway.php:348
    226217msgid "Bank Transfer"
    227218msgstr "Transferência"
     
    259250msgstr "Selecione"
    260251
     252#: templates/frontend-template.php:95
     253msgid "In "
     254msgstr "Em "
     255
     256#: templates/frontend-template.php:95
     257msgid " on credit card"
     258msgstr " no cartão de crédito"
     259
    261260#: templates/frontend-template.php:104
    262261msgid "Card holder document number"
     
    317316msgstr "Receba pagamentos usando o BusinessPay."
    318317
    319 #: includes/woocommerce-businesspay-gateway.php:162
     318#: includes/woocommerce-businesspay-gateway.php:173
    320319msgid "Account Enabled"
    321320msgstr "Conta habilitada."
    322321
    323 #: includes/woocommerce-businesspay-gateway.php:162
     322#: includes/woocommerce-businesspay-gateway.php:173
    324323msgid "Account Disabled"
    325324msgstr "Conta inativa ou inexistente."
    326325
    327 #: includes/woocommerce-businesspay-gateway.php:163
     326#: includes/woocommerce-businesspay-gateway.php:174
    328327msgid "Installation Enabled"
    329328msgstr "Instalação habilitada."
    330329
    331 #: includes/woocommerce-businesspay-gateway.php:163
     330#: includes/woocommerce-businesspay-gateway.php:174
    332331msgid "Installation Disabled"
    333332msgstr "Instalação não registrada."
    334333
    335 #: includes/woocommerce-businesspay-gateway.php:164
     334#: includes/woocommerce-businesspay-gateway.php:175
    336335msgid "Antifraud Enabled"
    337336msgstr "Antifraude habilitado."
    338337
    339 #: includes/woocommerce-businesspay-gateway.php:164
     338#: includes/woocommerce-businesspay-gateway.php:175
    340339msgid "Antifraud Disabled"
    341340msgstr "Antifraude desabilitado."
    342341
    343 #: includes/woocommerce-businesspay-gateway.php:165
     342#: includes/woocommerce-businesspay-gateway.php:176
    344343msgid "Product not configured"
    345344msgstr "Produto não configurado"
    346345
    347 #: includes/woocommerce-businesspay-gateway.php:167
     346#: includes/woocommerce-businesspay-gateway.php:178
    348347msgid "Client Account:"
    349348msgstr "Conta do cliente:"
    350349
    351 #: includes/woocommerce-businesspay-gateway.php:168
     350#: includes/woocommerce-businesspay-gateway.php:179
    352351msgid "Client Installation:"
    353352msgstr "Instalação do cliente:"
    354353
    355 #: includes/woocommerce-businesspay-gateway.php:169
     354#: includes/woocommerce-businesspay-gateway.php:180
    356355msgid "Client Antifraud:"
    357356msgstr "Antifraude do cliente:"
    358357
    359 #: includes/woocommerce-businesspay-gateway.php:170
     358#: includes/woocommerce-businesspay-gateway.php:181
    360359msgid "Antifraud Product:"
    361360msgstr "Produto Antifraude: "
    362361
    363 #: includes/woocommerce-businesspay-gateway.php:183
     362#: includes/woocommerce-businesspay-gateway.php:194
    364363msgid "Antifraud by "
    365364msgstr "Antifraude por "
    366365
    367 #: includes/woocommerce-businesspay-gateway.php:192
     366#: includes/woocommerce-businesspay-gateway.php:203
    368367msgid "BusinessPay Payment Gateway"
    369368msgstr "BusinessPay"
    370369
    371 #: includes/woocommerce-businesspay-gateway.php:197
     370#: includes/woocommerce-businesspay-gateway.php:208
    372371msgid "Enable BusinessPay"
    373372msgstr "Habilita checkout BusinessPay"
    374373
    375 #: includes/woocommerce-businesspay-gateway.php:198
     374#: includes/woocommerce-businesspay-gateway.php:209
    376375msgid "Enable BusinessPay Gateway Plugin"
    377376msgstr "Habilita plugin de pagamentos BusinessPay"
    378377
    379 #: includes/woocommerce-businesspay-gateway.php:199
     378#: includes/woocommerce-businesspay-gateway.php:210
    380379msgid "Enable BusinessPay gateway plugin options."
    381380msgstr "Habilita opções do plugin de pagamentos BusinessPay"
    382381
    383 #: includes/woocommerce-businesspay-gateway.php:205
     382#: includes/woocommerce-businesspay-gateway.php:216
    384383msgid "Title"
    385384msgstr "Título"
    386385
    387 #: includes/woocommerce-businesspay-gateway.php:206
     386#: includes/woocommerce-businesspay-gateway.php:217
    388387msgid "Payment method title seen on the checkout page."
    389388msgstr "Título do método de pagamento visto na página de checkout."
    390389
    391 #: includes/woocommerce-businesspay-gateway.php:207
     390#: includes/woocommerce-businesspay-gateway.php:218
    392391msgid "BusinessPay | Payments via credit card, debit and billet."
    393392msgstr "BusinessPay | Pagamentos via cartão de crédito, débito e boleto."
    394393
    395 #: includes/woocommerce-businesspay-gateway.php:212
     394#: includes/woocommerce-businesspay-gateway.php:223
    396395msgid "Description"
    397396msgstr "Descrição"
    398397
    399 #: includes/woocommerce-businesspay-gateway.php:213
     398#: includes/woocommerce-businesspay-gateway.php:224
    400399msgid "Payment method description seen on the checkout page."
    401400msgstr "Descrição do método de pagamento visto na página de checkout."
    402401
    403 #: includes/woocommerce-businesspay-gateway.php:214
     402#: includes/woocommerce-businesspay-gateway.php:225
    404403msgid "Pay using BusinessPay, a secure experience of online buys."
    405404msgstr "Pague usando BusinessPay, uma experiência segura de compras online."
    406405
    407 #: includes/woocommerce-businesspay-gateway.php:219
     406#: includes/woocommerce-businesspay-gateway.php:230
    408407msgid "Gateway Settings"
    409408msgstr "Configurações do gateway"
    410409
    411 #: includes/woocommerce-businesspay-gateway.php:224
     410#: includes/woocommerce-businesspay-gateway.php:235
    412411msgid "Authentication API"
    413412msgstr "Usuário da API"
    414413
    415 #: includes/woocommerce-businesspay-gateway.php:225
     414#: includes/woocommerce-businesspay-gateway.php:236
    416415msgid "Use your BusinessPay Authentication API"
    417416msgstr "Insira seu usuário da API BusinessPay"
    418417
    419 #: includes/woocommerce-businesspay-gateway.php:232
     418#: includes/woocommerce-businesspay-gateway.php:243
    420419msgid "Authentication Key"
    421420msgstr "Chave da API"
    422421
    423 #: includes/woocommerce-businesspay-gateway.php:233
     422#: includes/woocommerce-businesspay-gateway.php:244
    424423msgid "Use your BusinessPay Authentication Key"
    425424msgstr "Insira sua chave da API BusinessPay"
    426425
    427 #: includes/woocommerce-businesspay-gateway.php:241
     426#: includes/woocommerce-businesspay-gateway.php:252
    428427msgid "Enable credit card payments with BusinessPay"
    429428msgstr "Habilita pagamentos com cartão de crédito"
    430429
    431 #: includes/woocommerce-businesspay-gateway.php:242
     430#: includes/woocommerce-businesspay-gateway.php:253
    432431msgid "Enable credit card payment with BusinessPay on checkout page"
    433432msgstr "Habilita cartão de crédito com BusinessPay na página de checkout"
    434433
    435 #: includes/woocommerce-businesspay-gateway.php:247
     434#: includes/woocommerce-businesspay-gateway.php:258
    436435msgid "Credit Card Settings"
    437436msgstr "Configurações de cartão de crédito"
    438437
    439 #: includes/woocommerce-businesspay-gateway.php:253
     438#: includes/woocommerce-businesspay-gateway.php:264
    440439msgid "Name in Invoice"
    441440msgstr "Nome na fatura"
    442441
    443 #: includes/woocommerce-businesspay-gateway.php:254
     442#: includes/woocommerce-businesspay-gateway.php:265
    444443msgid ""
    445444"Name in Invoice to identify Shop. Its important to avoid gateway chargebacks."
     
    448447"chargebacks no Gateway."
    449448
    450 #: includes/woocommerce-businesspay-gateway.php:261
     449#: includes/woocommerce-businesspay-gateway.php:272
    451450msgid "Invoice Prefix"
    452451msgstr "Prefixo da fatura"
    453452
    454 #: includes/woocommerce-businesspay-gateway.php:262
     453#: includes/woocommerce-businesspay-gateway.php:273
    455454msgid "Shop prefix to identify invoice shop origin"
    456455msgstr "Prefixo da loja para identificar a loja de origem do pedido"
    457456
    458 #: includes/woocommerce-businesspay-gateway.php:268
     457#: includes/woocommerce-businesspay-gateway.php:279
    459458msgid "Installments"
    460459msgstr "Parcelamento"
    461460
    462 #: includes/woocommerce-businesspay-gateway.php:270
     461#: includes/woocommerce-businesspay-gateway.php:281
    463462msgid "Enable Installments"
    464463msgstr "Habilita parcelamento com cartão de crédito"
    465464
    466 #: includes/woocommerce-businesspay-gateway.php:274
     465#: includes/woocommerce-businesspay-gateway.php:285
    467466msgid "Installments Settings"
    468467msgstr "Configurações de parcelamento"
    469468
    470 #: includes/woocommerce-businesspay-gateway.php:279
     469#: includes/woocommerce-businesspay-gateway.php:290
    471470msgid "Minimum Installment"
    472471msgstr "Parcelamento mínimo"
    473472
    474 #: includes/woocommerce-businesspay-gateway.php:281
     473#: includes/woocommerce-businesspay-gateway.php:292
    475474msgid "Indicate the minimum installments."
    476475msgstr "Indica o mínimo de parcelas."
    477476
    478 #: includes/woocommerce-businesspay-gateway.php:300
     477#: includes/woocommerce-businesspay-gateway.php:311
    479478msgid "Maximum Installment"
    480479msgstr "Parcelamento máximo"
    481480
    482 #: includes/woocommerce-businesspay-gateway.php:302
     481#: includes/woocommerce-businesspay-gateway.php:313
    483482msgid "Indicate the Maximum installments."
    484483msgstr "Indica o máximo de parcelas."
    485484
    486 #: includes/woocommerce-businesspay-gateway.php:321
     485#: includes/woocommerce-businesspay-gateway.php:332
    487486msgid "Minimum Value"
    488487msgstr "Valor mínimo"
    489488
    490 #: includes/woocommerce-businesspay-gateway.php:322
     489#: includes/woocommerce-businesspay-gateway.php:333
    491490msgid "Minimum value by installment"
    492491msgstr "Valor mínimo por parcela"
    493492
    494 #: includes/woocommerce-businesspay-gateway.php:330
     493#: includes/woocommerce-businesspay-gateway.php:341
    495494msgid "Enable debit card payments with BusinessPay"
    496495msgstr "Habilita pagamentos por cartão de débito"
    497496
    498 #: includes/woocommerce-businesspay-gateway.php:331
     497#: includes/woocommerce-businesspay-gateway.php:342
    499498msgid "Enable debit card payment on checkout page"
    500499msgstr "Habilita cartão de débito na página de checkout"
    501500
    502 #: includes/woocommerce-businesspay-gateway.php:338
     501#: includes/woocommerce-businesspay-gateway.php:349
    503502msgid "Enable bank transfer payments with BusinessPay"
    504503msgstr "Habilita pagamentos por transferência bancária"
    505504
    506 #: includes/woocommerce-businesspay-gateway.php:339
     505#: includes/woocommerce-businesspay-gateway.php:350
    507506msgid "Enable bank transfer payment on checkout page"
    508507msgstr "Habilita pagamentos por transferência bancária na página de checkout"
    509508
    510 #: includes/woocommerce-businesspay-gateway.php:346
     509#: includes/woocommerce-businesspay-gateway.php:357
    511510msgid "Enable billet payments with BusinessPay"
    512511msgstr "Habilita pagamentos por boleto bancário"
    513512
    514 #: includes/woocommerce-businesspay-gateway.php:347
     513#: includes/woocommerce-businesspay-gateway.php:358
    515514msgid "Enable billet payment on checkout page"
    516515msgstr "Habilita pagamento por boleto na página de checkout"
    517516
    518 #: includes/woocommerce-businesspay-gateway.php:352
     517#: includes/woocommerce-businesspay-gateway.php:363
    519518msgid "Billet Settings"
    520519msgstr "Configurações de boleto"
    521520
    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
    531522msgid "Number of Days"
    532523msgstr "Dias para vencimento"
    533524
    534 #: includes/woocommerce-businesspay-gateway.php:366
     525#: includes/woocommerce-businesspay-gateway.php:370
    535526msgid "Days of expiry of the billet after printed."
    536527msgstr "Dias para expiração do boleto após impresso."
    537528
    538 #: includes/woocommerce-businesspay-gateway.php:373
     529#: includes/woocommerce-businesspay-gateway.php:377
    539530msgid "Instruction Line"
    540531msgstr "Linha de instrução"
    541532
    542 #: includes/woocommerce-businesspay-gateway.php:374
     533#: includes/woocommerce-businesspay-gateway.php:378
    543534msgid "Billet instruction line"
    544535msgstr "Linha de instrução do boleto"
    545536
    546 #: includes/woocommerce-businesspay-gateway.php:379
     537#: includes/woocommerce-businesspay-gateway.php:383
    547538msgid "Tools"
    548539msgstr "Ferramentas"
    549540
    550 #: includes/woocommerce-businesspay-gateway.php:385
     541#: includes/woocommerce-businesspay-gateway.php:389
    551542msgid "BusinessPay Sandbox"
    552543msgstr "Ambiente de testes"
    553544
    554 #: includes/woocommerce-businesspay-gateway.php:386
     545#: includes/woocommerce-businesspay-gateway.php:390
    555546msgid "Enable BusinessPay sandbox mode"
    556547msgstr "Habilita ambiente de testes do BusinessPay"
    557548
    558 #: includes/woocommerce-businesspay-gateway.php:387
     549#: includes/woocommerce-businesspay-gateway.php:391
    559550msgid "Enable BusinessPay Sandbox"
    560551msgstr "Habilita sandbox do BusinessPay"
    561552
    562 #: includes/woocommerce-businesspay-gateway.php:394
     553#: includes/woocommerce-businesspay-gateway.php:398
    563554msgid "Debug"
    564555msgstr "Log de erros"
    565556
    566 #: includes/woocommerce-businesspay-gateway.php:395
     557#: includes/woocommerce-businesspay-gateway.php:399
    567558msgid "Enable logging"
    568559msgstr "Habilitar log de erros do WooCommerce"
    569560
    570 #: includes/woocommerce-businesspay-gateway.php:401
     561#: includes/woocommerce-businesspay-gateway.php:405
    571562msgid "Status"
    572563msgstr "Status"
    573564
    574 #: includes/woocommerce-businesspay-gateway.php:423
     565#: includes/woocommerce-businesspay-gateway.php:427
    575566msgid "Card number must be at least 16 characters."
    576567msgstr "O campo Número do cartão deve conter pelo menos 15 caracteres."
    577568
    578 #: includes/woocommerce-businesspay-gateway.php:426
     569#: includes/woocommerce-businesspay-gateway.php:430
    579570msgid "The Card Number field must be numeric."
    580571msgstr "O campo Número do cartão deve ser numérico."
    581572
    582 #: includes/woocommerce-businesspay-gateway.php:429
     573#: includes/woocommerce-businesspay-gateway.php:433
    583574msgid "Invalid card number."
    584575msgstr "Número de cartão inválido."
    585576
    586 #: includes/woocommerce-businesspay-gateway.php:436
     577#: includes/woocommerce-businesspay-gateway.php:440
    587578msgid "The Name field can not be less than 6 characters."
    588579msgstr "O campo Nome não pode conter menos que 6 caracteres."
    589580
    590 #: includes/woocommerce-businesspay-gateway.php:439
     581#: includes/woocommerce-businesspay-gateway.php:443
    591582msgid "The Name field can not be greater than 25 characters."
    592583msgstr "O campo Nome não pode conter mais que 25 caracteres."
    593584
    594 #: includes/woocommerce-businesspay-gateway.php:442
     585#: includes/woocommerce-businesspay-gateway.php:446
    595586msgid "The Name field can not have numbers."
    596587msgstr "O campo Nome não pode conter números."
    597588
    598 #: includes/woocommerce-businesspay-gateway.php:452
     589#: includes/woocommerce-businesspay-gateway.php:456
    599590msgid "The Month of Expiration field must have 2 digits."
    600591msgstr "O valor do mês de expiração deve conter 2 dígitos."
    601592
    602 #: includes/woocommerce-businesspay-gateway.php:455
     593#: includes/woocommerce-businesspay-gateway.php:459
    603594msgid "The Month of Expiration field must be numeric."
    604595msgstr "O valor do mês de expiração deve ser numérico."
    605596
    606 #: includes/woocommerce-businesspay-gateway.php:458
     597#: includes/woocommerce-businesspay-gateway.php:462
    607598msgid "The Year of Expiration field must be numeric."
    608599msgstr "O valor do ano de expiração deve ser numérico."
    609600
    610 #: includes/woocommerce-businesspay-gateway.php:461
     601#: includes/woocommerce-businesspay-gateway.php:465
    611602msgid "The Year of Expiration field must have 4 digits."
    612603msgstr "O valor do ano de expiração deve conter 4 dígitos."
    613604
    614 #: includes/woocommerce-businesspay-gateway.php:468
    615 #: includes/woocommerce-businesspay-gateway.php:474
     605#: includes/woocommerce-businesspay-gateway.php:472
     606#: includes/woocommerce-businesspay-gateway.php:478
    616607msgid "The CVC field must have 3 or 4 digits."
    617608msgstr "O campo CVC deve conter 3 ou 4 dígitos."
    618609
    619 #: includes/woocommerce-businesspay-gateway.php:471
     610#: includes/woocommerce-businesspay-gateway.php:475
    620611msgid "The CVC field must be numeric."
    621612msgstr "O campo CVC deve ser numérico."
    622613
    623 #: includes/woocommerce-businesspay-gateway.php:481
     614#: includes/woocommerce-businesspay-gateway.php:485
    624615msgid "Please select a installment option."
    625616msgstr "Por favor selecione uma opção de parcelamento."
    626617
    627 #: includes/woocommerce-businesspay-gateway.php:492
     618#: includes/woocommerce-businesspay-gateway.php:496
    628619msgid "The Document field must have 11 digits for CPF or 14 digits for CNPJ."
    629620msgstr ""
     
    631622"dígitos para CNPJ."
    632623
    633 #: includes/woocommerce-businesspay-gateway.php:495
     624#: includes/woocommerce-businesspay-gateway.php:499
    634625msgid "The Document field must be numeric."
    635626msgstr "O campo CPF ou CNPJ do portador deve ser numérico."
    636627
    637 #: includes/woocommerce-businesspay-gateway.php:498
     628#: includes/woocommerce-businesspay-gateway.php:502
    638629msgid "The Document field as CPF is invalid."
    639630msgstr "O valor do campo CPF ou CNPJ do portador como CPF é inválido."
    640631
    641 #: includes/woocommerce-businesspay-gateway.php:501
     632#: includes/woocommerce-businesspay-gateway.php:505
    642633msgid "The Document field as CNPJ is invalid."
    643634msgstr "O valor do campo CPF ou CNPJ do portador como CNPJ é inválido."
    644635
    645 #: includes/woocommerce-businesspay-gateway.php:509
     636#: includes/woocommerce-businesspay-gateway.php:513
    646637msgid "Please select a origin transfer bank option."
    647638msgstr "Por favor selecione o banco de origem da transferência."
    648639
    649 #: includes/woocommerce-businesspay-gateway.php:515
    650 #: includes/woocommerce-businesspay-gateway.php:528
     640#: includes/woocommerce-businesspay-gateway.php:519
     641#: includes/woocommerce-businesspay-gateway.php:532
    651642msgid "The Neighborhood field need to be filled."
    652643msgstr "O campo Bairro é obrigatório."
    653644
    654 #: includes/woocommerce-businesspay-gateway.php:522
     645#: includes/woocommerce-businesspay-gateway.php:526
    655646msgid "Please select a origin billet bank option."
    656647msgstr "Por favor selecione o banco emissor do boleto."
    657648
    658 #: includes/woocommerce-businesspay-gateway.php:546
     649#: includes/woocommerce-businesspay-gateway.php:550
    659650msgid "BusinessPay | Debit Card"
    660651msgstr "BusinessPay | Cartão de débito"
    661652
    662 #: includes/woocommerce-businesspay-gateway.php:548
     653#: includes/woocommerce-businesspay-gateway.php:552
    663654msgid "BusinessPay | Credit Card"
    664655msgstr "BusinessPay | Cartão de crédito"
    665656
    666 #: includes/woocommerce-businesspay-gateway.php:550
     657#: includes/woocommerce-businesspay-gateway.php:554
    667658msgid "BusinessPay | Bank Transfer"
    668659msgstr "BusinessPay | Transferência bancária"
    669660
    670 #: includes/woocommerce-businesspay-gateway.php:552
     661#: includes/woocommerce-businesspay-gateway.php:556
    671662msgid "BusinessPay | Billet"
    672663msgstr "BusinessPay | Boleto"
    673664
    674 #: includes/woocommerce-businesspay-gateway.php:732
     665#: includes/woocommerce-businesspay-gateway.php:583
     666msgid "Failed to refund order. The reason field must be filled."
     667msgstr "Falha ao estornar pedido. O campo razão deve ser preenchido."
     668
     669#: includes/woocommerce-businesspay-gateway.php:586
     670msgid "Failed to refund order. The Amount must be identical to order total."
     671msgstr ""
     672"Falha ao estornar pedido. A quantidade deve ser idêntica ao total do pedido."
     673
     674#: includes/woocommerce-businesspay-gateway.php:754
    675675msgid ""
    676676"The credentials for this virtual store are not valid on the BusinessPay "
     
    678678msgstr "As credenciais desta loja virtual não são válidas neste servidor."
    679679
    680 #: includes/woocommerce-businesspay-gateway.php:735
    681 #: includes/woocommerce-businesspay-gateway.php:1311
     680#: includes/woocommerce-businesspay-gateway.php:757
     681#: includes/woocommerce-businesspay-gateway.php:1377
    682682msgid "Could not receive a valid server response. Please try again."
    683683msgstr ""
     
    685685"novamente."
    686686
    687 #: includes/woocommerce-businesspay-gateway.php:828
     687#: includes/woocommerce-businesspay-gateway.php:850
    688688msgid "BusinessPay Status: "
    689689msgstr "Status BusinessPay: "
    690690
    691 #: includes/woocommerce-businesspay-gateway.php:1022
     691#: includes/woocommerce-businesspay-gateway.php:1045
    692692msgid "Transaction started but not confirmed."
    693693msgstr "Transação iniciada mas não confirmada."
    694694
    695 #: includes/woocommerce-businesspay-gateway.php:1025
     695#: includes/woocommerce-businesspay-gateway.php:1048
    696696msgid "Awating payment."
    697697msgstr "Aguardando pagamento."
    698698
    699 #: includes/woocommerce-businesspay-gateway.php:1028
     699#: includes/woocommerce-businesspay-gateway.php:1051
    700700msgid "Transaction effectivated."
    701701msgstr "Transação efetivada."
    702702
    703 #: includes/woocommerce-businesspay-gateway.php:1031
     703#: includes/woocommerce-businesspay-gateway.php:1054
    704704msgid "Transaction under analysis."
    705705msgstr "Transação em análise."
    706706
    707 #: includes/woocommerce-businesspay-gateway.php:1034
     707#: includes/woocommerce-businesspay-gateway.php:1057
    708708msgid "Transaction expired."
    709709msgstr "Transação expirada."
    710710
    711 #: includes/woocommerce-businesspay-gateway.php:1037
     711#: includes/woocommerce-businesspay-gateway.php:1060
    712712msgid "Transaction authorized."
    713713msgstr "Transação autorizada."
    714714
    715 #: includes/woocommerce-businesspay-gateway.php:1040
     715#: includes/woocommerce-businesspay-gateway.php:1063
    716716msgid "Transaction confirmed."
    717717msgstr "Transação confirmada."
    718718
    719 #: includes/woocommerce-businesspay-gateway.php:1043
     719#: includes/woocommerce-businesspay-gateway.php:1066
    720720msgid "Transaction denied."
    721721msgstr "Transação negada."
    722722
    723 #: includes/woocommerce-businesspay-gateway.php:1046
     723#: includes/woocommerce-businesspay-gateway.php:1069
    724724msgid "Cancellation in progress."
    725725msgstr "Cancelamento em andamento."
    726726
    727 #: includes/woocommerce-businesspay-gateway.php:1049
     727#: includes/woocommerce-businesspay-gateway.php:1072
    728728msgid "Transaction Canceled."
    729729msgstr "Transação cancelada."
    730730
    731 #: includes/woocommerce-businesspay-gateway.php:1052
     731#: includes/woocommerce-businesspay-gateway.php:1075
    732732msgid "Transaction pending of confirmation."
    733733msgstr "Transação pendente de confirmação."
    734734
    735 #: includes/woocommerce-businesspay-gateway.php:1055
     735#: includes/woocommerce-businesspay-gateway.php:1078
    736736msgid "Failure to communicate with the provider."
    737737msgstr "Falha na comunicação com o emissor."
    738738
    739 #: includes/woocommerce-businesspay-gateway.php:1058
     739#: includes/woocommerce-businesspay-gateway.php:1081
    740740msgid "No valid server response."
    741741msgstr "Nenhuma resposta válida do servidor."
    742742
    743 #: includes/woocommerce-businesspay-gateway.php:1077
     743#: includes/woocommerce-businesspay-gateway.php:1100
    744744msgid "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
     745msgstr "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
    748749msgid ""
    749750"The credentials for this virtual store are not valid on the BusinessPay "
     
    753754"novamente em alguns instantes."
    754755
    755 #: includes/woocommerce-businesspay-gateway.php:1354
     756#: includes/woocommerce-businesspay-gateway.php:1420
    756757msgid "Antifraud Status: "
    757758msgstr "Status Antifraude: "
    758759
    759 #: includes/woocommerce-businesspay-gateway.php:1486
     760#: includes/woocommerce-businesspay-gateway.php:1558
    760761msgid ""
    761762"Order was automatically approved according to parameters defined in the "
     
    765766"de aprovação automática."
    766767
    767 #: includes/woocommerce-businesspay-gateway.php:1489
     768#: includes/woocommerce-businesspay-gateway.php:1561
    768769msgid "Order is queued for analysis."
    769770msgstr "Pedido está na fila para análise."
    770771
    771 #: includes/woocommerce-businesspay-gateway.php:1492
     772#: includes/woocommerce-businesspay-gateway.php:1564
    772773msgid "Order manually approved by decision-making of an analyst."
    773774msgstr "Pedido aprovado manualmente através da tomada de decisão do analista."
    774775
    775 #: includes/woocommerce-businesspay-gateway.php:1495
     776#: includes/woocommerce-businesspay-gateway.php:1567
    776777msgid ""
    777778"Order approved automatically by client-established policy or antifraud "
     
    781782"do software antifraude."
    782783
    783 #: includes/woocommerce-businesspay-gateway.php:1498
     784#: includes/woocommerce-businesspay-gateway.php:1570
    784785msgid "Canceled by customer or duplicated order."
    785786msgstr "Cancelado pelo cliente ou pedido duplicado."
    786787
    787 #: includes/woocommerce-businesspay-gateway.php:1501
     788#: includes/woocommerce-businesspay-gateway.php:1573
    788789msgid ""
    789790"Order imputed as fraud confirmed by contact with the card administrator and "
     
    795796"desconhece a compra."
    796797
    797 #: includes/woocommerce-businesspay-gateway.php:1504
     798#: includes/woocommerce-businesspay-gateway.php:1576
    798799msgid "Order imported and not classified Score by the analyzer yet."
    799800msgstr "Pedido importado e não classificado Score ainda pelo analista."
    800801
    801 #: includes/woocommerce-businesspay-gateway.php:1507
     802#: includes/woocommerce-businesspay-gateway.php:1579
    802803msgid ""
    803804"Order Automatically Disapproved by some type of business rule that needs to "
     
    807808"precisa ser aplicada."
    808809
    809 #: includes/woocommerce-businesspay-gateway.php:1510
     810#: includes/woocommerce-businesspay-gateway.php:1582
    810811msgid ""
    811812"Order disapproved without suspicion by lack of contact with the client "
     
    817818"SUS ou Cancelado)."
    818819
    819 #: includes/woocommerce-businesspay-gateway.php:1513
     820#: includes/woocommerce-businesspay-gateway.php:1585
    820821msgid ""
    821822"Order disapproved automatically by policy established by customer or "
     
    825826"software antifraude."
    826827
    827 #: includes/woocommerce-businesspay-gateway.php:1516
     828#: includes/woocommerce-businesspay-gateway.php:1588
    828829msgid ""
    829830"Order automatically approved by policy established by the customer or "
     
    833834"software antifraude."
    834835
    835 #: includes/woocommerce-businesspay-gateway.php:1639
     836#: includes/woocommerce-businesspay-gateway.php:2042
    836837msgid "Woocommerce Order"
    837838msgstr "Pedido do WooCommerce"
    838839
    839 #: includes/woocommerce-businesspay-gateway.php:2974
    840 #: includes/woocommerce-businesspay-gateway.php:2981
     840#: includes/woocommerce-businesspay-gateway.php:3396
     841#: includes/woocommerce-businesspay-gateway.php:3403
    841842msgid "BusinessPay Disabled"
    842843msgstr "BusinessPay desabilitado"
    843844
    844 #: includes/woocommerce-businesspay-gateway.php:2975
     845#: includes/woocommerce-businesspay-gateway.php:3397
    845846msgid "You must enable at least one form of payment."
    846847msgstr "Você precisa habilitar ao menos uma forma de pagamento."
    847848
    848 #: includes/woocommerce-businesspay-gateway.php:2976
     849#: includes/woocommerce-businesspay-gateway.php:3398
    849850msgid "Click here to configure!"
    850851msgstr "Clique aqui para configurar!"
    851852
    852 #: includes/woocommerce-businesspay-gateway.php:2982
     853#: includes/woocommerce-businesspay-gateway.php:3404
    853854#, php-format
    854855msgid ""
  • woo-businesspay/trunk/languages/woocommerce-businesspay.pot

    r1977545 r1982294  
    44"Project-Id-Version: WooCommerce BusinessPay\n"
    55"Report-Msgid-Bugs-To: \n"
    6 "POT-Creation-Date: 2018-11-20 16:10+0000\n"
     6"POT-Creation-Date: 2018-11-29 00:19+0000\n"
    77"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    88"Last-Translator: Gustavo Piucco <gustavopiucco@gmail.com>\n"
     
    3333
    3434#: templates/businesspay-panel-gateway.php:25
    35 #: includes/woocommerce-businesspay-gateway.php:329
     35#: includes/woocommerce-businesspay-gateway.php:340
    3636msgid "Debit Card"
    3737msgstr ""
     
    4343
    4444#: templates/businesspay-panel-gateway.php:30
    45 #: includes/woocommerce-businesspay-gateway.php:240
     45#: includes/woocommerce-businesspay-gateway.php:251
    4646msgid "Credit Card"
    4747msgstr ""
     
    4949#: templates/businesspay-panel-gateway.php:32
    5050msgid "Unknown Brand"
    51 msgstr ""
    52 
    53 #: templates/businesspay-panel-gateway.php:38
    54 #: templates/frontend-template.php:95
    55 msgid "In "
    5651msgstr ""
    5752
     
    5954#: templates/frontend-template.php:95
    6055msgid "x of "
    61 msgstr ""
    62 
    63 #: templates/businesspay-panel-gateway.php:38
    64 #: templates/frontend-template.php:95
    65 msgid " on credit card"
    6656msgstr ""
    6757
     
    7969#: templates/businesspay-panel-gateway.php:64
    8070#: templates/frontend-template.php:26
    81 #: includes/woocommerce-businesspay-gateway.php:345
     71#: includes/woocommerce-businesspay-gateway.php:356
    8272msgid "Billet"
    8373msgstr ""
     
    9282
    9383#: templates/businesspay-panel-gateway.php:103
    94 msgid "Token: "
     84#: templates/businesspay-panel-antifraud.php:37
     85msgid "ID: "
    9586msgstr ""
    9687
    9788#: templates/businesspay-panel-gateway.php:105
    98 #: templates/businesspay-panel-antifraud.php:36
     89#: templates/businesspay-panel-antifraud.php:39
    9990msgid "Date: "
    10091msgstr ""
    10192
    10293#: templates/businesspay-panel-gateway.php:107
    103 #: templates/businesspay-panel-antifraud.php:38
     94#: templates/businesspay-panel-antifraud.php:41
    10495msgid "Status: "
    10596msgstr ""
     
    200191msgstr ""
    201192
    202 #: templates/businesspay-panel-antifraud.php:33
     193#: templates/businesspay-panel-antifraud.php:25
     194msgid "Not applicable."
     195msgstr ""
     196
     197#: templates/businesspay-panel-antifraud.php:36
    203198msgid "Analysis Information"
    204199msgstr ""
    205200
    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
    211202msgid "Score: "
    212203msgstr ""
    213204
    214 #: templates/businesspay-panel-antifraud.php:42
     205#: templates/businesspay-panel-antifraud.php:45
    215206msgid "Message: "
    216207msgstr ""
     
    221212
    222213#: templates/frontend-template.php:21
    223 #: includes/woocommerce-businesspay-gateway.php:337
     214#: includes/woocommerce-businesspay-gateway.php:348
    224215msgid "Bank Transfer"
    225216msgstr ""
     
    257248msgstr ""
    258249
     250#: templates/frontend-template.php:95
     251msgid "In "
     252msgstr ""
     253
     254#: templates/frontend-template.php:95
     255msgid " on credit card"
     256msgstr ""
     257
    259258#: templates/frontend-template.php:104
    260259msgid "Card holder document number"
     
    315314msgstr ""
    316315
    317 #: includes/woocommerce-businesspay-gateway.php:162
     316#: includes/woocommerce-businesspay-gateway.php:173
    318317msgid "Account Enabled"
    319318msgstr ""
    320319
    321 #: includes/woocommerce-businesspay-gateway.php:162
     320#: includes/woocommerce-businesspay-gateway.php:173
    322321msgid "Account Disabled"
    323322msgstr ""
    324323
    325 #: includes/woocommerce-businesspay-gateway.php:163
     324#: includes/woocommerce-businesspay-gateway.php:174
    326325msgid "Installation Enabled"
    327326msgstr ""
    328327
    329 #: includes/woocommerce-businesspay-gateway.php:163
     328#: includes/woocommerce-businesspay-gateway.php:174
    330329msgid "Installation Disabled"
    331330msgstr ""
    332331
    333 #: includes/woocommerce-businesspay-gateway.php:164
     332#: includes/woocommerce-businesspay-gateway.php:175
    334333msgid "Antifraud Enabled"
    335334msgstr ""
    336335
    337 #: includes/woocommerce-businesspay-gateway.php:164
     336#: includes/woocommerce-businesspay-gateway.php:175
    338337msgid "Antifraud Disabled"
    339338msgstr ""
    340339
    341 #: includes/woocommerce-businesspay-gateway.php:165
     340#: includes/woocommerce-businesspay-gateway.php:176
    342341msgid "Product not configured"
    343342msgstr ""
    344343
    345 #: includes/woocommerce-businesspay-gateway.php:167
     344#: includes/woocommerce-businesspay-gateway.php:178
    346345msgid "Client Account:"
    347346msgstr ""
    348347
    349 #: includes/woocommerce-businesspay-gateway.php:168
     348#: includes/woocommerce-businesspay-gateway.php:179
    350349msgid "Client Installation:"
    351350msgstr ""
    352351
    353 #: includes/woocommerce-businesspay-gateway.php:169
     352#: includes/woocommerce-businesspay-gateway.php:180
    354353msgid "Client Antifraud:"
    355354msgstr ""
    356355
    357 #: includes/woocommerce-businesspay-gateway.php:170
     356#: includes/woocommerce-businesspay-gateway.php:181
    358357msgid "Antifraud Product:"
    359358msgstr ""
    360359
    361 #: includes/woocommerce-businesspay-gateway.php:183
     360#: includes/woocommerce-businesspay-gateway.php:194
    362361msgid "Antifraud by "
    363362msgstr ""
    364363
    365 #: includes/woocommerce-businesspay-gateway.php:192
     364#: includes/woocommerce-businesspay-gateway.php:203
    366365msgid "BusinessPay Payment Gateway"
    367366msgstr ""
    368367
    369 #: includes/woocommerce-businesspay-gateway.php:197
     368#: includes/woocommerce-businesspay-gateway.php:208
    370369msgid "Enable BusinessPay"
    371370msgstr ""
    372371
    373 #: includes/woocommerce-businesspay-gateway.php:198
     372#: includes/woocommerce-businesspay-gateway.php:209
    374373msgid "Enable BusinessPay Gateway Plugin"
    375374msgstr ""
    376375
    377 #: includes/woocommerce-businesspay-gateway.php:199
     376#: includes/woocommerce-businesspay-gateway.php:210
    378377msgid "Enable BusinessPay gateway plugin options."
    379378msgstr ""
    380379
    381 #: includes/woocommerce-businesspay-gateway.php:205
     380#: includes/woocommerce-businesspay-gateway.php:216
    382381msgid "Title"
    383382msgstr ""
    384383
    385 #: includes/woocommerce-businesspay-gateway.php:206
     384#: includes/woocommerce-businesspay-gateway.php:217
    386385msgid "Payment method title seen on the checkout page."
    387386msgstr ""
    388387
    389 #: includes/woocommerce-businesspay-gateway.php:207
     388#: includes/woocommerce-businesspay-gateway.php:218
    390389msgid "BusinessPay | Payments via credit card, debit and billet."
    391390msgstr ""
    392391
    393 #: includes/woocommerce-businesspay-gateway.php:212
     392#: includes/woocommerce-businesspay-gateway.php:223
    394393msgid "Description"
    395394msgstr ""
    396395
    397 #: includes/woocommerce-businesspay-gateway.php:213
     396#: includes/woocommerce-businesspay-gateway.php:224
    398397msgid "Payment method description seen on the checkout page."
    399398msgstr ""
    400399
    401 #: includes/woocommerce-businesspay-gateway.php:214
     400#: includes/woocommerce-businesspay-gateway.php:225
    402401msgid "Pay using BusinessPay, a secure experience of online buys."
    403402msgstr ""
    404403
    405 #: includes/woocommerce-businesspay-gateway.php:219
     404#: includes/woocommerce-businesspay-gateway.php:230
    406405msgid "Gateway Settings"
    407406msgstr ""
    408407
    409 #: includes/woocommerce-businesspay-gateway.php:224
     408#: includes/woocommerce-businesspay-gateway.php:235
    410409msgid "Authentication API"
    411410msgstr ""
    412411
    413 #: includes/woocommerce-businesspay-gateway.php:225
     412#: includes/woocommerce-businesspay-gateway.php:236
    414413msgid "Use your BusinessPay Authentication API"
    415414msgstr ""
    416415
    417 #: includes/woocommerce-businesspay-gateway.php:232
     416#: includes/woocommerce-businesspay-gateway.php:243
    418417msgid "Authentication Key"
    419418msgstr ""
    420419
    421 #: includes/woocommerce-businesspay-gateway.php:233
     420#: includes/woocommerce-businesspay-gateway.php:244
    422421msgid "Use your BusinessPay Authentication Key"
    423422msgstr ""
    424423
    425 #: includes/woocommerce-businesspay-gateway.php:241
     424#: includes/woocommerce-businesspay-gateway.php:252
    426425msgid "Enable credit card payments with BusinessPay"
    427426msgstr ""
    428427
    429 #: includes/woocommerce-businesspay-gateway.php:242
     428#: includes/woocommerce-businesspay-gateway.php:253
    430429msgid "Enable credit card payment with BusinessPay on checkout page"
    431430msgstr ""
    432431
    433 #: includes/woocommerce-businesspay-gateway.php:247
     432#: includes/woocommerce-businesspay-gateway.php:258
    434433msgid "Credit Card Settings"
    435434msgstr ""
    436435
    437 #: includes/woocommerce-businesspay-gateway.php:253
     436#: includes/woocommerce-businesspay-gateway.php:264
    438437msgid "Name in Invoice"
    439438msgstr ""
    440439
    441 #: includes/woocommerce-businesspay-gateway.php:254
     440#: includes/woocommerce-businesspay-gateway.php:265
    442441msgid ""
    443442"Name in Invoice to identify Shop. Its important to avoid gateway chargebacks."
    444443msgstr ""
    445444
    446 #: includes/woocommerce-businesspay-gateway.php:261
     445#: includes/woocommerce-businesspay-gateway.php:272
    447446msgid "Invoice Prefix"
    448447msgstr ""
    449448
    450 #: includes/woocommerce-businesspay-gateway.php:262
     449#: includes/woocommerce-businesspay-gateway.php:273
    451450msgid "Shop prefix to identify invoice shop origin"
    452451msgstr ""
    453452
    454 #: includes/woocommerce-businesspay-gateway.php:268
     453#: includes/woocommerce-businesspay-gateway.php:279
    455454msgid "Installments"
    456455msgstr ""
    457456
    458 #: includes/woocommerce-businesspay-gateway.php:270
     457#: includes/woocommerce-businesspay-gateway.php:281
    459458msgid "Enable Installments"
    460459msgstr ""
    461460
    462 #: includes/woocommerce-businesspay-gateway.php:274
     461#: includes/woocommerce-businesspay-gateway.php:285
    463462msgid "Installments Settings"
    464463msgstr ""
    465464
    466 #: includes/woocommerce-businesspay-gateway.php:279
     465#: includes/woocommerce-businesspay-gateway.php:290
    467466msgid "Minimum Installment"
    468467msgstr ""
    469468
    470 #: includes/woocommerce-businesspay-gateway.php:281
     469#: includes/woocommerce-businesspay-gateway.php:292
    471470msgid "Indicate the minimum installments."
    472471msgstr ""
    473472
    474 #: includes/woocommerce-businesspay-gateway.php:300
     473#: includes/woocommerce-businesspay-gateway.php:311
    475474msgid "Maximum Installment"
    476475msgstr ""
    477476
    478 #: includes/woocommerce-businesspay-gateway.php:302
     477#: includes/woocommerce-businesspay-gateway.php:313
    479478msgid "Indicate the Maximum installments."
    480479msgstr ""
    481480
    482 #: includes/woocommerce-businesspay-gateway.php:321
     481#: includes/woocommerce-businesspay-gateway.php:332
    483482msgid "Minimum Value"
    484483msgstr ""
    485484
    486 #: includes/woocommerce-businesspay-gateway.php:322
     485#: includes/woocommerce-businesspay-gateway.php:333
    487486msgid "Minimum value by installment"
    488487msgstr ""
    489488
    490 #: includes/woocommerce-businesspay-gateway.php:330
     489#: includes/woocommerce-businesspay-gateway.php:341
    491490msgid "Enable debit card payments with BusinessPay"
    492491msgstr ""
    493492
    494 #: includes/woocommerce-businesspay-gateway.php:331
     493#: includes/woocommerce-businesspay-gateway.php:342
    495494msgid "Enable debit card payment on checkout page"
    496495msgstr ""
    497496
    498 #: includes/woocommerce-businesspay-gateway.php:338
     497#: includes/woocommerce-businesspay-gateway.php:349
    499498msgid "Enable bank transfer payments with BusinessPay"
    500499msgstr ""
    501500
    502 #: includes/woocommerce-businesspay-gateway.php:339
     501#: includes/woocommerce-businesspay-gateway.php:350
    503502msgid "Enable bank transfer payment on checkout page"
    504503msgstr ""
    505504
    506 #: includes/woocommerce-businesspay-gateway.php:346
     505#: includes/woocommerce-businesspay-gateway.php:357
    507506msgid "Enable billet payments with BusinessPay"
    508507msgstr ""
    509508
    510 #: includes/woocommerce-businesspay-gateway.php:347
     509#: includes/woocommerce-businesspay-gateway.php:358
    511510msgid "Enable billet payment on checkout page"
    512511msgstr ""
    513512
    514 #: includes/woocommerce-businesspay-gateway.php:352
     513#: includes/woocommerce-businesspay-gateway.php:363
    515514msgid "Billet Settings"
    516515msgstr ""
    517516
    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
    527518msgid "Number of Days"
    528519msgstr ""
    529520
    530 #: includes/woocommerce-businesspay-gateway.php:366
     521#: includes/woocommerce-businesspay-gateway.php:370
    531522msgid "Days of expiry of the billet after printed."
    532523msgstr ""
    533524
    534 #: includes/woocommerce-businesspay-gateway.php:373
     525#: includes/woocommerce-businesspay-gateway.php:377
    535526msgid "Instruction Line"
    536527msgstr ""
    537528
    538 #: includes/woocommerce-businesspay-gateway.php:374
     529#: includes/woocommerce-businesspay-gateway.php:378
    539530msgid "Billet instruction line"
    540531msgstr ""
    541532
    542 #: includes/woocommerce-businesspay-gateway.php:379
     533#: includes/woocommerce-businesspay-gateway.php:383
    543534msgid "Tools"
    544535msgstr ""
    545536
    546 #: includes/woocommerce-businesspay-gateway.php:385
     537#: includes/woocommerce-businesspay-gateway.php:389
    547538msgid "BusinessPay Sandbox"
    548539msgstr ""
    549540
    550 #: includes/woocommerce-businesspay-gateway.php:386
     541#: includes/woocommerce-businesspay-gateway.php:390
    551542msgid "Enable BusinessPay sandbox mode"
    552543msgstr ""
    553544
    554 #: includes/woocommerce-businesspay-gateway.php:387
     545#: includes/woocommerce-businesspay-gateway.php:391
    555546msgid "Enable BusinessPay Sandbox"
    556547msgstr ""
    557548
    558 #: includes/woocommerce-businesspay-gateway.php:394
     549#: includes/woocommerce-businesspay-gateway.php:398
    559550msgid "Debug"
    560551msgstr ""
    561552
    562 #: includes/woocommerce-businesspay-gateway.php:395
     553#: includes/woocommerce-businesspay-gateway.php:399
    563554msgid "Enable logging"
    564555msgstr ""
    565556
    566 #: includes/woocommerce-businesspay-gateway.php:401
     557#: includes/woocommerce-businesspay-gateway.php:405
    567558msgid "Status"
    568559msgstr ""
    569560
    570 #: includes/woocommerce-businesspay-gateway.php:423
     561#: includes/woocommerce-businesspay-gateway.php:427
    571562msgid "Card number must be at least 16 characters."
    572563msgstr ""
    573564
    574 #: includes/woocommerce-businesspay-gateway.php:426
     565#: includes/woocommerce-businesspay-gateway.php:430
    575566msgid "The Card Number field must be numeric."
    576567msgstr ""
    577568
    578 #: includes/woocommerce-businesspay-gateway.php:429
     569#: includes/woocommerce-businesspay-gateway.php:433
    579570msgid "Invalid card number."
    580571msgstr ""
    581572
    582 #: includes/woocommerce-businesspay-gateway.php:436
     573#: includes/woocommerce-businesspay-gateway.php:440
    583574msgid "The Name field can not be less than 6 characters."
    584575msgstr ""
    585576
    586 #: includes/woocommerce-businesspay-gateway.php:439
     577#: includes/woocommerce-businesspay-gateway.php:443
    587578msgid "The Name field can not be greater than 25 characters."
    588579msgstr ""
    589580
    590 #: includes/woocommerce-businesspay-gateway.php:442
     581#: includes/woocommerce-businesspay-gateway.php:446
    591582msgid "The Name field can not have numbers."
    592583msgstr ""
    593584
    594 #: includes/woocommerce-businesspay-gateway.php:452
     585#: includes/woocommerce-businesspay-gateway.php:456
    595586msgid "The Month of Expiration field must have 2 digits."
    596587msgstr ""
    597588
    598 #: includes/woocommerce-businesspay-gateway.php:455
     589#: includes/woocommerce-businesspay-gateway.php:459
    599590msgid "The Month of Expiration field must be numeric."
    600591msgstr ""
    601592
    602 #: includes/woocommerce-businesspay-gateway.php:458
     593#: includes/woocommerce-businesspay-gateway.php:462
    603594msgid "The Year of Expiration field must be numeric."
    604595msgstr ""
    605596
    606 #: includes/woocommerce-businesspay-gateway.php:461
     597#: includes/woocommerce-businesspay-gateway.php:465
    607598msgid "The Year of Expiration field must have 4 digits."
    608599msgstr ""
    609600
    610 #: includes/woocommerce-businesspay-gateway.php:468
    611 #: includes/woocommerce-businesspay-gateway.php:474
     601#: includes/woocommerce-businesspay-gateway.php:472
     602#: includes/woocommerce-businesspay-gateway.php:478
    612603msgid "The CVC field must have 3 or 4 digits."
    613604msgstr ""
    614605
    615 #: includes/woocommerce-businesspay-gateway.php:471
     606#: includes/woocommerce-businesspay-gateway.php:475
    616607msgid "The CVC field must be numeric."
    617608msgstr ""
    618609
    619 #: includes/woocommerce-businesspay-gateway.php:481
     610#: includes/woocommerce-businesspay-gateway.php:485
    620611msgid "Please select a installment option."
    621612msgstr ""
    622613
    623 #: includes/woocommerce-businesspay-gateway.php:492
     614#: includes/woocommerce-businesspay-gateway.php:496
    624615msgid "The Document field must have 11 digits for CPF or 14 digits for CNPJ."
    625616msgstr ""
    626617
    627 #: includes/woocommerce-businesspay-gateway.php:495
     618#: includes/woocommerce-businesspay-gateway.php:499
    628619msgid "The Document field must be numeric."
    629620msgstr ""
    630621
    631 #: includes/woocommerce-businesspay-gateway.php:498
     622#: includes/woocommerce-businesspay-gateway.php:502
    632623msgid "The Document field as CPF is invalid."
    633624msgstr ""
    634625
    635 #: includes/woocommerce-businesspay-gateway.php:501
     626#: includes/woocommerce-businesspay-gateway.php:505
    636627msgid "The Document field as CNPJ is invalid."
    637628msgstr ""
    638629
    639 #: includes/woocommerce-businesspay-gateway.php:509
     630#: includes/woocommerce-businesspay-gateway.php:513
    640631msgid "Please select a origin transfer bank option."
    641632msgstr ""
    642633
    643 #: includes/woocommerce-businesspay-gateway.php:515
    644 #: includes/woocommerce-businesspay-gateway.php:528
     634#: includes/woocommerce-businesspay-gateway.php:519
     635#: includes/woocommerce-businesspay-gateway.php:532
    645636msgid "The Neighborhood field need to be filled."
    646637msgstr ""
    647638
    648 #: includes/woocommerce-businesspay-gateway.php:522
     639#: includes/woocommerce-businesspay-gateway.php:526
    649640msgid "Please select a origin billet bank option."
    650641msgstr ""
    651642
    652 #: includes/woocommerce-businesspay-gateway.php:546
     643#: includes/woocommerce-businesspay-gateway.php:550
    653644msgid "BusinessPay | Debit Card"
    654645msgstr ""
    655646
    656 #: includes/woocommerce-businesspay-gateway.php:548
     647#: includes/woocommerce-businesspay-gateway.php:552
    657648msgid "BusinessPay | Credit Card"
    658649msgstr ""
    659650
    660 #: includes/woocommerce-businesspay-gateway.php:550
     651#: includes/woocommerce-businesspay-gateway.php:554
    661652msgid "BusinessPay | Bank Transfer"
    662653msgstr ""
    663654
    664 #: includes/woocommerce-businesspay-gateway.php:552
     655#: includes/woocommerce-businesspay-gateway.php:556
    665656msgid "BusinessPay | Billet"
    666657msgstr ""
    667658
    668 #: includes/woocommerce-businesspay-gateway.php:732
     659#: includes/woocommerce-businesspay-gateway.php:583
     660msgid "Failed to refund order. The reason field must be filled."
     661msgstr ""
     662
     663#: includes/woocommerce-businesspay-gateway.php:586
     664msgid "Failed to refund order. The Amount must be identical to order total."
     665msgstr ""
     666
     667#: includes/woocommerce-businesspay-gateway.php:754
    669668msgid ""
    670669"The credentials for this virtual store are not valid on the BusinessPay "
     
    672671msgstr ""
    673672
    674 #: includes/woocommerce-businesspay-gateway.php:735
    675 #: includes/woocommerce-businesspay-gateway.php:1311
     673#: includes/woocommerce-businesspay-gateway.php:757
     674#: includes/woocommerce-businesspay-gateway.php:1377
    676675msgid "Could not receive a valid server response. Please try again."
    677676msgstr ""
    678677
    679 #: includes/woocommerce-businesspay-gateway.php:828
     678#: includes/woocommerce-businesspay-gateway.php:850
    680679msgid "BusinessPay Status: "
    681680msgstr ""
    682681
    683 #: includes/woocommerce-businesspay-gateway.php:1022
     682#: includes/woocommerce-businesspay-gateway.php:1045
    684683msgid "Transaction started but not confirmed."
    685684msgstr ""
    686685
    687 #: includes/woocommerce-businesspay-gateway.php:1025
     686#: includes/woocommerce-businesspay-gateway.php:1048
    688687msgid "Awating payment."
    689688msgstr ""
    690689
    691 #: includes/woocommerce-businesspay-gateway.php:1028
     690#: includes/woocommerce-businesspay-gateway.php:1051
    692691msgid "Transaction effectivated."
    693692msgstr ""
    694693
    695 #: includes/woocommerce-businesspay-gateway.php:1031
     694#: includes/woocommerce-businesspay-gateway.php:1054
    696695msgid "Transaction under analysis."
    697696msgstr ""
    698697
    699 #: includes/woocommerce-businesspay-gateway.php:1034
     698#: includes/woocommerce-businesspay-gateway.php:1057
    700699msgid "Transaction expired."
    701700msgstr ""
    702701
    703 #: includes/woocommerce-businesspay-gateway.php:1037
     702#: includes/woocommerce-businesspay-gateway.php:1060
    704703msgid "Transaction authorized."
    705704msgstr ""
    706705
    707 #: includes/woocommerce-businesspay-gateway.php:1040
     706#: includes/woocommerce-businesspay-gateway.php:1063
    708707msgid "Transaction confirmed."
    709708msgstr ""
    710709
    711 #: includes/woocommerce-businesspay-gateway.php:1043
     710#: includes/woocommerce-businesspay-gateway.php:1066
    712711msgid "Transaction denied."
    713712msgstr ""
    714713
    715 #: includes/woocommerce-businesspay-gateway.php:1046
     714#: includes/woocommerce-businesspay-gateway.php:1069
    716715msgid "Cancellation in progress."
    717716msgstr ""
    718717
    719 #: includes/woocommerce-businesspay-gateway.php:1049
     718#: includes/woocommerce-businesspay-gateway.php:1072
    720719msgid "Transaction Canceled."
    721720msgstr ""
    722721
    723 #: includes/woocommerce-businesspay-gateway.php:1052
     722#: includes/woocommerce-businesspay-gateway.php:1075
    724723msgid "Transaction pending of confirmation."
    725724msgstr ""
    726725
    727 #: includes/woocommerce-businesspay-gateway.php:1055
     726#: includes/woocommerce-businesspay-gateway.php:1078
    728727msgid "Failure to communicate with the provider."
    729728msgstr ""
    730729
    731 #: includes/woocommerce-businesspay-gateway.php:1058
     730#: includes/woocommerce-businesspay-gateway.php:1081
    732731msgid "No valid server response."
    733732msgstr ""
    734733
    735 #: includes/woocommerce-businesspay-gateway.php:1077
     734#: includes/woocommerce-businesspay-gateway.php:1100
    736735msgid "payment made less than the value of the order."
    737736msgstr ""
    738737
    739 #: includes/woocommerce-businesspay-gateway.php:1308
     738#: includes/woocommerce-businesspay-gateway.php:1374
     739#: includes/woocommerce-businesspay-gateway.php:1988
    740740msgid ""
    741741"The credentials for this virtual store are not valid on the BusinessPay "
     
    743743msgstr ""
    744744
    745 #: includes/woocommerce-businesspay-gateway.php:1354
     745#: includes/woocommerce-businesspay-gateway.php:1420
    746746msgid "Antifraud Status: "
    747747msgstr ""
    748748
    749 #: includes/woocommerce-businesspay-gateway.php:1486
     749#: includes/woocommerce-businesspay-gateway.php:1558
    750750msgid ""
    751751"Order was automatically approved according to parameters defined in the "
     
    753753msgstr ""
    754754
    755 #: includes/woocommerce-businesspay-gateway.php:1489
     755#: includes/woocommerce-businesspay-gateway.php:1561
    756756msgid "Order is queued for analysis."
    757757msgstr ""
    758758
    759 #: includes/woocommerce-businesspay-gateway.php:1492
     759#: includes/woocommerce-businesspay-gateway.php:1564
    760760msgid "Order manually approved by decision-making of an analyst."
    761761msgstr ""
    762762
    763 #: includes/woocommerce-businesspay-gateway.php:1495
     763#: includes/woocommerce-businesspay-gateway.php:1567
    764764msgid ""
    765765"Order approved automatically by client-established policy or antifraud "
     
    767767msgstr ""
    768768
    769 #: includes/woocommerce-businesspay-gateway.php:1498
     769#: includes/woocommerce-businesspay-gateway.php:1570
    770770msgid "Canceled by customer or duplicated order."
    771771msgstr ""
    772772
    773 #: includes/woocommerce-businesspay-gateway.php:1501
     773#: includes/woocommerce-businesspay-gateway.php:1573
    774774msgid ""
    775775"Order imputed as fraud confirmed by contact with the card administrator and "
     
    778778msgstr ""
    779779
    780 #: includes/woocommerce-businesspay-gateway.php:1504
     780#: includes/woocommerce-businesspay-gateway.php:1576
    781781msgid "Order imported and not classified Score by the analyzer yet."
    782782msgstr ""
    783783
    784 #: includes/woocommerce-businesspay-gateway.php:1507
     784#: includes/woocommerce-businesspay-gateway.php:1579
    785785msgid ""
    786786"Order Automatically Disapproved by some type of business rule that needs to "
     
    788788msgstr ""
    789789
    790 #: includes/woocommerce-businesspay-gateway.php:1510
     790#: includes/woocommerce-businesspay-gateway.php:1582
    791791msgid ""
    792792"Order disapproved without suspicion by lack of contact with the client "
     
    795795msgstr ""
    796796
    797 #: includes/woocommerce-businesspay-gateway.php:1513
     797#: includes/woocommerce-businesspay-gateway.php:1585
    798798msgid ""
    799799"Order disapproved automatically by policy established by customer or "
     
    801801msgstr ""
    802802
    803 #: includes/woocommerce-businesspay-gateway.php:1516
     803#: includes/woocommerce-businesspay-gateway.php:1588
    804804msgid ""
    805805"Order automatically approved by policy established by the customer or "
     
    807807msgstr ""
    808808
    809 #: includes/woocommerce-businesspay-gateway.php:1639
     809#: includes/woocommerce-businesspay-gateway.php:2042
    810810msgid "Woocommerce Order"
    811811msgstr ""
    812812
    813 #: includes/woocommerce-businesspay-gateway.php:2974
    814 #: includes/woocommerce-businesspay-gateway.php:2981
     813#: includes/woocommerce-businesspay-gateway.php:3396
     814#: includes/woocommerce-businesspay-gateway.php:3403
    815815msgid "BusinessPay Disabled"
    816816msgstr ""
    817817
    818 #: includes/woocommerce-businesspay-gateway.php:2975
     818#: includes/woocommerce-businesspay-gateway.php:3397
    819819msgid "You must enable at least one form of payment."
    820820msgstr ""
    821821
    822 #: includes/woocommerce-businesspay-gateway.php:2976
     822#: includes/woocommerce-businesspay-gateway.php:3398
    823823msgid "Click here to configure!"
    824824msgstr ""
    825825
    826 #: includes/woocommerce-businesspay-gateway.php:2982
     826#: includes/woocommerce-businesspay-gateway.php:3404
    827827#, php-format
    828828msgid ""
  • woo-businesspay/trunk/readme.txt

    r1977545 r1982294  
    1313
    1414== 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.
     15A [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.
     16Gostou desse plugin? Ajude a comunidade fazendo uma avaliação ;)
     17Sugestões serão sempre bem-vindas.
    1618
    1719= 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.
     20Usar a BusinessPay é a melhor maneira de vender no Brasil usando o WooCommerce. Oferecemos as melhores taxas do mercado e modelo de antecipação diferenciados.
     21A 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.
     22Na 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.
     23Atravé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.
    2124Este 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ê.
    2225
    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);
    2831
    2932Saiba mais em [ClearSale para E-Commerce](https://br.clear.sale/antifraude/ecommerce).
    3033
    31 Solicite a abertura de sua conta em [www.businesspay.com.br](https://www.businesspay.com.br).
     34Solicite a abertura de sua conta e começe já em [www.businesspay.com.br](https://www.businesspay.com.br).
    3235
    33 = Para Compradores =
    34 Para o comprador, oferecemos a melhor experiência de compra, com facilidade de uso e segurança sempre.
    35 Oferecemos também um cartão visual na página de finalização do pedido para facilitar a inserção dos dados do cartão.
     36= Para Consumidores =
     37Para 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.
     38O layout oferece cartão visual interativo na página de finalização do pedido para facilitar a inserção dos dados do cartão.
    3639
    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;
    3942* Cartão de débito;
    4043* Boleto Bancário via Bradesco ou Itaú;
     
    5053* JCB;
    5154* Mastercard;
     55* Mastercard Maestro;
    5256* Visa;
     57* Visa Electron;
    5358
    5459= Compatibilidade =
    5560O 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.
     61O plugin é compatível também com visualizações de tela em smartphones e tablets.
    5862
    5963== Antifraude ==
     
    6973
    7074== Screenshots ==
    71 1. WooCommerce BusinessPay com Visual Card habilitado na página de finalização do pedido.
     751. WooCommerce BusinessPay no modo crédito ou débito com Visual Card habilitado na página de finalização do pedido.
    72762. Simulação da inserção de um cartão de crédito Visa com WooCommerce Visual Card habilitado.
    73773. Simulação da digitação do código CVV no verso do cartão com WooCommerce Visual Card habilitado.
     784. Modo de visualização de transferência bancária.
     795. Modo de visualização de boleto.
     806. 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).
     817. Opção de cancelamento (estorno) do pedido na página de edição do pedido do WooCommerce (Painel administrativo).
    7482
    7583== 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
    7696= O plugin funciona com o antifraude desabilitado? =
    7797* Sim, mas os pagamentos serão capturados automaticamente, sem possibilidade de verificação manual por enquanto.
     
    81101
    82102== 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.
    90109
    91110== 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
    92118= 1.0.6 - 2018/11/20 =
    93119* Add | Inserted Default Authentication Key and API to sandbox mode.
  • woo-businesspay/trunk/templates/businesspay-panel-antifraud.php

    r1977545 r1982294  
    2020            $af_transaction_date = $af_transaction_date->format( 'd/m/Y ' . esc_html__( '\a\t', 'woocommerce-businesspay' ) . ' H:i:s' );
    2121
    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 );
    2323            $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 );
    2528
    2629            ?>
     
    4043                    <strong><?php esc_html_e( 'Score: ', 'woocommerce-businesspay' ); ?></strong><?php echo $af_score; ?>
    4144                    <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; ?>
    4346                    <br/>
    4447                </p>
  • woo-businesspay/trunk/templates/businesspay-panel-gateway.php

    r1977545 r1982294  
    3636                    $bp_current_installment_value = $bp_order_value / $bp_installments;
    3737                    $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;
    3939
    4040                    break;
     
    101101                <p>
    102102                    <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; ?>
    104104                    <br/>
    105105                    <strong><?php esc_html_e( 'Date: ', 'woocommerce-businesspay' ); ?></strong><?php echo $bp_transaction_date; ?>
  • woo-businesspay/trunk/woocommerce-businesspay.php

    r1977545 r1982294  
    66 * Author:                  BusinessPay
    77 * Author URI:              https://www.businesspay.com.br/
    8  * Version:                 1.0.6
     8 * Version:                 1.0.7
    99 * Text Domain:             woocommerce-businesspay
    1010 * Domain Path:             /languages
     
    1919
    2020class WC_BusinessPay {
    21     const VERSION = '1.0.6';
     21    const VERSION = '1.0.7';
    2222    const VERSION_MIN_PHP = '5.4';
    2323    const VERSION_MIN_WP = '4.7';
     
    8787
    8888
    89 
    9089    //NOTICES
    9190
Note: See TracChangeset for help on using the changeset viewer.