Version Description
2015/12/21 =
Adicionado suporte a compras com CNPJ.
Melhorado o checkout transparente quando usado o tema Storefront.
Adicionada opes para token e e-mail de sandbox.
Download this release
Release Info
Developer | claudiosanches |
Plugin | WooCommerce PagSeguro |
Version | 2.11.0 |
Comparing to | |
See all releases |
Code changes from version 2.10.3 to 2.11.0
- assets/css/transparent-checkout.css +29 -8
- assets/css/transparent-checkout.min.css +1 -1
- assets/js/admin.js +37 -8
- assets/js/admin.min.js +1 -1
- includes/admin/views/html-admin-help-message.php +17 -0
- includes/admin/views/html-admin-page.php +38 -0
- includes/{views → admin/views}/html-notice-currency-not-supported.php +2 -0
- includes/{views → admin/views}/html-notice-email-missing.php +2 -0
- includes/admin/views/html-notice-missing-ecfb.php +35 -0
- includes/admin/views/html-notice-missing-woocommerce.php +35 -0
- includes/{views → admin/views}/html-notice-token-missing.php +2 -0
- includes/class-wc-pagseguro-api.php +150 -156
- includes/class-wc-pagseguro-gateway.php +100 -108
- includes/class-wc-pagseguro-xml.php +58 -15
- includes/views/html-admin-page.php +0 -25
- includes/views/html-notice-ecfb-missing.php +0 -21
- includes/views/html-receipt-page-error.php +19 -0
- languages/woocommerce-pagseguro-pt_BR.mo +0 -0
- languages/woocommerce-pagseguro-pt_BR.po +0 -818
- languages/woocommerce-pagseguro.pot +260 -216
- readme.txt +25 -229
- templates/transparent-checkout-form.php +10 -10
- wc-pagseguro.php +7 -1
- woocommerce-pagseguro.php +146 -131
assets/css/transparent-checkout.css
CHANGED
@@ -33,6 +33,8 @@
|
|
33 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,
|
34 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li {
|
35 |
border-color: transparent transparent #bbb;
|
|
|
|
|
36 |
border-style: solid;
|
37 |
border-width: 1px;
|
38 |
display: block;
|
@@ -40,8 +42,11 @@
|
|
40 |
list-style: none;
|
41 |
margin: 0;
|
42 |
padding: 0;
|
43 |
-
|
44 |
-
|
|
|
|
|
|
|
45 |
}
|
46 |
|
47 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods label,
|
@@ -68,12 +73,13 @@
|
|
68 |
|
69 |
.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form li,
|
70 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form li {
|
|
|
71 |
display: block;
|
72 |
float: left;
|
73 |
list-style: none;
|
74 |
-
width: 130px;
|
75 |
margin: 0;
|
76 |
padding: 0;
|
|
|
77 |
}
|
78 |
|
79 |
.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form label,
|
@@ -152,16 +158,33 @@
|
|
152 |
width: 51px;
|
153 |
}
|
154 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
/* Responsive styles */
|
156 |
@media screen and (max-width: 500px) {
|
157 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,
|
158 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li {
|
159 |
border: none;
|
|
|
|
|
160 |
float: none;
|
161 |
margin: 0;
|
162 |
padding: 0;
|
163 |
-
-webkit-border-radius: 0;
|
164 |
-
border-radius: 0;
|
165 |
}
|
166 |
|
167 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,
|
@@ -174,12 +197,10 @@
|
|
174 |
}
|
175 |
|
176 |
.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,
|
177 |
-
.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,
|
178 |
.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last,
|
|
|
179 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last {
|
180 |
float: none;
|
181 |
width: 96%;
|
182 |
}
|
183 |
-
|
184 |
-
|
185 |
}
|
33 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,
|
34 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li {
|
35 |
border-color: transparent transparent #bbb;
|
36 |
+
border-radius: 4px 4px 0 0;
|
37 |
+
-webkit-border-radius: 4px 4px 0 0;
|
38 |
border-style: solid;
|
39 |
border-width: 1px;
|
40 |
display: block;
|
42 |
list-style: none;
|
43 |
margin: 0;
|
44 |
padding: 0;
|
45 |
+
}
|
46 |
+
|
47 |
+
.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li,
|
48 |
+
.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li {
|
49 |
+
padding: 5px !important;
|
50 |
}
|
51 |
|
52 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods label,
|
73 |
|
74 |
.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form li,
|
75 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form li {
|
76 |
+
border: none;
|
77 |
display: block;
|
78 |
float: left;
|
79 |
list-style: none;
|
|
|
80 |
margin: 0;
|
81 |
padding: 0;
|
82 |
+
width: 130px;
|
83 |
}
|
84 |
|
85 |
.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form label,
|
158 |
width: 51px;
|
159 |
}
|
160 |
|
161 |
+
.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,
|
162 |
+
.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field,
|
163 |
+
.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,
|
164 |
+
.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field,
|
165 |
+
.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,
|
166 |
+
.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field,
|
167 |
+
.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,
|
168 |
+
.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field {
|
169 |
+
float: none;
|
170 |
+
width: 100%;
|
171 |
+
}
|
172 |
+
|
173 |
+
.woocommerce-pagseguro-form-storefront .woocommerce-error ul {
|
174 |
+
margin: 0;
|
175 |
+
padding: 0;
|
176 |
+
}
|
177 |
+
|
178 |
/* Responsive styles */
|
179 |
@media screen and (max-width: 500px) {
|
180 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,
|
181 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li {
|
182 |
border: none;
|
183 |
+
-webkit-border-radius: 0;
|
184 |
+
border-radius: 0;
|
185 |
float: none;
|
186 |
margin: 0;
|
187 |
padding: 0;
|
|
|
|
|
188 |
}
|
189 |
|
190 |
.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,
|
197 |
}
|
198 |
|
199 |
.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,
|
|
|
200 |
.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last,
|
201 |
+
.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,
|
202 |
.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last {
|
203 |
float: none;
|
204 |
width: 96%;
|
205 |
}
|
|
|
|
|
206 |
}
|
assets/css/transparent-checkout.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
#pagseguro-payment-form{display:none}#pagseguro-bank-transfer-form ul:after,#pagseguro-bank-transfer-form ul:before,#pagseguro-payment-methods:after,#pagseguro-payment-methods:before{content:" ";display:table}#pagseguro-bank-transfer-form ul:after,#pagseguro-payment-methods:after{clear:both}#pagseguro-bank-transfer-form ul,#pagseguro-payment-methods{list-style:none;margin:0 0 10px;padding:0}
|
1 |
+
#pagseguro-bank-transfer-form ul input[type=radio],#pagseguro-payment-form,#pagseguro-payment-methods input[type=radio]{display:none}#pagseguro-bank-transfer-form ul:after,#pagseguro-bank-transfer-form ul:before,#pagseguro-payment-methods:after,#pagseguro-payment-methods:before{content:" ";display:table}#pagseguro-bank-transfer-form ul:after,#pagseguro-payment-methods:after{clear:both}#pagseguro-bank-transfer-form ul,#pagseguro-payment-methods{list-style:none;margin:0 0 10px;padding:0}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li{border-color:transparent transparent #bbb;border-radius:4px 4px 0 0;-webkit-border-radius:4px 4px 0 0;border-style:solid;border-width:1px;display:block;float:left;list-style:none;margin:0;padding:0}.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront #pagseguro-payment-methods li{padding:5px!important}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods label,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods label{cursor:pointer;display:block;font-weight:700;margin:0;padding:5px 10px}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li.active{border-color:#bbb #bbb transparent;border-style:solid;border-width:1px}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form p,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form p{margin-bottom:.5em}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form li,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form li{border:none;display:block;float:left;list-style:none;margin:0;padding:0;width:130px}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form label,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form label{cursor:pointer;display:block;font-weight:700;margin:0;padding:5px 10px;text-align:center}.woocommerce #payment ul.payment_methods li #pagseguro-bank-transfer-form i,.woocommerce-page #payment ul.payment_methods li #pagseguro-bank-transfer-form i{background-color:transparent;background-image:url(../images/transparent-checkout-icons.png);background-repeat:no-repeat;display:block;height:51px;margin:0 auto;width:51px}#pagseguro-icon-bradesco{background-position:0 -51px}#pagseguro-icon-itau{background-position:-204px -51px}#pagseguro-icon-bancodobrasil{background-position:-51px -51px}#pagseguro-icon-banrisul{background-position:-102px -51px}#pagseguro-icon-hsbc{background-position:-153px -51px}#pagseguro-bank-transfer-form li.active #pagseguro-icon-bradesco,#pagseguro-icon-bradesco:hover{background-position:0 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-itau,#pagseguro-icon-itau:hover{background-position:-204px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-bancodobrasil,#pagseguro-icon-bancodobrasil:hover{background-position:-51px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-banrisul,#pagseguro-icon-banrisul:hover{background-position:-102px 0}#pagseguro-bank-transfer-form li.active #pagseguro-icon-hsbc,#pagseguro-icon-hsbc:hover{background-position:-153px 0}#pagseguro-icon-ticket{background:url(../images/transparent-checkout-icons.png) top right no-repeat;display:block;float:left;height:51px;margin:0 10px 5px 0;width:51px}.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,.woocommerce #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-cpf-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-holder-name-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-installments-field,.woocommerce-page #payment ul.payment_methods li .woocommerce-pagseguro-form-storefront p#pagseguro-card-number-field{float:none;width:100%}.woocommerce-pagseguro-form-storefront .woocommerce-error ul{margin:0;padding:0}@media screen and (max-width:500px){.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li{border:none;-webkit-border-radius:0;border-radius:0;float:none;margin:0;padding:0}.woocommerce #payment ul.payment_methods li #pagseguro-payment-methods li.active,.woocommerce-page #payment ul.payment_methods li #pagseguro-payment-methods li.active{border:none}#pagseguro-payment-methods input[type=radio]{display:inline}.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,.woocommerce #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last,.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-first,.woocommerce-page #payment ul.payment_methods li #pagseguro-credit-card-form p.form-row.form-row-last{float:none;width:96%}}
|
assets/js/admin.js
CHANGED
@@ -6,25 +6,28 @@
|
|
6 |
/**
|
7 |
* Switch transparent checkout options display basead in payment type.
|
8 |
*
|
9 |
-
* @param
|
10 |
*/
|
11 |
function pagSeguroSwitchTCOptions( method ) {
|
12 |
-
var fields
|
|
|
13 |
|
14 |
if ( 'transparent' === method ) {
|
15 |
fields.show();
|
|
|
16 |
} else {
|
17 |
fields.hide();
|
|
|
18 |
}
|
19 |
}
|
20 |
|
21 |
/**
|
22 |
* Switch banking ticket message display.
|
23 |
*
|
24 |
-
* @param
|
25 |
*/
|
26 |
function pagSeguroSwitchOptions( checked ) {
|
27 |
-
var fields = $( '#
|
28 |
|
29 |
if ( checked ) {
|
30 |
fields.show();
|
@@ -33,17 +36,43 @@
|
|
33 |
}
|
34 |
}
|
35 |
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
|
38 |
$( 'body' ).on( 'change', '#woocommerce_pagseguro_method', function () {
|
39 |
pagSeguroSwitchTCOptions( $( this ).val() );
|
40 |
-
});
|
41 |
|
42 |
pagSeguroSwitchOptions( $( '#woocommerce_pagseguro_tc_ticket' ).is( ':checked' ) );
|
43 |
-
|
44 |
-
$( 'body' ).on( 'click', '#woocommerce_pagseguro_tc_ticket', function () {
|
45 |
pagSeguroSwitchOptions( $( this ).is( ':checked' ) );
|
46 |
});
|
|
|
|
|
|
|
|
|
|
|
47 |
});
|
48 |
|
49 |
}( jQuery ));
|
6 |
/**
|
7 |
* Switch transparent checkout options display basead in payment type.
|
8 |
*
|
9 |
+
* @param {String} method
|
10 |
*/
|
11 |
function pagSeguroSwitchTCOptions( method ) {
|
12 |
+
var fields = $( '#woocommerce_pagseguro_tc_credit' ).closest( '.form-table' ),
|
13 |
+
heading = fields.prev( 'h3' );
|
14 |
|
15 |
if ( 'transparent' === method ) {
|
16 |
fields.show();
|
17 |
+
heading.show();
|
18 |
} else {
|
19 |
fields.hide();
|
20 |
+
heading.hide();
|
21 |
}
|
22 |
}
|
23 |
|
24 |
/**
|
25 |
* Switch banking ticket message display.
|
26 |
*
|
27 |
+
* @param {String} checked
|
28 |
*/
|
29 |
function pagSeguroSwitchOptions( checked ) {
|
30 |
+
var fields = $( '#woocommerce_pagseguro_tc_ticket_message' ).closest( 'tr' );
|
31 |
|
32 |
if ( checked ) {
|
33 |
fields.show();
|
36 |
}
|
37 |
}
|
38 |
|
39 |
+
/**
|
40 |
+
* Awitch user data for sandbox and production.
|
41 |
+
*
|
42 |
+
* @param {String} checked
|
43 |
+
*/
|
44 |
+
function pagSeguroSwitchUserData( checked ) {
|
45 |
+
var email = $( '#woocommerce_pagseguro_email' ).closest( 'tr' ),
|
46 |
+
token = $( '#woocommerce_pagseguro_token' ).closest( 'tr' ),
|
47 |
+
sandboxEmail = $( '#woocommerce_pagseguro_sandbox_email' ).closest( 'tr' ),
|
48 |
+
sandboxToken = $( '#woocommerce_pagseguro_sandbox_token' ).closest( 'tr' );
|
49 |
+
|
50 |
+
if ( checked ) {
|
51 |
+
email.hide();
|
52 |
+
token.hide();
|
53 |
+
sandboxEmail.show();
|
54 |
+
sandboxToken.show();
|
55 |
+
} else {
|
56 |
+
email.show();
|
57 |
+
token.show();
|
58 |
+
sandboxEmail.hide();
|
59 |
+
sandboxToken.hide();
|
60 |
+
}
|
61 |
+
}
|
62 |
|
63 |
$( 'body' ).on( 'change', '#woocommerce_pagseguro_method', function () {
|
64 |
pagSeguroSwitchTCOptions( $( this ).val() );
|
65 |
+
}).change();
|
66 |
|
67 |
pagSeguroSwitchOptions( $( '#woocommerce_pagseguro_tc_ticket' ).is( ':checked' ) );
|
68 |
+
$( 'body' ).on( 'change', '#woocommerce_pagseguro_tc_ticket', function () {
|
|
|
69 |
pagSeguroSwitchOptions( $( this ).is( ':checked' ) );
|
70 |
});
|
71 |
+
|
72 |
+
pagSeguroSwitchUserData( $( '#woocommerce_pagseguro_sandbox' ).is( ':checked' ) );
|
73 |
+
$( 'body' ).on( 'change', '#woocommerce_pagseguro_sandbox', function () {
|
74 |
+
pagSeguroSwitchUserData( $( this ).is( ':checked' ) );
|
75 |
+
});
|
76 |
});
|
77 |
|
78 |
}( jQuery ));
|
assets/js/admin.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(a){"use strict";a(function(){function b(b){var c=a("#
|
1 |
+
!function(a){"use strict";a(function(){function b(b){var c=a("#woocommerce_pagseguro_tc_credit").closest(".form-table"),d=c.prev("h3");"transparent"===b?(c.show(),d.show()):(c.hide(),d.hide())}function c(b){var c=a("#woocommerce_pagseguro_tc_ticket_message").closest("tr");b?c.show():c.hide()}function d(b){var c=a("#woocommerce_pagseguro_email").closest("tr"),d=a("#woocommerce_pagseguro_token").closest("tr"),e=a("#woocommerce_pagseguro_sandbox_email").closest("tr"),f=a("#woocommerce_pagseguro_sandbox_token").closest("tr");b?(c.hide(),d.hide(),e.show(),f.show()):(c.show(),d.show(),e.hide(),f.hide())}a("body").on("change","#woocommerce_pagseguro_method",function(){b(a(this).val())}).change(),c(a("#woocommerce_pagseguro_tc_ticket").is(":checked")),a("body").on("change","#woocommerce_pagseguro_tc_ticket",function(){c(a(this).is(":checked"))}),d(a("#woocommerce_pagseguro_sandbox").is(":checked")),a("body").on("change","#woocommerce_pagseguro_sandbox",function(){d(a(this).is(":checked"))})})}(jQuery);
|
includes/admin/views/html-admin-help-message.php
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin help message.
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Admin/Settings
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
if ( apply_filters( 'woocommerce_pagseguro_help_message', true ) ) : ?>
|
13 |
+
<div class="updated woocommerce-message">
|
14 |
+
<p><?php echo esc_html( sprintf( __( 'Help us keep the %s plugin free making a donation or rate %s on WordPress.org. Thank you in advance!', 'woocommerce-pagseguro' ), __( 'WooCommerce PagSeguro', 'woocommerce-pagseguro' ), '★★★★★' ) ); ?></p>
|
15 |
+
<p><a href="http://claudiosmweb.com/doacoes/" target="_blank" class="button button-primary"><?php esc_html_e( 'Make a donation', 'woocommerce-pagseguro' ); ?></a> <a href="https://wordpress.org/support/view/plugin-reviews/woocommerce-pagseguro?filter=5#postform" target="_blank" class="button button-secondary"><?php esc_html_e( 'Make a review', 'woocommerce-pagseguro' ); ?></a></p>
|
16 |
+
</div>
|
17 |
+
<?php endif;
|
includes/admin/views/html-admin-page.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Admin options screen.
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Admin/Settings
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
?>
|
13 |
+
|
14 |
+
<h3><?php echo esc_html( $this->method_title ); ?></h3>
|
15 |
+
|
16 |
+
<?php
|
17 |
+
if ( 'yes' == $this->get_option( 'enabled' ) ) {
|
18 |
+
if ( ! $this->using_supported_currency() && ! class_exists( 'woocommerce_wpml' ) ) {
|
19 |
+
include 'html-notice-currency-not-supported.php';
|
20 |
+
}
|
21 |
+
|
22 |
+
if ( '' === $this->get_email() ) {
|
23 |
+
include_once 'html-notice-email-missing.php';
|
24 |
+
}
|
25 |
+
|
26 |
+
if ( '' === $this->get_token() ) {
|
27 |
+
include_once 'html-notice-token-missing.php';
|
28 |
+
}
|
29 |
+
}
|
30 |
+
?>
|
31 |
+
|
32 |
+
<?php echo wpautop( $this->method_description ); ?>
|
33 |
+
|
34 |
+
<?php include 'html-admin-help-message.php'; ?>
|
35 |
+
|
36 |
+
<table class="form-table">
|
37 |
+
<?php $this->generate_settings_html(); ?>
|
38 |
+
</table>
|
includes/{views → admin/views}/html-notice-currency-not-supported.php
RENAMED
@@ -1,6 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Admin View: Notice - Currency not supported.
|
|
|
|
|
4 |
*/
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* Admin View: Notice - Currency not supported.
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Admin/Notices
|
6 |
*/
|
7 |
|
8 |
if ( ! defined( 'ABSPATH' ) ) {
|
includes/{views → admin/views}/html-notice-email-missing.php
RENAMED
@@ -1,6 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Admin View: Notice - Email missing
|
|
|
|
|
4 |
*/
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* Admin View: Notice - Email missing
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Admin/Notices
|
6 |
*/
|
7 |
|
8 |
if ( ! defined( 'ABSPATH' ) ) {
|
includes/admin/views/html-notice-missing-ecfb.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Missing WooCommerce Extra Checkout Fields for Brazil notice
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Admin/Notices
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
$is_installed = false;
|
13 |
+
|
14 |
+
if ( function_exists( 'get_plugins' ) ) {
|
15 |
+
$all_plugins = get_plugins();
|
16 |
+
$is_installed = ! empty( $all_plugins['woocommerce-extra-checkout-fields-for-brazil/woocommerce-extra-checkout-fields-for-brazil.php'] );
|
17 |
+
}
|
18 |
+
|
19 |
+
?>
|
20 |
+
|
21 |
+
<div class="error">
|
22 |
+
<p><strong><?php esc_html_e( 'WooCommerce PagSeguro', 'woocommerce-pagseguro' ); ?></strong> <?php esc_html_e( 'depends on the last version of Extra Checkout Fields for Brazil to work!', 'woocommerce-pagseguro' ); ?></p>
|
23 |
+
|
24 |
+
<?php if ( $is_installed && current_user_can( 'install_plugins' ) ) : ?>
|
25 |
+
<p><a href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=woocommerce-extra-checkout-fields-for-brazil/woocommerce-extra-checkout-fields-for-brazil.php&plugin_status=active' ), 'activate-plugin_woocommerce-extra-checkout-fields-for-brazil/woocommerce-extra-checkout-fields-for-brazil.php' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Active Extra Checkout Fields for Brazil', 'woocommerce-pagseguro' ); ?></a></p>
|
26 |
+
<?php else :
|
27 |
+
if ( current_user_can( 'install_plugins' ) ) {
|
28 |
+
$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=woocommerce-extra-checkout-fields-for-brazil' ), 'install-plugin_woocommerce-extra-checkout-fields-for-brazil' );
|
29 |
+
} else {
|
30 |
+
$url = 'http://wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/';
|
31 |
+
}
|
32 |
+
?>
|
33 |
+
<p><a href="<?php echo esc_url( $url ); ?>" class="button button-primary"><?php esc_html_e( 'Install Extra Checkout Fields for Brazil', 'woocommerce-pagseguro' ); ?></a></p>
|
34 |
+
<?php endif; ?>
|
35 |
+
</div>
|
includes/admin/views/html-notice-missing-woocommerce.php
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Missing WooCommerce notice.
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Admin/Notices
|
6 |
+
*/
|
7 |
+
|
8 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
+
}
|
11 |
+
|
12 |
+
$is_installed = false;
|
13 |
+
|
14 |
+
if ( function_exists( 'get_plugins' ) ) {
|
15 |
+
$all_plugins = get_plugins();
|
16 |
+
$is_installed = ! empty( $all_plugins['woocommerce/woocommerce.php'] );
|
17 |
+
}
|
18 |
+
|
19 |
+
?>
|
20 |
+
|
21 |
+
<div class="error">
|
22 |
+
<p><strong><?php esc_html_e( 'WooCommerce PagSeguro', 'woocommerce-pagseguro' ); ?></strong> <?php esc_html_e( 'depends on the last version of WooCommerce to work!', 'woocommerce-pagseguro' ); ?></p>
|
23 |
+
|
24 |
+
<?php if ( $is_installed && current_user_can( 'install_plugins' ) ) : ?>
|
25 |
+
<p><a href="<?php echo esc_url( wp_nonce_url( self_admin_url( 'plugins.php?action=activate&plugin=woocommerce/woocommerce.php&plugin_status=active' ), 'activate-plugin_woocommerce/woocommerce.php' ) ); ?>" class="button button-primary"><?php esc_html_e( 'Active WooCommerce', 'woocommerce-pagseguro' ); ?></a></p>
|
26 |
+
<?php else :
|
27 |
+
if ( current_user_can( 'install_plugins' ) ) {
|
28 |
+
$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=woocommerce' ), 'install-plugin_woocommerce' );
|
29 |
+
} else {
|
30 |
+
$url = 'http://wordpress.org/plugins/woocommerce/';
|
31 |
+
}
|
32 |
+
?>
|
33 |
+
<p><a href="<?php echo esc_url( $url ); ?>" class="button button-primary"><?php esc_html_e( 'Install WooCommerce', 'woocommerce-pagseguro' ); ?></a></p>
|
34 |
+
<?php endif; ?>
|
35 |
+
</div>
|
includes/{views → admin/views}/html-notice-token-missing.php
RENAMED
@@ -1,6 +1,8 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Admin View: Notice - Token missing
|
|
|
|
|
4 |
*/
|
5 |
|
6 |
if ( ! defined( 'ABSPATH' ) ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* Admin View: Notice - Token missing
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Admin/Notices
|
6 |
*/
|
7 |
|
8 |
if ( ! defined( 'ABSPATH' ) ) {
|
includes/class-wc-pagseguro-api.php
CHANGED
@@ -1,6 +1,17 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
*/
|
5 |
class WC_PagSeguro_API {
|
6 |
|
@@ -14,7 +25,7 @@ class WC_PagSeguro_API {
|
|
14 |
/**
|
15 |
* Constructor.
|
16 |
*
|
17 |
-
* @param WC_PagSeguro_Gateway $gateway
|
18 |
*/
|
19 |
public function __construct( $gateway = null ) {
|
20 |
$this->gateway = $gateway;
|
@@ -50,7 +61,7 @@ class WC_PagSeguro_API {
|
|
50 |
/**
|
51 |
* Get the payment URL.
|
52 |
*
|
53 |
-
* @param string $token
|
54 |
*
|
55 |
* @return string.
|
56 |
*/
|
@@ -94,6 +105,18 @@ class WC_PagSeguro_API {
|
|
94 |
return 'https://ws.' . $this->get_environment() . 'pagseguro.uol.com.br/v2/transactions/notifications/';
|
95 |
}
|
96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
/**
|
98 |
* Money format.
|
99 |
*
|
@@ -108,7 +131,7 @@ class WC_PagSeguro_API {
|
|
108 |
/**
|
109 |
* Sanitize the item description.
|
110 |
*
|
111 |
-
* @param string $description
|
112 |
*
|
113 |
* @return string
|
114 |
*/
|
@@ -119,9 +142,9 @@ class WC_PagSeguro_API {
|
|
119 |
/**
|
120 |
* Get payment name by type.
|
121 |
*
|
122 |
-
* @param int
|
123 |
*
|
124 |
-
* @return string
|
125 |
*/
|
126 |
public function get_payment_name_by_type( $value ) {
|
127 |
$types = array(
|
@@ -130,156 +153,120 @@ class WC_PagSeguro_API {
|
|
130 |
3 => __( 'Bank Transfer', 'woocommerce-pagseguro' ),
|
131 |
4 => __( 'PagSeguro credit', 'woocommerce-pagseguro' ),
|
132 |
5 => __( 'Oi Paggo', 'woocommerce-pagseguro' ),
|
133 |
-
7 => __( 'Account deposit', 'woocommerce-pagseguro' )
|
134 |
);
|
135 |
|
136 |
-
|
137 |
-
return $types[ $value ];
|
138 |
-
} else {
|
139 |
-
return __( 'Unknown', 'woocommerce-pagseguro' );
|
140 |
-
}
|
141 |
}
|
142 |
|
143 |
/**
|
144 |
* Get payment method name.
|
145 |
*
|
146 |
-
* @param int
|
147 |
*
|
148 |
-
* @return string
|
149 |
*/
|
150 |
public function get_payment_method_name( $value ) {
|
151 |
-
$credit = __( 'Credit Card', 'woocommerce-pagseguro' );
|
152 |
-
$ticket = __( 'Billet', 'woocommerce-pagseguro' );
|
153 |
-
$debit = __( 'Bank Transfer', 'woocommerce-pagseguro' );
|
154 |
|
155 |
$methods = array(
|
156 |
-
101 => $credit
|
157 |
-
102 => $credit
|
158 |
-
103 => $credit
|
159 |
-
104 => $credit
|
160 |
-
105 => $credit
|
161 |
-
106 => $credit
|
162 |
-
107 => $credit
|
163 |
-
108 => $credit
|
164 |
-
109 => $credit
|
165 |
-
110 => $credit
|
166 |
-
111 => $credit
|
167 |
-
112 => $credit
|
168 |
-
113 => $credit
|
169 |
-
114 => $credit
|
170 |
-
115 => $credit
|
171 |
-
116 => $credit
|
172 |
-
117 => $credit
|
173 |
-
118 => $credit
|
174 |
-
119 => $credit
|
175 |
-
201 => $ticket
|
176 |
-
202 => $ticket
|
177 |
-
301 => $debit
|
178 |
-
302 => $debit
|
179 |
-
303 => $debit
|
180 |
-
304 => $debit
|
181 |
-
305 => $debit
|
182 |
-
306 => $debit
|
183 |
-
307 => $debit
|
184 |
401 => __( 'PagSeguro credit', 'woocommerce-pagseguro' ),
|
185 |
501 => __( 'Oi Paggo', 'woocommerce-pagseguro' ),
|
186 |
-
701 => __( 'Account deposit', 'woocommerce-pagseguro' )
|
187 |
);
|
188 |
|
189 |
-
|
190 |
-
return $methods[ $value ];
|
191 |
-
} else {
|
192 |
-
return __( 'Unknown', 'woocommerce-pagseguro' );
|
193 |
-
}
|
194 |
}
|
195 |
|
196 |
/**
|
197 |
* Get the paymet method.
|
198 |
*
|
199 |
-
* @param string $method
|
200 |
*
|
201 |
* @return string
|
202 |
*/
|
203 |
public function get_payment_method( $method ) {
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
case 'bank-transfer' :
|
212 |
-
return 'eft';
|
213 |
-
break;
|
214 |
-
|
215 |
-
default:
|
216 |
-
return '';
|
217 |
-
break;
|
218 |
-
}
|
219 |
}
|
220 |
|
221 |
/**
|
222 |
* Get error message.
|
223 |
*
|
224 |
-
* @param int
|
225 |
*
|
226 |
-
* @return string
|
227 |
*/
|
228 |
public function get_error_message( $code ) {
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
break;
|
261 |
-
case 53049 :
|
262 |
-
case 53051 :
|
263 |
-
return __( 'Credit card holder phone is required.', 'woocommerce-pagseguro' );
|
264 |
-
break;
|
265 |
-
case 11020 :
|
266 |
-
case 53028 :
|
267 |
-
return __( 'The address complement is too long, it cannot be more than 40 characters.', 'woocommerce-pagseguro' );
|
268 |
-
break;
|
269 |
-
case 53029 :
|
270 |
-
return __( '<strong>Neighborhood</strong> is a required field.', 'woocommerce-pagseguro' );
|
271 |
-
break;
|
272 |
-
case 53046 :
|
273 |
-
return __( 'Credit card holder CPF invalid.', 'woocommerce-pagseguro' );
|
274 |
-
break;
|
275 |
-
case 53122 :
|
276 |
-
return __( 'Invalid email domain. You must use an email @sandbox.pagseguro.com.br while you are using the PagSeguro Sandbox.', 'woocommerce-pagseguro' );
|
277 |
-
break;
|
278 |
-
|
279 |
-
default:
|
280 |
-
return __( 'An error has occurred while processing your payment, please review your data and try again. Or contact us for assistance.', 'woocommerce-pagseguro' );
|
281 |
-
break;
|
282 |
}
|
|
|
|
|
283 |
}
|
284 |
|
285 |
/**
|
@@ -318,7 +305,7 @@ class WC_PagSeguro_API {
|
|
318 |
protected function do_request( $url, $method = 'POST', $data = array(), $headers = array() ) {
|
319 |
$params = array(
|
320 |
'method' => $method,
|
321 |
-
'timeout' => 60
|
322 |
);
|
323 |
|
324 |
if ( 'POST' == $method && ! empty( $data ) ) {
|
@@ -335,8 +322,8 @@ class WC_PagSeguro_API {
|
|
335 |
/**
|
336 |
* Safe load XML.
|
337 |
*
|
338 |
-
* @param string $source
|
339 |
-
* @param int $options
|
340 |
*
|
341 |
* @return SimpleXMLElement|bool
|
342 |
*/
|
@@ -390,12 +377,12 @@ class WC_PagSeguro_API {
|
|
390 |
$items[] = array(
|
391 |
'description' => $this->sanitize_description( sprintf( __( 'Order %s', 'woocommerce-pagseguro' ), $order->get_order_number() ) ),
|
392 |
'amount' => $this->money_format( $order->get_total() ),
|
393 |
-
'quantity' => 1
|
394 |
);
|
395 |
} else {
|
396 |
|
397 |
// Products.
|
398 |
-
if ( 0 <
|
399 |
foreach ( $order->get_items() as $order_item ) {
|
400 |
if ( $order_item['qty'] ) {
|
401 |
$item_name = $order_item['name'];
|
@@ -413,30 +400,30 @@ class WC_PagSeguro_API {
|
|
413 |
$items[] = array(
|
414 |
'description' => $this->sanitize_description( $item_name ),
|
415 |
'amount' => $this->money_format( $order->get_item_total( $order_item, false ) ),
|
416 |
-
'quantity' => $order_item['qty']
|
417 |
);
|
418 |
}
|
419 |
}
|
420 |
}
|
421 |
|
422 |
// Fees.
|
423 |
-
if ( 0 <
|
424 |
foreach ( $order->get_fees() as $fee ) {
|
425 |
$items[] = array(
|
426 |
'description' => $this->sanitize_description( $fee['name'] ),
|
427 |
'amount' => $this->money_format( $fee['line_total'] ),
|
428 |
-
'quantity' => 1
|
429 |
);
|
430 |
}
|
431 |
}
|
432 |
|
433 |
// Taxes.
|
434 |
-
if ( 0 <
|
435 |
foreach ( $order->get_taxes() as $tax ) {
|
436 |
$items[] = array(
|
437 |
'description' => $this->sanitize_description( $tax['label'] ),
|
438 |
'amount' => $this->money_format( $tax['tax_amount'] + $tax['shipping_tax_amount'] ),
|
439 |
-
'quantity' => 1
|
440 |
);
|
441 |
}
|
442 |
}
|
@@ -457,16 +444,17 @@ class WC_PagSeguro_API {
|
|
457 |
return array(
|
458 |
'items' => $items,
|
459 |
'extra_amount' => $extra_amount,
|
460 |
-
'shipping_cost' => $shipping_cost
|
461 |
);
|
462 |
}
|
463 |
|
464 |
/**
|
465 |
* Get the checkout xml.
|
466 |
*
|
467 |
-
* @param
|
|
|
468 |
*
|
469 |
-
* @return string
|
470 |
*/
|
471 |
protected function get_checkout_xml( $order, $posted ) {
|
472 |
$data = $this->get_order_items( $order );
|
@@ -482,7 +470,7 @@ class WC_PagSeguro_API {
|
|
482 |
$xml->add_extra_amount( $data['extra_amount'] );
|
483 |
|
484 |
// Checks if is localhost... PagSeguro not accept localhost urls!
|
485 |
-
if ( ! in_array( $
|
486 |
$xml->add_redirect_url( $this->gateway->get_return_url( $order ) );
|
487 |
$xml->add_notification_url( WC()->api_request_url( 'WC_PagSeguro_Gateway' ) );
|
488 |
}
|
@@ -499,9 +487,10 @@ class WC_PagSeguro_API {
|
|
499 |
/**
|
500 |
* Get the direct payment xml.
|
501 |
*
|
502 |
-
* @param
|
|
|
503 |
*
|
504 |
-
* @return string
|
505 |
*/
|
506 |
protected function get_payment_xml( $order, $posted ) {
|
507 |
$data = $this->get_order_items( $order );
|
@@ -515,7 +504,7 @@ class WC_PagSeguro_API {
|
|
515 |
$xml->add_method( $method );
|
516 |
$xml->add_sender_data( $order, $hash );
|
517 |
$xml->add_currency( get_woocommerce_currency() );
|
518 |
-
if ( ! in_array( $
|
519 |
$xml->add_notification_url( WC()->api_request_url( 'WC_PagSeguro_Gateway' ) );
|
520 |
}
|
521 |
$xml->add_items( $data['items'] );
|
@@ -528,7 +517,7 @@ class WC_PagSeguro_API {
|
|
528 |
$credit_card_token = isset( $posted['pagseguro_credit_card_hash'] ) ? sanitize_text_field( $posted['pagseguro_credit_card_hash'] ) : '';
|
529 |
$installment = array(
|
530 |
'quantity' => isset( $posted['pagseguro_card_installments'] ) ? absint( $posted['pagseguro_card_installments'] ) : '',
|
531 |
-
'value' => isset( $posted['pagseguro_installment_value'] ) ? $this->money_format( $posted['pagseguro_installment_value'] ) : ''
|
532 |
);
|
533 |
$holder_data = array(
|
534 |
'name' => isset( $posted['pagseguro_card_holder_name'] ) ? sanitize_text_field( $posted['pagseguro_card_holder_name'] ) : '',
|
@@ -565,7 +554,7 @@ class WC_PagSeguro_API {
|
|
565 |
$this->gateway->log->add( $this->gateway->id, 'Requesting token for order ' . $order->get_order_number() . ' with the following data: ' . $xml );
|
566 |
}
|
567 |
|
568 |
-
$url = add_query_arg( array( 'email' => $this->gateway->
|
569 |
$response = $this->do_request( $url, 'POST', $xml, array( 'Content-Type' => 'application/xml;charset=UTF-8' ) );
|
570 |
|
571 |
if ( is_wp_error( $response ) ) {
|
@@ -580,7 +569,7 @@ class WC_PagSeguro_API {
|
|
580 |
return array(
|
581 |
'url' => '',
|
582 |
'data' => '',
|
583 |
-
'error' => array( __( 'Too bad! The email or token from the PagSeguro are invalids my little friend!', 'woocommerce-pagseguro' ) )
|
584 |
);
|
585 |
} else {
|
586 |
try {
|
@@ -604,7 +593,7 @@ class WC_PagSeguro_API {
|
|
604 |
return array(
|
605 |
'url' => $this->get_payment_url( $token ),
|
606 |
'token' => $token,
|
607 |
-
'error' => ''
|
608 |
);
|
609 |
}
|
610 |
|
@@ -616,13 +605,15 @@ class WC_PagSeguro_API {
|
|
616 |
}
|
617 |
|
618 |
foreach ( $body->error as $error_key => $error ) {
|
619 |
-
|
|
|
|
|
620 |
}
|
621 |
|
622 |
return array(
|
623 |
'url' => '',
|
624 |
'token' => '',
|
625 |
-
'error' => $errors
|
626 |
);
|
627 |
}
|
628 |
}
|
@@ -635,7 +626,7 @@ class WC_PagSeguro_API {
|
|
635 |
return array(
|
636 |
'url' => '',
|
637 |
'token' => '',
|
638 |
-
'error' => array( '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . __( 'An error has occurred while processing your payment, please try again. Or contact us for assistance.', 'woocommerce-pagseguro' ) )
|
639 |
);
|
640 |
}
|
641 |
|
@@ -657,7 +648,7 @@ class WC_PagSeguro_API {
|
|
657 |
return array(
|
658 |
'url' => '',
|
659 |
'data' => '',
|
660 |
-
'error' => array( '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . __( 'Please, select a payment method.', 'woocommerce-pagseguro' ) )
|
661 |
);
|
662 |
}
|
663 |
|
@@ -668,7 +659,7 @@ class WC_PagSeguro_API {
|
|
668 |
$this->gateway->log->add( $this->gateway->id, 'Requesting direct payment for order ' . $order->get_order_number() . ' with the following data: ' . $xml );
|
669 |
}
|
670 |
|
671 |
-
$url = add_query_arg( array( 'email' => $this->gateway->
|
672 |
$response = $this->do_request( $url, 'POST', $xml, array( 'Content-Type' => 'application/xml;charset=UTF-8' ) );
|
673 |
|
674 |
if ( is_wp_error( $response ) ) {
|
@@ -683,7 +674,7 @@ class WC_PagSeguro_API {
|
|
683 |
return array(
|
684 |
'url' => '',
|
685 |
'data' => '',
|
686 |
-
'error' => array( __( 'You are not allowed to use the PagSeguro Transparent Checkout. Looks like you neglected to installation guide of this plugin. This is not pretty, do you know?', 'woocommerce-pagseguro' ) )
|
687 |
);
|
688 |
} else {
|
689 |
try {
|
@@ -704,7 +695,7 @@ class WC_PagSeguro_API {
|
|
704 |
return array(
|
705 |
'url' => $this->gateway->get_return_url( $order ),
|
706 |
'data' => $data,
|
707 |
-
'error' => ''
|
708 |
);
|
709 |
}
|
710 |
|
@@ -716,13 +707,15 @@ class WC_PagSeguro_API {
|
|
716 |
}
|
717 |
|
718 |
foreach ( $data->error as $error_key => $error ) {
|
719 |
-
|
|
|
|
|
720 |
}
|
721 |
|
722 |
return array(
|
723 |
'url' => '',
|
724 |
'data' => '',
|
725 |
-
'error' => $errors
|
726 |
);
|
727 |
}
|
728 |
}
|
@@ -735,13 +728,15 @@ class WC_PagSeguro_API {
|
|
735 |
return array(
|
736 |
'url' => '',
|
737 |
'data' => '',
|
738 |
-
'error' => array( '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . __( 'An error has occurred while processing your payment, please try again. Or contact us for assistance.', 'woocommerce-pagseguro' ) )
|
739 |
);
|
740 |
}
|
741 |
|
742 |
/**
|
743 |
* Process the IPN.
|
744 |
*
|
|
|
|
|
745 |
* @return bool|SimpleXMLElement
|
746 |
*/
|
747 |
public function process_ipn_request( $data ) {
|
@@ -769,7 +764,7 @@ class WC_PagSeguro_API {
|
|
769 |
}
|
770 |
|
771 |
// Gets the PagSeguro response.
|
772 |
-
$url = add_query_arg( array( 'email' => $this->gateway->
|
773 |
$response = $this->do_request( $url, 'GET' );
|
774 |
|
775 |
// Check to see if the request was valid.
|
@@ -815,7 +810,7 @@ class WC_PagSeguro_API {
|
|
815 |
$this->gateway->log->add( $this->gateway->id, 'Requesting session ID...' );
|
816 |
}
|
817 |
|
818 |
-
$url = add_query_arg( array( 'email' => $this->gateway->
|
819 |
$response = $this->do_request( $url, 'POST' );
|
820 |
|
821 |
// Check to see if the request was valid.
|
@@ -849,5 +844,4 @@ class WC_PagSeguro_API {
|
|
849 |
|
850 |
return false;
|
851 |
}
|
852 |
-
|
853 |
}
|
1 |
<?php
|
2 |
/**
|
3 |
+
* WooCommerce PagSeguro API class
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Classes/API
|
6 |
+
* @version 2.11.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit;
|
11 |
+
}
|
12 |
+
|
13 |
+
/**
|
14 |
+
* WooCommerce PagSeguro API.
|
15 |
*/
|
16 |
class WC_PagSeguro_API {
|
17 |
|
25 |
/**
|
26 |
* Constructor.
|
27 |
*
|
28 |
+
* @param WC_PagSeguro_Gateway $gateway Payment Gateway instance.
|
29 |
*/
|
30 |
public function __construct( $gateway = null ) {
|
31 |
$this->gateway = $gateway;
|
61 |
/**
|
62 |
* Get the payment URL.
|
63 |
*
|
64 |
+
* @param string $token Payment code.
|
65 |
*
|
66 |
* @return string.
|
67 |
*/
|
105 |
return 'https://ws.' . $this->get_environment() . 'pagseguro.uol.com.br/v2/transactions/notifications/';
|
106 |
}
|
107 |
|
108 |
+
/**
|
109 |
+
* Check if is localhost.
|
110 |
+
*
|
111 |
+
* @return bool
|
112 |
+
*/
|
113 |
+
protected function is_localhost() {
|
114 |
+
$url = home_url( '/' );
|
115 |
+
$home = untrailingslashit( str_replace( array( 'https://', 'http://' ), '', $url ) );
|
116 |
+
|
117 |
+
return in_array( $home, array( 'localhost', '127.0.0.1' ) );
|
118 |
+
}
|
119 |
+
|
120 |
/**
|
121 |
* Money format.
|
122 |
*
|
131 |
/**
|
132 |
* Sanitize the item description.
|
133 |
*
|
134 |
+
* @param string $description Description to be sanitized.
|
135 |
*
|
136 |
* @return string
|
137 |
*/
|
142 |
/**
|
143 |
* Get payment name by type.
|
144 |
*
|
145 |
+
* @param int $value Payment Type number.
|
146 |
*
|
147 |
+
* @return string
|
148 |
*/
|
149 |
public function get_payment_name_by_type( $value ) {
|
150 |
$types = array(
|
153 |
3 => __( 'Bank Transfer', 'woocommerce-pagseguro' ),
|
154 |
4 => __( 'PagSeguro credit', 'woocommerce-pagseguro' ),
|
155 |
5 => __( 'Oi Paggo', 'woocommerce-pagseguro' ),
|
156 |
+
7 => __( 'Account deposit', 'woocommerce-pagseguro' ),
|
157 |
);
|
158 |
|
159 |
+
return isset( $types[ $value ] ) ? $types[ $value ] : __( 'Unknown', 'woocommerce-pagseguro' );
|
|
|
|
|
|
|
|
|
160 |
}
|
161 |
|
162 |
/**
|
163 |
* Get payment method name.
|
164 |
*
|
165 |
+
* @param int $value Payment method number.
|
166 |
*
|
167 |
+
* @return string
|
168 |
*/
|
169 |
public function get_payment_method_name( $value ) {
|
170 |
+
$credit = __( 'Credit Card %s', 'woocommerce-pagseguro' );
|
171 |
+
$ticket = __( 'Billet %s', 'woocommerce-pagseguro' );
|
172 |
+
$debit = __( 'Bank Transfer %s', 'woocommerce-pagseguro' );
|
173 |
|
174 |
$methods = array(
|
175 |
+
101 => sprintf( $credit, 'Visa' ),
|
176 |
+
102 => sprintf( $credit, 'MasterCard' ),
|
177 |
+
103 => sprintf( $credit, 'American Express' ),
|
178 |
+
104 => sprintf( $credit, 'Diners' ),
|
179 |
+
105 => sprintf( $credit, 'Hipercard' ),
|
180 |
+
106 => sprintf( $credit, 'Aura' ),
|
181 |
+
107 => sprintf( $credit, 'Elo' ),
|
182 |
+
108 => sprintf( $credit, 'PLENOCard' ),
|
183 |
+
109 => sprintf( $credit, 'PersonalCard' ),
|
184 |
+
110 => sprintf( $credit, 'JCB' ),
|
185 |
+
111 => sprintf( $credit, 'Discover' ),
|
186 |
+
112 => sprintf( $credit, 'BrasilCard' ),
|
187 |
+
113 => sprintf( $credit, 'FORTBRASIL' ),
|
188 |
+
114 => sprintf( $credit, 'CARDBAN' ),
|
189 |
+
115 => sprintf( $credit, 'VALECARD' ),
|
190 |
+
116 => sprintf( $credit, 'Cabal' ),
|
191 |
+
117 => sprintf( $credit, 'Mais!' ),
|
192 |
+
118 => sprintf( $credit, 'Avista' ),
|
193 |
+
119 => sprintf( $credit, 'GRANDCARD' ),
|
194 |
+
201 => sprintf( $ticket, 'Bradesco' ),
|
195 |
+
202 => sprintf( $ticket, 'Santander' ),
|
196 |
+
301 => sprintf( $debit, 'Bradesco' ),
|
197 |
+
302 => sprintf( $debit, 'Itaú' ),
|
198 |
+
303 => sprintf( $debit, 'Unibanco' ),
|
199 |
+
304 => sprintf( $debit, 'Banco do Brasil' ),
|
200 |
+
305 => sprintf( $debit, 'Real' ),
|
201 |
+
306 => sprintf( $debit, 'Banrisul' ),
|
202 |
+
307 => sprintf( $debit, 'HSBC' ),
|
203 |
401 => __( 'PagSeguro credit', 'woocommerce-pagseguro' ),
|
204 |
501 => __( 'Oi Paggo', 'woocommerce-pagseguro' ),
|
205 |
+
701 => __( 'Account deposit', 'woocommerce-pagseguro' ),
|
206 |
);
|
207 |
|
208 |
+
return isset( $methods[ $value ] ) ? $methods[ $value ] : __( 'Unknown', 'woocommerce-pagseguro' );
|
|
|
|
|
|
|
|
|
209 |
}
|
210 |
|
211 |
/**
|
212 |
* Get the paymet method.
|
213 |
*
|
214 |
+
* @param string $method Payment method.
|
215 |
*
|
216 |
* @return string
|
217 |
*/
|
218 |
public function get_payment_method( $method ) {
|
219 |
+
$methods = array(
|
220 |
+
'credit-card' => 'creditCard',
|
221 |
+
'banking-ticket' => 'boleto',
|
222 |
+
'bank-transfer' => 'eft',
|
223 |
+
);
|
224 |
+
|
225 |
+
return isset( $methods[ $method ] ) ? $methods[ $method ] : '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
226 |
}
|
227 |
|
228 |
/**
|
229 |
* Get error message.
|
230 |
*
|
231 |
+
* @param int $code Error code.
|
232 |
*
|
233 |
+
* @return string
|
234 |
*/
|
235 |
public function get_error_message( $code ) {
|
236 |
+
$code = (string) $code;
|
237 |
+
|
238 |
+
$messages = array(
|
239 |
+
'11013' => __( 'Please enter with a valid phone number with DDD. Example: (11) 5555-5555.', 'woocommerce-pagseguro' ),
|
240 |
+
'11014' => __( 'Please enter with a valid phone number with DDD. Example: (11) 5555-5555.', 'woocommerce-pagseguro' ),
|
241 |
+
'53018' => __( 'Please enter with a valid phone number with DDD. Example: (11) 5555-5555.', 'woocommerce-pagseguro' ),
|
242 |
+
'53019' => __( 'Please enter with a valid phone number with DDD. Example: (11) 5555-5555.', 'woocommerce-pagseguro' ),
|
243 |
+
'53020' => __( 'Please enter with a valid phone number with DDD. Example: (11) 5555-5555.', 'woocommerce-pagseguro' ),
|
244 |
+
'53021' => __( 'Please enter with a valid phone number with DDD. Example: (11) 5555-5555.', 'woocommerce-pagseguro' ),
|
245 |
+
'11017' => __( 'Please enter with a valid zip code number.', 'woocommerce-pagseguro' ),
|
246 |
+
'53022' => __( 'Please enter with a valid zip code number.', 'woocommerce-pagseguro' ),
|
247 |
+
'53023' => __( 'Please enter with a valid zip code number.', 'woocommerce-pagseguro' ),
|
248 |
+
'53053' => __( 'Please enter with a valid zip code number.', 'woocommerce-pagseguro' ),
|
249 |
+
'53054' => __( 'Please enter with a valid zip code number.', 'woocommerce-pagseguro' ),
|
250 |
+
'11164' => __( 'Please enter with a valid CPF number.', 'woocommerce-pagseguro' ),
|
251 |
+
'53110' => '',
|
252 |
+
'53111' => __( 'Please select a bank to make payment by bank transfer.', 'woocommerce-pagseguro' ),
|
253 |
+
'53045' => __( 'Credit card holder CPF is required.', 'woocommerce-pagseguro' ),
|
254 |
+
'53047' => __( 'Credit card holder birthdate is required.', 'woocommerce-pagseguro' ),
|
255 |
+
'53042' => __( 'Credit card holder name is required.', 'woocommerce-pagseguro' ),
|
256 |
+
'53049' => __( 'Credit card holder phone is required.', 'woocommerce-pagseguro' ),
|
257 |
+
'53051' => __( 'Credit card holder phone is required.', 'woocommerce-pagseguro' ),
|
258 |
+
'11020' => __( 'The address complement is too long, it cannot be more than 40 characters.', 'woocommerce-pagseguro' ),
|
259 |
+
'53028' => __( 'The address complement is too long, it cannot be more than 40 characters.', 'woocommerce-pagseguro' ),
|
260 |
+
'53029' => __( '<strong>Neighborhood</strong> is a required field.', 'woocommerce-pagseguro' ),
|
261 |
+
'53046' => __( 'Credit card holder CPF invalid.', 'woocommerce-pagseguro' ),
|
262 |
+
'53122' => __( 'Invalid email domain. You must use an email @sandbox.pagseguro.com.br while you are using the PagSeguro Sandbox.', 'woocommerce-pagseguro' ),
|
263 |
+
);
|
264 |
+
|
265 |
+
if ( isset( $messages[ $code ] ) ) {
|
266 |
+
return $messages[ $code ];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
}
|
268 |
+
|
269 |
+
return __( 'An error has occurred while processing your payment, please review your data and try again. Or contact us for assistance.', 'woocommerce-pagseguro' );
|
270 |
}
|
271 |
|
272 |
/**
|
305 |
protected function do_request( $url, $method = 'POST', $data = array(), $headers = array() ) {
|
306 |
$params = array(
|
307 |
'method' => $method,
|
308 |
+
'timeout' => 60,
|
309 |
);
|
310 |
|
311 |
if ( 'POST' == $method && ! empty( $data ) ) {
|
322 |
/**
|
323 |
* Safe load XML.
|
324 |
*
|
325 |
+
* @param string $source XML source.
|
326 |
+
* @param int $options DOMDpocment options.
|
327 |
*
|
328 |
* @return SimpleXMLElement|bool
|
329 |
*/
|
377 |
$items[] = array(
|
378 |
'description' => $this->sanitize_description( sprintf( __( 'Order %s', 'woocommerce-pagseguro' ), $order->get_order_number() ) ),
|
379 |
'amount' => $this->money_format( $order->get_total() ),
|
380 |
+
'quantity' => 1,
|
381 |
);
|
382 |
} else {
|
383 |
|
384 |
// Products.
|
385 |
+
if ( 0 < count( $order->get_items() ) ) {
|
386 |
foreach ( $order->get_items() as $order_item ) {
|
387 |
if ( $order_item['qty'] ) {
|
388 |
$item_name = $order_item['name'];
|
400 |
$items[] = array(
|
401 |
'description' => $this->sanitize_description( $item_name ),
|
402 |
'amount' => $this->money_format( $order->get_item_total( $order_item, false ) ),
|
403 |
+
'quantity' => $order_item['qty'],
|
404 |
);
|
405 |
}
|
406 |
}
|
407 |
}
|
408 |
|
409 |
// Fees.
|
410 |
+
if ( 0 < count( $order->get_fees() ) ) {
|
411 |
foreach ( $order->get_fees() as $fee ) {
|
412 |
$items[] = array(
|
413 |
'description' => $this->sanitize_description( $fee['name'] ),
|
414 |
'amount' => $this->money_format( $fee['line_total'] ),
|
415 |
+
'quantity' => 1,
|
416 |
);
|
417 |
}
|
418 |
}
|
419 |
|
420 |
// Taxes.
|
421 |
+
if ( 0 < count( $order->get_taxes() ) ) {
|
422 |
foreach ( $order->get_taxes() as $tax ) {
|
423 |
$items[] = array(
|
424 |
'description' => $this->sanitize_description( $tax['label'] ),
|
425 |
'amount' => $this->money_format( $tax['tax_amount'] + $tax['shipping_tax_amount'] ),
|
426 |
+
'quantity' => 1,
|
427 |
);
|
428 |
}
|
429 |
}
|
444 |
return array(
|
445 |
'items' => $items,
|
446 |
'extra_amount' => $extra_amount,
|
447 |
+
'shipping_cost' => $shipping_cost,
|
448 |
);
|
449 |
}
|
450 |
|
451 |
/**
|
452 |
* Get the checkout xml.
|
453 |
*
|
454 |
+
* @param WC_Order $order Order data.
|
455 |
+
* @param array $posted Posted data.
|
456 |
*
|
457 |
+
* @return string
|
458 |
*/
|
459 |
protected function get_checkout_xml( $order, $posted ) {
|
460 |
$data = $this->get_order_items( $order );
|
470 |
$xml->add_extra_amount( $data['extra_amount'] );
|
471 |
|
472 |
// Checks if is localhost... PagSeguro not accept localhost urls!
|
473 |
+
if ( ! in_array( $this->is_localhost(), array( 'localhost', '127.0.0.1' ) ) ) {
|
474 |
$xml->add_redirect_url( $this->gateway->get_return_url( $order ) );
|
475 |
$xml->add_notification_url( WC()->api_request_url( 'WC_PagSeguro_Gateway' ) );
|
476 |
}
|
487 |
/**
|
488 |
* Get the direct payment xml.
|
489 |
*
|
490 |
+
* @param WC_Order $order Order data.
|
491 |
+
* @param array $posted Posted data.
|
492 |
*
|
493 |
+
* @return string
|
494 |
*/
|
495 |
protected function get_payment_xml( $order, $posted ) {
|
496 |
$data = $this->get_order_items( $order );
|
504 |
$xml->add_method( $method );
|
505 |
$xml->add_sender_data( $order, $hash );
|
506 |
$xml->add_currency( get_woocommerce_currency() );
|
507 |
+
if ( ! in_array( $this->is_localhost(), array( 'localhost', '127.0.0.1' ) ) ) {
|
508 |
$xml->add_notification_url( WC()->api_request_url( 'WC_PagSeguro_Gateway' ) );
|
509 |
}
|
510 |
$xml->add_items( $data['items'] );
|
517 |
$credit_card_token = isset( $posted['pagseguro_credit_card_hash'] ) ? sanitize_text_field( $posted['pagseguro_credit_card_hash'] ) : '';
|
518 |
$installment = array(
|
519 |
'quantity' => isset( $posted['pagseguro_card_installments'] ) ? absint( $posted['pagseguro_card_installments'] ) : '',
|
520 |
+
'value' => isset( $posted['pagseguro_installment_value'] ) ? $this->money_format( $posted['pagseguro_installment_value'] ) : '',
|
521 |
);
|
522 |
$holder_data = array(
|
523 |
'name' => isset( $posted['pagseguro_card_holder_name'] ) ? sanitize_text_field( $posted['pagseguro_card_holder_name'] ) : '',
|
554 |
$this->gateway->log->add( $this->gateway->id, 'Requesting token for order ' . $order->get_order_number() . ' with the following data: ' . $xml );
|
555 |
}
|
556 |
|
557 |
+
$url = add_query_arg( array( 'email' => $this->gateway->get_email(), 'token' => $this->gateway->get_token() ), $this->get_checkout_url() );
|
558 |
$response = $this->do_request( $url, 'POST', $xml, array( 'Content-Type' => 'application/xml;charset=UTF-8' ) );
|
559 |
|
560 |
if ( is_wp_error( $response ) ) {
|
569 |
return array(
|
570 |
'url' => '',
|
571 |
'data' => '',
|
572 |
+
'error' => array( __( 'Too bad! The email or token from the PagSeguro are invalids my little friend!', 'woocommerce-pagseguro' ) ),
|
573 |
);
|
574 |
} else {
|
575 |
try {
|
593 |
return array(
|
594 |
'url' => $this->get_payment_url( $token ),
|
595 |
'token' => $token,
|
596 |
+
'error' => '',
|
597 |
);
|
598 |
}
|
599 |
|
605 |
}
|
606 |
|
607 |
foreach ( $body->error as $error_key => $error ) {
|
608 |
+
if ( $message = $this->get_error_message( $error->code ) ) {
|
609 |
+
$errors[] = '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . $message;
|
610 |
+
}
|
611 |
}
|
612 |
|
613 |
return array(
|
614 |
'url' => '',
|
615 |
'token' => '',
|
616 |
+
'error' => $errors,
|
617 |
);
|
618 |
}
|
619 |
}
|
626 |
return array(
|
627 |
'url' => '',
|
628 |
'token' => '',
|
629 |
+
'error' => array( '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . __( 'An error has occurred while processing your payment, please try again. Or contact us for assistance.', 'woocommerce-pagseguro' ) ),
|
630 |
);
|
631 |
}
|
632 |
|
648 |
return array(
|
649 |
'url' => '',
|
650 |
'data' => '',
|
651 |
+
'error' => array( '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . __( 'Please, select a payment method.', 'woocommerce-pagseguro' ) ),
|
652 |
);
|
653 |
}
|
654 |
|
659 |
$this->gateway->log->add( $this->gateway->id, 'Requesting direct payment for order ' . $order->get_order_number() . ' with the following data: ' . $xml );
|
660 |
}
|
661 |
|
662 |
+
$url = add_query_arg( array( 'email' => $this->gateway->get_email(), 'token' => $this->gateway->get_token() ), $this->get_transactions_url() );
|
663 |
$response = $this->do_request( $url, 'POST', $xml, array( 'Content-Type' => 'application/xml;charset=UTF-8' ) );
|
664 |
|
665 |
if ( is_wp_error( $response ) ) {
|
674 |
return array(
|
675 |
'url' => '',
|
676 |
'data' => '',
|
677 |
+
'error' => array( __( 'You are not allowed to use the PagSeguro Transparent Checkout. Looks like you neglected to installation guide of this plugin. This is not pretty, do you know?', 'woocommerce-pagseguro' ) ),
|
678 |
);
|
679 |
} else {
|
680 |
try {
|
695 |
return array(
|
696 |
'url' => $this->gateway->get_return_url( $order ),
|
697 |
'data' => $data,
|
698 |
+
'error' => '',
|
699 |
);
|
700 |
}
|
701 |
|
707 |
}
|
708 |
|
709 |
foreach ( $data->error as $error_key => $error ) {
|
710 |
+
if ( $message = $this->get_error_message( $error->code ) ) {
|
711 |
+
$errors[] = '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . $message;
|
712 |
+
}
|
713 |
}
|
714 |
|
715 |
return array(
|
716 |
'url' => '',
|
717 |
'data' => '',
|
718 |
+
'error' => $errors,
|
719 |
);
|
720 |
}
|
721 |
}
|
728 |
return array(
|
729 |
'url' => '',
|
730 |
'data' => '',
|
731 |
+
'error' => array( '<strong>' . __( 'PagSeguro', 'woocommerce-pagseguro' ) . '</strong>: ' . __( 'An error has occurred while processing your payment, please try again. Or contact us for assistance.', 'woocommerce-pagseguro' ) ),
|
732 |
);
|
733 |
}
|
734 |
|
735 |
/**
|
736 |
* Process the IPN.
|
737 |
*
|
738 |
+
* @param array $data IPN data.
|
739 |
+
*
|
740 |
* @return bool|SimpleXMLElement
|
741 |
*/
|
742 |
public function process_ipn_request( $data ) {
|
764 |
}
|
765 |
|
766 |
// Gets the PagSeguro response.
|
767 |
+
$url = add_query_arg( array( 'email' => $this->gateway->get_email(), 'token' => $this->gateway->get_token() ), $this->get_notification_url() . esc_attr( $data['notificationCode'] ) );
|
768 |
$response = $this->do_request( $url, 'GET' );
|
769 |
|
770 |
// Check to see if the request was valid.
|
810 |
$this->gateway->log->add( $this->gateway->id, 'Requesting session ID...' );
|
811 |
}
|
812 |
|
813 |
+
$url = add_query_arg( array( 'email' => $this->gateway->get_email(), 'token' => $this->gateway->get_token() ), $this->get_sessions_url() );
|
814 |
$response = $this->do_request( $url, 'POST' );
|
815 |
|
816 |
// Check to see if the request was valid.
|
844 |
|
845 |
return false;
|
846 |
}
|
|
|
847 |
}
|
includes/class-wc-pagseguro-gateway.php
CHANGED
@@ -1,8 +1,17 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
*
|
5 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
*/
|
7 |
class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
8 |
|
@@ -27,6 +36,8 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
27 |
$this->description = $this->get_option( 'description' );
|
28 |
$this->email = $this->get_option( 'email' );
|
29 |
$this->token = $this->get_option( 'token' );
|
|
|
|
|
30 |
$this->method = $this->get_option( 'method', 'direct' );
|
31 |
$this->tc_credit = $this->get_option( 'tc_credit', 'yes' );
|
32 |
$this->tc_transfer = $this->get_option( 'tc_transfer', 'yes' );
|
@@ -50,7 +61,6 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
50 |
add_action( 'valid_pagseguro_ipn_request', array( $this, 'update_order_status' ) );
|
51 |
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
|
52 |
add_action( 'woocommerce_receipt_' . $this->id, array( $this, 'receipt_page' ) );
|
53 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
|
54 |
|
55 |
// Transparent checkout actions.
|
56 |
if ( 'transparent' == $this->method ) {
|
@@ -58,45 +68,33 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
58 |
add_action( 'woocommerce_email_after_order_table', array( $this, 'email_instructions' ), 10, 3 );
|
59 |
add_action( 'wp_enqueue_scripts', array( $this, 'checkout_scripts' ) );
|
60 |
}
|
61 |
-
|
62 |
-
if ( is_admin() ) {
|
63 |
-
add_action( 'admin_notices', array( $this, 'admin_notices' ) );
|
64 |
-
}
|
65 |
}
|
66 |
|
67 |
/**
|
68 |
-
*
|
|
|
|
|
69 |
*/
|
70 |
-
public function
|
71 |
-
|
72 |
-
|
73 |
-
if ( empty( $this->email ) ) {
|
74 |
-
include_once 'views/html-notice-email-missing.php';
|
75 |
-
}
|
76 |
-
|
77 |
-
// Checks if token is not empty.
|
78 |
-
if ( empty( $this->token ) ) {
|
79 |
-
include_once 'views/html-notice-token-missing.php';
|
80 |
-
}
|
81 |
-
|
82 |
-
if ( 'transparent' == $this->method && ! class_exists( 'Extra_Checkout_Fields_For_Brazil' ) ) {
|
83 |
-
include_once 'views/html-notice-ecfb-missing.php';
|
84 |
-
}
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
|
|
91 |
}
|
92 |
|
93 |
/**
|
94 |
-
*
|
95 |
*
|
96 |
-
* @return
|
97 |
*/
|
98 |
-
public function
|
99 |
-
return
|
100 |
}
|
101 |
|
102 |
/**
|
@@ -108,7 +106,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
108 |
*/
|
109 |
public function is_available() {
|
110 |
// Test if is valid for use.
|
111 |
-
$available =
|
112 |
|
113 |
if ( 'transparent' == $this->method && ! class_exists( 'Extra_Checkout_Fields_For_Brazil' ) ) {
|
114 |
$available = false;
|
@@ -123,20 +121,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
123 |
* @return bool
|
124 |
*/
|
125 |
public function has_fields() {
|
126 |
-
return
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Admin scripts.
|
131 |
-
*
|
132 |
-
* @param string $hook Page slug.
|
133 |
-
*/
|
134 |
-
public function admin_scripts( $hook ) {
|
135 |
-
if ( in_array( $hook, array( 'woocommerce_page_wc-settings', 'woocommerce_page_woocommerce_settings' ) ) && ( isset( $_GET['section'] ) && 'wc_pagseguro_gateway' == strtolower( $_GET['section'] ) ) ) {
|
136 |
-
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
137 |
-
|
138 |
-
wp_enqueue_script( 'pagseguro-admin', plugins_url( 'assets/js/admin' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery' ), WC_PagSeguro::VERSION, true );
|
139 |
-
}
|
140 |
}
|
141 |
|
142 |
/**
|
@@ -191,33 +176,25 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
191 |
'title' => __( 'Enable/Disable', 'woocommerce-pagseguro' ),
|
192 |
'type' => 'checkbox',
|
193 |
'label' => __( 'Enable PagSeguro', 'woocommerce-pagseguro' ),
|
194 |
-
'default' => 'yes'
|
195 |
),
|
196 |
'title' => array(
|
197 |
'title' => __( 'Title', 'woocommerce-pagseguro' ),
|
198 |
'type' => 'text',
|
199 |
'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-pagseguro' ),
|
200 |
'desc_tip' => true,
|
201 |
-
'default' => __( 'PagSeguro', 'woocommerce-pagseguro' )
|
202 |
),
|
203 |
'description' => array(
|
204 |
'title' => __( 'Description', 'woocommerce-pagseguro' ),
|
205 |
'type' => 'textarea',
|
206 |
'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-pagseguro' ),
|
207 |
-
'default' => __( 'Pay via PagSeguro', 'woocommerce-pagseguro' )
|
208 |
-
),
|
209 |
-
'email' => array(
|
210 |
-
'title' => __( 'PagSeguro Email', 'woocommerce-pagseguro' ),
|
211 |
-
'type' => 'text',
|
212 |
-
'description' => __( 'Please enter your PagSeguro email address. This is needed in order to take payment.', 'woocommerce-pagseguro' ),
|
213 |
-
'desc_tip' => true,
|
214 |
-
'default' => ''
|
215 |
),
|
216 |
-
'
|
217 |
-
'title' => __( '
|
218 |
-
'type' => '
|
219 |
-
'description' =>
|
220 |
-
'default' => ''
|
221 |
),
|
222 |
'method' => array(
|
223 |
'title' => __( 'Integration method', 'woocommerce-pagseguro' ),
|
@@ -229,75 +206,101 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
229 |
'options' => array(
|
230 |
'redirect' => __( 'Redirect (default)', 'woocommerce-pagseguro' ),
|
231 |
'lightbox' => __( 'Lightbox', 'woocommerce-pagseguro' ),
|
232 |
-
'transparent' => __( 'Transparent Checkout', 'woocommerce-pagseguro' )
|
233 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
),
|
235 |
'transparent_checkout' => array(
|
236 |
'title' => __( 'Transparent Checkout Options', 'woocommerce-pagseguro' ),
|
237 |
'type' => 'title',
|
238 |
-
'description' => ''
|
239 |
),
|
240 |
'tc_credit' => array(
|
241 |
'title' => __( 'Credit Card', 'woocommerce-pagseguro' ),
|
242 |
'type' => 'checkbox',
|
243 |
'label' => __( 'Enable Credit Card for Transparente Checkout', 'woocommerce-pagseguro' ),
|
244 |
-
'default' => 'yes'
|
245 |
),
|
246 |
'tc_transfer' => array(
|
247 |
'title' => __( 'Bank Transfer', 'woocommerce-pagseguro' ),
|
248 |
'type' => 'checkbox',
|
249 |
'label' => __( 'Enable Bank Transfer for Transparente Checkout', 'woocommerce-pagseguro' ),
|
250 |
-
'default' => 'yes'
|
251 |
),
|
252 |
'tc_ticket' => array(
|
253 |
'title' => __( 'Banking Ticket', 'woocommerce-pagseguro' ),
|
254 |
'type' => 'checkbox',
|
255 |
'label' => __( 'Enable Banking Ticket for Transparente Checkout', 'woocommerce-pagseguro' ),
|
256 |
-
'default' => 'yes'
|
257 |
),
|
258 |
'tc_ticket_message' => array(
|
259 |
'title' => __( 'Banking Ticket Tax Message', 'woocommerce-pagseguro' ),
|
260 |
'type' => 'checkbox',
|
261 |
'label' => __( 'Display a message alerting the customer that will be charged R$ 1,00 for payment by Banking Ticket', 'woocommerce-pagseguro' ),
|
262 |
-
'default' => 'yes'
|
263 |
),
|
264 |
'behavior' => array(
|
265 |
'title' => __( 'Integration Behavior', 'woocommerce-pagseguro' ),
|
266 |
'type' => 'title',
|
267 |
-
'description' => ''
|
268 |
),
|
269 |
'send_only_total' => array(
|
270 |
'title' => __( 'Send only the order total', 'woocommerce-pagseguro' ),
|
271 |
'type' => 'checkbox',
|
272 |
'label' => __( 'If this option is enabled will only send the order total, not the list of items.', 'woocommerce-pagseguro' ),
|
273 |
-
'default' => 'no'
|
274 |
),
|
275 |
'invoice_prefix' => array(
|
276 |
'title' => __( 'Invoice Prefix', 'woocommerce-pagseguro' ),
|
277 |
'type' => 'text',
|
278 |
'description' => __( 'Please enter a prefix for your invoice numbers. If you use your PagSeguro account for multiple stores ensure this prefix is unqiue as PagSeguro will not allow orders with the same invoice number.', 'woocommerce-pagseguro' ),
|
279 |
'desc_tip' => true,
|
280 |
-
'default' => 'WC-'
|
281 |
),
|
282 |
'testing' => array(
|
283 |
'title' => __( 'Gateway Testing', 'woocommerce-pagseguro' ),
|
284 |
'type' => 'title',
|
285 |
-
'description' => ''
|
286 |
-
),
|
287 |
-
'sandbox' => array(
|
288 |
-
'title' => __( 'PagSeguro Sandbox', 'woocommerce-pagseguro' ),
|
289 |
-
'type' => 'checkbox',
|
290 |
-
'label' => __( 'Enable PagSeguro Sandbox', 'woocommerce-pagseguro' ),
|
291 |
-
'default' => 'no',
|
292 |
-
'description' => sprintf( __( 'PagSeguro Sandbox can be used to test the payments. <strong>Note:</strong> you must use the development token that can be found in %s.', 'woocommerce-pagseguro' ), '<a href="https://sandbox.pagseguro.uol.com.br/comprador-de-testes.html" target="_blank">' . __( 'PagSeguro Sandbox', 'woocommerce-pagseguro' ) .'</a>' )
|
293 |
),
|
294 |
'debug' => array(
|
295 |
'title' => __( 'Debug Log', 'woocommerce-pagseguro' ),
|
296 |
'type' => 'checkbox',
|
297 |
'label' => __( 'Enable logging', 'woocommerce-pagseguro' ),
|
298 |
'default' => 'no',
|
299 |
-
'description' => sprintf( __( 'Log PagSeguro events, such as API requests, inside %s', 'woocommerce-pagseguro' ), $this->get_log_view() )
|
300 |
-
)
|
301 |
);
|
302 |
}
|
303 |
|
@@ -305,7 +308,11 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
305 |
* Admin page.
|
306 |
*/
|
307 |
public function admin_options() {
|
308 |
-
|
|
|
|
|
|
|
|
|
309 |
}
|
310 |
|
311 |
/**
|
@@ -323,8 +330,6 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
323 |
|
324 |
/**
|
325 |
* Payment fields.
|
326 |
-
*
|
327 |
-
* @return string
|
328 |
*/
|
329 |
public function payment_fields() {
|
330 |
wp_enqueue_script( 'wc-credit-card-form' );
|
@@ -349,9 +354,9 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
349 |
/**
|
350 |
* Process the payment and return the result.
|
351 |
*
|
352 |
-
* @param int
|
353 |
*
|
354 |
-
* @return array
|
355 |
*/
|
356 |
public function process_payment( $order_id ) {
|
357 |
$order = new WC_Order( $order_id );
|
@@ -373,7 +378,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
373 |
|
374 |
return array(
|
375 |
'result' => 'success',
|
376 |
-
'redirect' => $response['url']
|
377 |
);
|
378 |
} else {
|
379 |
foreach ( $response['error'] as $error ) {
|
@@ -382,7 +387,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
382 |
|
383 |
return array(
|
384 |
'result' => 'fail',
|
385 |
-
'redirect' => ''
|
386 |
);
|
387 |
}
|
388 |
} else {
|
@@ -390,7 +395,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
390 |
|
391 |
return array(
|
392 |
'result' => 'success',
|
393 |
-
'redirect' => add_query_arg( array( 'use_shipping' => $use_shipping ), $order->get_checkout_payment_url( true ) )
|
394 |
);
|
395 |
}
|
396 |
}
|
@@ -398,9 +403,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
398 |
/**
|
399 |
* Output for the order received page.
|
400 |
*
|
401 |
-
* @param
|
402 |
-
*
|
403 |
-
* @return string PagSeguro lightbox.
|
404 |
*/
|
405 |
public function receipt_page( $order_id ) {
|
406 |
$order = new WC_Order( $order_id );
|
@@ -437,15 +440,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
437 |
'lightbox_script_url' => $this->api->get_lightbox_url(),
|
438 |
), 'woocommerce/pagseguro/', WC_PagSeguro::get_templates_path() );
|
439 |
} else {
|
440 |
-
|
441 |
-
foreach ( $response['error'] as $message ) {
|
442 |
-
$html .= '<li>' . $message . '</li>';
|
443 |
-
}
|
444 |
-
$html .= '</ul>';
|
445 |
-
|
446 |
-
$html .= '<a class="button cancel" href="' . esc_url( $order->get_cancel_order_url() ) . '">' . __( 'Click to try again', 'woocommerce-pagseguro' ) . '</a>';
|
447 |
-
|
448 |
-
echo $html;
|
449 |
}
|
450 |
}
|
451 |
|
@@ -462,8 +457,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
462 |
do_action( 'valid_pagseguro_ipn_request', $ipn );
|
463 |
exit();
|
464 |
} else {
|
465 |
-
|
466 |
-
wp_die( $message, $message, array( 'response' => 401 ) );
|
467 |
}
|
468 |
}
|
469 |
|
@@ -491,7 +485,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
491 |
'type' => '',
|
492 |
'method' => '',
|
493 |
'installments' => '',
|
494 |
-
'link' => ''
|
495 |
);
|
496 |
|
497 |
if ( isset( $posted->code ) ) {
|
@@ -614,9 +608,7 @@ class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
|
614 |
/**
|
615 |
* Thank You page message.
|
616 |
*
|
617 |
-
* @param
|
618 |
-
*
|
619 |
-
* @return string
|
620 |
*/
|
621 |
public function thankyou_page( $order_id ) {
|
622 |
$data = get_post_meta( $order_id, '_wc_pagseguro_payment_data', true );
|
1 |
<?php
|
2 |
/**
|
3 |
+
* WooCommerce PagSeguro Gateway class
|
4 |
*
|
5 |
+
* @package WooCommerce_PagSeguro/Classes/Gateway
|
6 |
+
* @version 2.11.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit;
|
11 |
+
}
|
12 |
+
|
13 |
+
/**
|
14 |
+
* WooCommerce PagSeguro gateway.
|
15 |
*/
|
16 |
class WC_PagSeguro_Gateway extends WC_Payment_Gateway {
|
17 |
|
36 |
$this->description = $this->get_option( 'description' );
|
37 |
$this->email = $this->get_option( 'email' );
|
38 |
$this->token = $this->get_option( 'token' );
|
39 |
+
$this->sandbox_email = $this->get_option( 'sandbox_email' );
|
40 |
+
$this->sandbox_token = $this->get_option( 'sandbox_token' );
|
41 |
$this->method = $this->get_option( 'method', 'direct' );
|
42 |
$this->tc_credit = $this->get_option( 'tc_credit', 'yes' );
|
43 |
$this->tc_transfer = $this->get_option( 'tc_transfer', 'yes' );
|
61 |
add_action( 'valid_pagseguro_ipn_request', array( $this, 'update_order_status' ) );
|
62 |
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
|
63 |
add_action( 'woocommerce_receipt_' . $this->id, array( $this, 'receipt_page' ) );
|
|
|
64 |
|
65 |
// Transparent checkout actions.
|
66 |
if ( 'transparent' == $this->method ) {
|
68 |
add_action( 'woocommerce_email_after_order_table', array( $this, 'email_instructions' ), 10, 3 );
|
69 |
add_action( 'wp_enqueue_scripts', array( $this, 'checkout_scripts' ) );
|
70 |
}
|
|
|
|
|
|
|
|
|
71 |
}
|
72 |
|
73 |
/**
|
74 |
+
* Returns a bool that indicates if currency is amongst the supported ones.
|
75 |
+
*
|
76 |
+
* @return bool
|
77 |
*/
|
78 |
+
public function using_supported_currency() {
|
79 |
+
return 'BRL' === get_woocommerce_currency();
|
80 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
|
82 |
+
/**
|
83 |
+
* Get email.
|
84 |
+
*
|
85 |
+
* @return string
|
86 |
+
*/
|
87 |
+
public function get_email() {
|
88 |
+
return 'yes' === $this->sandbox ? $this->sandbox_email : $this->email;
|
89 |
}
|
90 |
|
91 |
/**
|
92 |
+
* Get token.
|
93 |
*
|
94 |
+
* @return string
|
95 |
*/
|
96 |
+
public function get_token() {
|
97 |
+
return 'yes' === $this->sandbox ? $this->sandbox_token : $this->token;
|
98 |
}
|
99 |
|
100 |
/**
|
106 |
*/
|
107 |
public function is_available() {
|
108 |
// Test if is valid for use.
|
109 |
+
$available = 'yes' === $this->get_option( 'enabled' ) && '' !== $this->get_email() && '' !== $this->get_token() && $this->using_supported_currency();
|
110 |
|
111 |
if ( 'transparent' == $this->method && ! class_exists( 'Extra_Checkout_Fields_For_Brazil' ) ) {
|
112 |
$available = false;
|
121 |
* @return bool
|
122 |
*/
|
123 |
public function has_fields() {
|
124 |
+
return 'transparent' === $this->method;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
|
127 |
/**
|
176 |
'title' => __( 'Enable/Disable', 'woocommerce-pagseguro' ),
|
177 |
'type' => 'checkbox',
|
178 |
'label' => __( 'Enable PagSeguro', 'woocommerce-pagseguro' ),
|
179 |
+
'default' => 'yes',
|
180 |
),
|
181 |
'title' => array(
|
182 |
'title' => __( 'Title', 'woocommerce-pagseguro' ),
|
183 |
'type' => 'text',
|
184 |
'description' => __( 'This controls the title which the user sees during checkout.', 'woocommerce-pagseguro' ),
|
185 |
'desc_tip' => true,
|
186 |
+
'default' => __( 'PagSeguro', 'woocommerce-pagseguro' ),
|
187 |
),
|
188 |
'description' => array(
|
189 |
'title' => __( 'Description', 'woocommerce-pagseguro' ),
|
190 |
'type' => 'textarea',
|
191 |
'description' => __( 'This controls the description which the user sees during checkout.', 'woocommerce-pagseguro' ),
|
192 |
+
'default' => __( 'Pay via PagSeguro', 'woocommerce-pagseguro' ),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
),
|
194 |
+
'integration' => array(
|
195 |
+
'title' => __( 'Integration', 'woocommerce-pagseguro' ),
|
196 |
+
'type' => 'title',
|
197 |
+
'description' => '',
|
|
|
198 |
),
|
199 |
'method' => array(
|
200 |
'title' => __( 'Integration method', 'woocommerce-pagseguro' ),
|
206 |
'options' => array(
|
207 |
'redirect' => __( 'Redirect (default)', 'woocommerce-pagseguro' ),
|
208 |
'lightbox' => __( 'Lightbox', 'woocommerce-pagseguro' ),
|
209 |
+
'transparent' => __( 'Transparent Checkout', 'woocommerce-pagseguro' ),
|
210 |
+
),
|
211 |
+
),
|
212 |
+
'sandbox' => array(
|
213 |
+
'title' => __( 'PagSeguro Sandbox', 'woocommerce-pagseguro' ),
|
214 |
+
'type' => 'checkbox',
|
215 |
+
'label' => __( 'Enable PagSeguro Sandbox', 'woocommerce-pagseguro' ),
|
216 |
+
'desc_tip' => true,
|
217 |
+
'default' => 'no',
|
218 |
+
'description' => __( 'PagSeguro Sandbox can be used to test the payments.', 'woocommerce-pagseguro' ),
|
219 |
+
),
|
220 |
+
'email' => array(
|
221 |
+
'title' => __( 'PagSeguro Email', 'woocommerce-pagseguro' ),
|
222 |
+
'type' => 'text',
|
223 |
+
'description' => __( 'Please enter your PagSeguro email address. This is needed in order to take payment.', 'woocommerce-pagseguro' ),
|
224 |
+
'desc_tip' => true,
|
225 |
+
'default' => '',
|
226 |
+
),
|
227 |
+
'token' => array(
|
228 |
+
'title' => __( 'PagSeguro Token', 'woocommerce-pagseguro' ),
|
229 |
+
'type' => 'text',
|
230 |
+
'description' => sprintf( __( 'Please enter your PagSeguro token. This is needed to process the payment and notifications. Is possible generate a new token %s.', 'woocommerce-pagseguro' ), '<a href="https://pagseguro.uol.com.br/integracao/token-de-seguranca.jhtml">' . __( 'here', 'woocommerce-pagseguro' ) . '</a>' ),
|
231 |
+
'default' => '',
|
232 |
+
),
|
233 |
+
'sandbox_email' => array(
|
234 |
+
'title' => __( 'PagSeguro Sandbox Email', 'woocommerce-pagseguro' ),
|
235 |
+
'type' => 'text',
|
236 |
+
'description' => sprintf( __( 'Please enter your PagSeguro sandbox email address. You can get your sandbox email %s.', 'woocommerce-pagseguro' ), '<a href="https://sandbox.pagseguro.uol.com.br/comprador-de-testes.html">' . __( 'here', 'woocommerce-pagseguro' ) . '</a>' ),
|
237 |
+
'default' => '',
|
238 |
+
),
|
239 |
+
'sandbox_token' => array(
|
240 |
+
'title' => __( 'PagSeguro Sandbox Token', 'woocommerce-pagseguro' ),
|
241 |
+
'type' => 'text',
|
242 |
+
'description' => sprintf( __( 'Please enter your PagSeguro sandbox token. You can get your sandbox token %s.', 'woocommerce-pagseguro' ), '<a href="https://sandbox.pagseguro.uol.com.br/comprador-de-testes.html">' . __( 'here', 'woocommerce-pagseguro' ) . '</a>' ),
|
243 |
+
'default' => '',
|
244 |
),
|
245 |
'transparent_checkout' => array(
|
246 |
'title' => __( 'Transparent Checkout Options', 'woocommerce-pagseguro' ),
|
247 |
'type' => 'title',
|
248 |
+
'description' => '',
|
249 |
),
|
250 |
'tc_credit' => array(
|
251 |
'title' => __( 'Credit Card', 'woocommerce-pagseguro' ),
|
252 |
'type' => 'checkbox',
|
253 |
'label' => __( 'Enable Credit Card for Transparente Checkout', 'woocommerce-pagseguro' ),
|
254 |
+
'default' => 'yes',
|
255 |
),
|
256 |
'tc_transfer' => array(
|
257 |
'title' => __( 'Bank Transfer', 'woocommerce-pagseguro' ),
|
258 |
'type' => 'checkbox',
|
259 |
'label' => __( 'Enable Bank Transfer for Transparente Checkout', 'woocommerce-pagseguro' ),
|
260 |
+
'default' => 'yes',
|
261 |
),
|
262 |
'tc_ticket' => array(
|
263 |
'title' => __( 'Banking Ticket', 'woocommerce-pagseguro' ),
|
264 |
'type' => 'checkbox',
|
265 |
'label' => __( 'Enable Banking Ticket for Transparente Checkout', 'woocommerce-pagseguro' ),
|
266 |
+
'default' => 'yes',
|
267 |
),
|
268 |
'tc_ticket_message' => array(
|
269 |
'title' => __( 'Banking Ticket Tax Message', 'woocommerce-pagseguro' ),
|
270 |
'type' => 'checkbox',
|
271 |
'label' => __( 'Display a message alerting the customer that will be charged R$ 1,00 for payment by Banking Ticket', 'woocommerce-pagseguro' ),
|
272 |
+
'default' => 'yes',
|
273 |
),
|
274 |
'behavior' => array(
|
275 |
'title' => __( 'Integration Behavior', 'woocommerce-pagseguro' ),
|
276 |
'type' => 'title',
|
277 |
+
'description' => '',
|
278 |
),
|
279 |
'send_only_total' => array(
|
280 |
'title' => __( 'Send only the order total', 'woocommerce-pagseguro' ),
|
281 |
'type' => 'checkbox',
|
282 |
'label' => __( 'If this option is enabled will only send the order total, not the list of items.', 'woocommerce-pagseguro' ),
|
283 |
+
'default' => 'no',
|
284 |
),
|
285 |
'invoice_prefix' => array(
|
286 |
'title' => __( 'Invoice Prefix', 'woocommerce-pagseguro' ),
|
287 |
'type' => 'text',
|
288 |
'description' => __( 'Please enter a prefix for your invoice numbers. If you use your PagSeguro account for multiple stores ensure this prefix is unqiue as PagSeguro will not allow orders with the same invoice number.', 'woocommerce-pagseguro' ),
|
289 |
'desc_tip' => true,
|
290 |
+
'default' => 'WC-',
|
291 |
),
|
292 |
'testing' => array(
|
293 |
'title' => __( 'Gateway Testing', 'woocommerce-pagseguro' ),
|
294 |
'type' => 'title',
|
295 |
+
'description' => '',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
),
|
297 |
'debug' => array(
|
298 |
'title' => __( 'Debug Log', 'woocommerce-pagseguro' ),
|
299 |
'type' => 'checkbox',
|
300 |
'label' => __( 'Enable logging', 'woocommerce-pagseguro' ),
|
301 |
'default' => 'no',
|
302 |
+
'description' => sprintf( __( 'Log PagSeguro events, such as API requests, inside %s', 'woocommerce-pagseguro' ), $this->get_log_view() ),
|
303 |
+
),
|
304 |
);
|
305 |
}
|
306 |
|
308 |
* Admin page.
|
309 |
*/
|
310 |
public function admin_options() {
|
311 |
+
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
312 |
+
|
313 |
+
wp_enqueue_script( 'pagseguro-admin', plugins_url( 'assets/js/admin' . $suffix . '.js', plugin_dir_path( __FILE__ ) ), array( 'jquery' ), WC_PagSeguro::VERSION, true );
|
314 |
+
|
315 |
+
include 'admin/views/html-admin-page.php';
|
316 |
}
|
317 |
|
318 |
/**
|
330 |
|
331 |
/**
|
332 |
* Payment fields.
|
|
|
|
|
333 |
*/
|
334 |
public function payment_fields() {
|
335 |
wp_enqueue_script( 'wc-credit-card-form' );
|
354 |
/**
|
355 |
* Process the payment and return the result.
|
356 |
*
|
357 |
+
* @param int $order_id Order ID.
|
358 |
*
|
359 |
+
* @return array
|
360 |
*/
|
361 |
public function process_payment( $order_id ) {
|
362 |
$order = new WC_Order( $order_id );
|
378 |
|
379 |
return array(
|
380 |
'result' => 'success',
|
381 |
+
'redirect' => $response['url'],
|
382 |
);
|
383 |
} else {
|
384 |
foreach ( $response['error'] as $error ) {
|
387 |
|
388 |
return array(
|
389 |
'result' => 'fail',
|
390 |
+
'redirect' => '',
|
391 |
);
|
392 |
}
|
393 |
} else {
|
395 |
|
396 |
return array(
|
397 |
'result' => 'success',
|
398 |
+
'redirect' => add_query_arg( array( 'use_shipping' => $use_shipping ), $order->get_checkout_payment_url( true ) ),
|
399 |
);
|
400 |
}
|
401 |
}
|
403 |
/**
|
404 |
* Output for the order received page.
|
405 |
*
|
406 |
+
* @param int $order_id Order ID.
|
|
|
|
|
407 |
*/
|
408 |
public function receipt_page( $order_id ) {
|
409 |
$order = new WC_Order( $order_id );
|
440 |
'lightbox_script_url' => $this->api->get_lightbox_url(),
|
441 |
), 'woocommerce/pagseguro/', WC_PagSeguro::get_templates_path() );
|
442 |
} else {
|
443 |
+
include 'views/html-receipt-page-error.php';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
}
|
445 |
}
|
446 |
|
457 |
do_action( 'valid_pagseguro_ipn_request', $ipn );
|
458 |
exit();
|
459 |
} else {
|
460 |
+
wp_die( esc_html__( 'PagSeguro Request Unauthorized', 'woocommerce-pagseguro' ), esc_html__( 'PagSeguro Request Unauthorized', 'woocommerce-pagseguro' ), array( 'response' => 401 ) );
|
|
|
461 |
}
|
462 |
}
|
463 |
|
485 |
'type' => '',
|
486 |
'method' => '',
|
487 |
'installments' => '',
|
488 |
+
'link' => '',
|
489 |
);
|
490 |
|
491 |
if ( isset( $posted->code ) ) {
|
608 |
/**
|
609 |
* Thank You page message.
|
610 |
*
|
611 |
+
* @param int $order_id Order ID.
|
|
|
|
|
612 |
*/
|
613 |
public function thankyou_page( $order_id ) {
|
614 |
$data = get_post_meta( $order_id, '_wc_pagseguro_payment_data', true );
|
includes/class-wc-pagseguro-xml.php
CHANGED
@@ -1,4 +1,15 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
/**
|
3 |
* Extends the SimpleXMLElement class to add CDATA element.
|
4 |
*/
|
@@ -7,7 +18,7 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
7 |
/**
|
8 |
* Extract numbers from a string.
|
9 |
*
|
10 |
-
* @param string $string
|
11 |
*
|
12 |
* @return string
|
13 |
*/
|
@@ -73,6 +84,30 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
73 |
$receiver->addChild( 'email', $receiver_email );
|
74 |
}
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
/**
|
77 |
* Add sender data.
|
78 |
*
|
@@ -84,11 +119,19 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
84 |
$sender->addChild( 'name' )->add_cdata( $order->billing_first_name . ' ' . $order->billing_last_name );
|
85 |
$sender->addChild( 'email' )->add_cdata( $order->billing_email );
|
86 |
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
}
|
93 |
|
94 |
if ( isset( $order->billing_phone ) && ! empty( $order->billing_phone ) ) {
|
@@ -106,9 +149,9 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
106 |
/**
|
107 |
* Add shipping data.
|
108 |
*
|
109 |
-
* @param WC_Order
|
110 |
-
* @param bool
|
111 |
-
* @param float
|
112 |
*/
|
113 |
public function add_shipping_data( $order, $ship_to = false, $shipping_cost = 0 ) {
|
114 |
$type = ( $ship_to ) ? 'shipping' : 'billing';
|
@@ -144,7 +187,7 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
144 |
/**
|
145 |
* Add order items.
|
146 |
*
|
147 |
-
* @param array $
|
148 |
*/
|
149 |
public function add_items( $_items ) {
|
150 |
$items = $this->addChild( 'items' );
|
@@ -174,9 +217,9 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
174 |
* Add credit card data.
|
175 |
*
|
176 |
* @param WC_Order $order Order data.
|
177 |
-
* @param string
|
178 |
-
* @param array
|
179 |
-
* @param array
|
180 |
*/
|
181 |
public function add_credit_card_data( $order, $credit_card_token, $installment_data, $holder_data ) {
|
182 |
$credit_card = $this->addChild( 'creditCard' );
|
@@ -247,7 +290,7 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
247 |
/**
|
248 |
* Add max uses.
|
249 |
*
|
250 |
-
* @param int $max
|
251 |
*/
|
252 |
public function add_max_uses( $max = 1 ) {
|
253 |
$this->addChild( 'maxUses', $max );
|
@@ -256,7 +299,7 @@ class WC_PagSeguro_XML extends SimpleXMLElement {
|
|
256 |
/**
|
257 |
* Add max age.
|
258 |
*
|
259 |
-
* @param int $max
|
260 |
*/
|
261 |
public function add_max_age( $max = 120 ) {
|
262 |
$this->addChild( 'maxAge', $max );
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* WooCommerce PagSeguro SimpleXMLElement class
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Classes/XML
|
6 |
+
* @version 2.11.0
|
7 |
+
*/
|
8 |
+
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
10 |
+
exit;
|
11 |
+
}
|
12 |
+
|
13 |
/**
|
14 |
* Extends the SimpleXMLElement class to add CDATA element.
|
15 |
*/
|
18 |
/**
|
19 |
* Extract numbers from a string.
|
20 |
*
|
21 |
+
* @param string $string String where will be extracted numbers.
|
22 |
*
|
23 |
* @return string
|
24 |
*/
|
84 |
$receiver->addChild( 'email', $receiver_email );
|
85 |
}
|
86 |
|
87 |
+
/**
|
88 |
+
* Add CPF.
|
89 |
+
*
|
90 |
+
* @param string $number Document number.
|
91 |
+
*/
|
92 |
+
protected function add_cpf( $number, $xml ) {
|
93 |
+
$documents = $xml->addChild( 'documents' );
|
94 |
+
$document = $documents->addChild( 'document' );
|
95 |
+
$document->addChild( 'type', 'CPF' );
|
96 |
+
$document->addChild( 'value', $this->get_numbers( $number ) );
|
97 |
+
}
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Add CNPJ.
|
101 |
+
*
|
102 |
+
* @param string $number Document number.
|
103 |
+
*/
|
104 |
+
protected function add_cnpj( $number ) {
|
105 |
+
$documents = $sender->addChild( 'documents' );
|
106 |
+
$document = $documents->addChild( 'document' );
|
107 |
+
$document->addChild( 'type', 'CNPJ' );
|
108 |
+
$document->addChild( 'value', $this->get_numbers( $number ) );
|
109 |
+
}
|
110 |
+
|
111 |
/**
|
112 |
* Add sender data.
|
113 |
*
|
119 |
$sender->addChild( 'name' )->add_cdata( $order->billing_first_name . ' ' . $order->billing_last_name );
|
120 |
$sender->addChild( 'email' )->add_cdata( $order->billing_email );
|
121 |
|
122 |
+
$wcbcf_settings = get_option( 'wcbcf_settings' );
|
123 |
+
$wcbcf_settings = isset( $wcbcf_settings['person_type'] ) ? intval( $wcbcf_settings['person_type'] ) : 0;
|
124 |
+
|
125 |
+
if ( ( 0 === $wcbcf_settings || 2 === $wcbcf_settings ) && ! empty( $order->billing_cpf ) ) {
|
126 |
+
$this->add_cpf( $order->billing_cpf, $sender );
|
127 |
+
} else if ( ( 0 === $wcbcf_settings || 3 === $wcbcf_settings ) && ! empty( $order->billing_cnpj ) ) {
|
128 |
+
$this->add_cnpj( $order->billing_cnpj, $sender );
|
129 |
+
} else if ( ! empty( $order->billing_persontype ) ) {
|
130 |
+
if ( 1 == $order->billing_persontype && ! empty( $order->billing_cpf ) ) {
|
131 |
+
$this->add_cpf( $order->billing_cpf, $sender );
|
132 |
+
} else if ( 2 == $order->billing_persontype && ! empty( $order->billing_cnpj ) ) {
|
133 |
+
$this->add_cnpj( $order->billing_cnpj, $sender );
|
134 |
+
}
|
135 |
}
|
136 |
|
137 |
if ( isset( $order->billing_phone ) && ! empty( $order->billing_phone ) ) {
|
149 |
/**
|
150 |
* Add shipping data.
|
151 |
*
|
152 |
+
* @param WC_Order $order Order data.
|
153 |
+
* @param bool $ship_to Ship to (true = shipping address, false = billing address).
|
154 |
+
* @param float $shipping_cost Shipping cost.
|
155 |
*/
|
156 |
public function add_shipping_data( $order, $ship_to = false, $shipping_cost = 0 ) {
|
157 |
$type = ( $ship_to ) ? 'shipping' : 'billing';
|
187 |
/**
|
188 |
* Add order items.
|
189 |
*
|
190 |
+
* @param array $_items Order items.
|
191 |
*/
|
192 |
public function add_items( $_items ) {
|
193 |
$items = $this->addChild( 'items' );
|
217 |
* Add credit card data.
|
218 |
*
|
219 |
* @param WC_Order $order Order data.
|
220 |
+
* @param string $credit_card_token Credit card token.
|
221 |
+
* @param array $installment_data Installment data (quantity and value).
|
222 |
+
* @param array $holder_data Holder data (name, cpf, birth_date and phone).
|
223 |
*/
|
224 |
public function add_credit_card_data( $order, $credit_card_token, $installment_data, $holder_data ) {
|
225 |
$credit_card = $this->addChild( 'creditCard' );
|
290 |
/**
|
291 |
* Add max uses.
|
292 |
*
|
293 |
+
* @param int $max Max uses.
|
294 |
*/
|
295 |
public function add_max_uses( $max = 1 ) {
|
296 |
$this->addChild( 'maxUses', $max );
|
299 |
/**
|
300 |
* Add max age.
|
301 |
*
|
302 |
+
* @param int $max Max age.
|
303 |
*/
|
304 |
public function add_max_age( $max = 120 ) {
|
305 |
$this->addChild( 'maxAge', $max );
|
includes/views/html-admin-page.php
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Admin options screen.
|
4 |
-
*/
|
5 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
6 |
-
exit;
|
7 |
-
}
|
8 |
-
|
9 |
-
$reviews_url = 'https://wordpress.org/support/view/plugin-reviews/woocommerce-pagseguro?filter=5#postform';
|
10 |
-
|
11 |
-
?>
|
12 |
-
|
13 |
-
<h3><?php echo $this->method_title; ?></h3>
|
14 |
-
|
15 |
-
<?php echo $this->method_description; ?>
|
16 |
-
|
17 |
-
<?php if ( apply_filters( 'woocommerce_pagseguro_help_message', true ) ) : ?>
|
18 |
-
<div class="updated woocommerce-message">
|
19 |
-
<p><?php printf( __( 'Help us keep the %s plugin free making a %s or rate %s on %s. Thank you in advance!', 'woocommerce-pagseguro' ), '<strong>' . __( 'WooCommerce PagSeguro', 'woocommerce-pagseguro' ) . '</strong>', '<a href="http://claudiosmweb.com/doacoes/">' . __( 'donation', 'woocommerce-pagseguro' ) . '</a>', '<a href="' . esc_url( $reviews_url ) . '" target="_blank">★★★★★</a>', '<a href="' . esc_url( $reviews_url ) . '" target="_blank">' . __( 'WordPress.org', 'woocommerce-pagseguro' ) . '</a>' ); ?></p>
|
20 |
-
</div>
|
21 |
-
<?php endif; ?>
|
22 |
-
|
23 |
-
<table class="form-table">
|
24 |
-
<?php $this->generate_settings_html(); ?>
|
25 |
-
</table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/views/html-notice-ecfb-missing.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Admin View: Notice - WooCommerce Extra Checkout Fields for Brazil missing.
|
4 |
-
*/
|
5 |
-
|
6 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
7 |
-
exit;
|
8 |
-
}
|
9 |
-
|
10 |
-
$plugin_slug = 'woocommerce-extra-checkout-fields-for-brazil';
|
11 |
-
|
12 |
-
if ( current_user_can( 'install_plugins' ) ) {
|
13 |
-
$url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=' . $plugin_slug ), 'install-plugin_' . $plugin_slug );
|
14 |
-
} else {
|
15 |
-
$url = 'http://wordpress.org/plugins/' . $plugin_slug;
|
16 |
-
}
|
17 |
-
?>
|
18 |
-
|
19 |
-
<div class="error">
|
20 |
-
<p><strong><?php _e( 'PagSeguro Disabled', 'woocommerce-pagseguro' ); ?></strong>: <?php printf( __( 'Checkout Transparent requires the latest version of the %s to works.', 'woocommerce-pagseguro' ), '<a href="' . esc_url( $url ) . '">' . __( 'Extra Checkout Fields for Brazil', 'woocommerce-pagseguro' ) . '</a>' ); ?></p>
|
21 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/views/html-receipt-page-error.php
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Receipt page error template
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro/Templates
|
6 |
+
*/
|
7 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
8 |
+
exit;
|
9 |
+
}
|
10 |
+
|
11 |
+
?>
|
12 |
+
|
13 |
+
<ul class="woocommerce-error">
|
14 |
+
<?php foreach ( $response['error'] as $message ) : ?>
|
15 |
+
<li><?php echo $message; ?></li>
|
16 |
+
<?php endforeach; ?>
|
17 |
+
</ul>
|
18 |
+
|
19 |
+
<a class="button cancel" href="<?php echo esc_url( $order->get_cancel_order_url() ); ?>"><?php esc_html_e( 'Click to try again', 'woocommerce-pagseguro' ); ?></a>
|
languages/woocommerce-pagseguro-pt_BR.mo
DELETED
Binary file
|
languages/woocommerce-pagseguro-pt_BR.po
DELETED
@@ -1,818 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: WooCommerce PagSeguro 2.8.1\n"
|
4 |
-
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/woocommerce-"
|
5 |
-
"pagseguro\n"
|
6 |
-
"POT-Creation-Date: 2015-08-20 00:50:35+00:00\n"
|
7 |
-
"PO-Revision-Date: 2015-08-19 21:51-0300\n"
|
8 |
-
"Last-Translator: Claudio Sanches <contato@claudiosmweb.com>\n"
|
9 |
-
"Language-Team: LANGUAGE <EMAIL@ADDRESS>\n"
|
10 |
-
"Language: Portuguese (Brazil)\n"
|
11 |
-
"MIME-Version: 1.0\n"
|
12 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
-
"Content-Transfer-Encoding: 8bit\n"
|
14 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Generator: Poedit 1.5.4\n"
|
17 |
-
"X-Poedit-Basepath: .\n"
|
18 |
-
"X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
|
19 |
-
"__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
20 |
-
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
|
21 |
-
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
22 |
-
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
23 |
-
"X-Loco-Target-Locale: pt_BR\n"
|
24 |
-
"X-Poedit-SearchPath-0: ..\n"
|
25 |
-
|
26 |
-
#: includes/class-wc-pagseguro-api.php:128
|
27 |
-
#: includes/class-wc-pagseguro-api.php:151
|
28 |
-
#: includes/class-wc-pagseguro-gateway.php:241
|
29 |
-
#: templates/transparent-checkout-form.php:20
|
30 |
-
msgid "Credit Card"
|
31 |
-
msgstr "Cartão de Crédito"
|
32 |
-
|
33 |
-
#: includes/class-wc-pagseguro-api.php:129
|
34 |
-
#: includes/class-wc-pagseguro-api.php:152
|
35 |
-
msgid "Billet"
|
36 |
-
msgstr "Boleto"
|
37 |
-
|
38 |
-
#: includes/class-wc-pagseguro-api.php:130
|
39 |
-
#: includes/class-wc-pagseguro-api.php:153
|
40 |
-
#: includes/class-wc-pagseguro-gateway.php:247
|
41 |
-
#: templates/transparent-checkout-form.php:24
|
42 |
-
msgid "Bank Transfer"
|
43 |
-
msgstr "Débito Online"
|
44 |
-
|
45 |
-
#: includes/class-wc-pagseguro-api.php:131
|
46 |
-
#: includes/class-wc-pagseguro-api.php:184
|
47 |
-
msgid "PagSeguro credit"
|
48 |
-
msgstr "Saldo PagSeguro"
|
49 |
-
|
50 |
-
#: includes/class-wc-pagseguro-api.php:132
|
51 |
-
#: includes/class-wc-pagseguro-api.php:185
|
52 |
-
msgid "Oi Paggo"
|
53 |
-
msgstr "Oi Paggo"
|
54 |
-
|
55 |
-
#: includes/class-wc-pagseguro-api.php:133
|
56 |
-
#: includes/class-wc-pagseguro-api.php:186
|
57 |
-
msgid "Account deposit"
|
58 |
-
msgstr "Depósito em conta"
|
59 |
-
|
60 |
-
#: includes/class-wc-pagseguro-api.php:139
|
61 |
-
#: includes/class-wc-pagseguro-api.php:192
|
62 |
-
msgid "Unknown"
|
63 |
-
msgstr "Desconhecido"
|
64 |
-
|
65 |
-
#: includes/class-wc-pagseguro-api.php:236
|
66 |
-
msgid ""
|
67 |
-
"Please enter with a valid phone number with DDD. Example: (11) 5555-5555."
|
68 |
-
msgstr ""
|
69 |
-
"Por favor, digite um número de telefone válido com DDD. Exemplo: (11) "
|
70 |
-
"5555-5555."
|
71 |
-
|
72 |
-
#: includes/class-wc-pagseguro-api.php:243
|
73 |
-
msgid "Please enter with a valid zip code number."
|
74 |
-
msgstr "Por favor, digite um número de CEP válido."
|
75 |
-
|
76 |
-
#: includes/class-wc-pagseguro-api.php:246
|
77 |
-
msgid "Please enter with a valid CPF number."
|
78 |
-
msgstr "Por favor, digite um número de CPF válido."
|
79 |
-
|
80 |
-
#: includes/class-wc-pagseguro-api.php:250
|
81 |
-
msgid "Please select a bank to make payment by bank transfer."
|
82 |
-
msgstr ""
|
83 |
-
"Por favor, selecione o banco que você irá utilizar para fazer a "
|
84 |
-
"transferência bancária."
|
85 |
-
|
86 |
-
#: includes/class-wc-pagseguro-api.php:253
|
87 |
-
msgid "Credit card holder CPF is required."
|
88 |
-
msgstr "É obrigatório informar o CPF do portador do cartão de crédito."
|
89 |
-
|
90 |
-
#: includes/class-wc-pagseguro-api.php:256
|
91 |
-
msgid "Credit card holder birthdate is required."
|
92 |
-
msgstr ""
|
93 |
-
"É obrigatório informar da data de nascimento do portador do cartão de "
|
94 |
-
"crédito."
|
95 |
-
|
96 |
-
#: includes/class-wc-pagseguro-api.php:259
|
97 |
-
msgid "Credit card holder name is required."
|
98 |
-
msgstr "É obrigatório informar o nome do portador do cartão de crédito."
|
99 |
-
|
100 |
-
#: includes/class-wc-pagseguro-api.php:263
|
101 |
-
msgid "Credit card holder phone is required."
|
102 |
-
msgstr ""
|
103 |
-
"É obrigatório informar o número de telefone do portador do cartão de crédito."
|
104 |
-
|
105 |
-
#: includes/class-wc-pagseguro-api.php:267
|
106 |
-
msgid ""
|
107 |
-
"The address complement is too long, it cannot be more than 40 characters."
|
108 |
-
msgstr ""
|
109 |
-
"O complemento do endereço é muito grande, não pode ter mais do que 40 "
|
110 |
-
"caráteres."
|
111 |
-
|
112 |
-
#: includes/class-wc-pagseguro-api.php:270
|
113 |
-
msgid "<strong>Neighborhood</strong> is a required field."
|
114 |
-
msgstr "<strong>Bairro</strong> é um campo obrigatório."
|
115 |
-
|
116 |
-
#: includes/class-wc-pagseguro-api.php:273
|
117 |
-
msgid "Credit card holder CPF invalid."
|
118 |
-
msgstr "CPF do dono do cartão de crédito é inválido."
|
119 |
-
|
120 |
-
#: includes/class-wc-pagseguro-api.php:276
|
121 |
-
msgid ""
|
122 |
-
"Invalid email domain. You must use an email @sandbox.pagseguro.com.br while "
|
123 |
-
"you are using the PagSeguro Sandbox."
|
124 |
-
msgstr ""
|
125 |
-
"Domínio do e-mail é inválido. Você deve utilizar um e-mail @sandbox."
|
126 |
-
"pagseguro.com.br enquanto você esta usando o Sandbox do PagSeguro."
|
127 |
-
|
128 |
-
#: includes/class-wc-pagseguro-api.php:280
|
129 |
-
msgid ""
|
130 |
-
"An error has occurred while processing your payment, please review your data "
|
131 |
-
"and try again. Or contact us for assistance."
|
132 |
-
msgstr ""
|
133 |
-
"Um erro ocorreu ao processar o seu pagamento, por favor, revise os seus "
|
134 |
-
"dados e tente novamente. Ou entre em contato conosco para obter assistência."
|
135 |
-
|
136 |
-
#: includes/class-wc-pagseguro-api.php:391
|
137 |
-
msgid "Order %s"
|
138 |
-
msgstr "Pedido %s"
|
139 |
-
|
140 |
-
#: includes/class-wc-pagseguro-api.php:583
|
141 |
-
msgid ""
|
142 |
-
"Too bad! The email or token from the PagSeguro are invalids my little friend!"
|
143 |
-
msgstr "Que feio! O e-mail ou token do PagSeguro são inválidos amiguinho!"
|
144 |
-
|
145 |
-
#: includes/class-wc-pagseguro-api.php:619
|
146 |
-
#: includes/class-wc-pagseguro-api.php:638
|
147 |
-
#: includes/class-wc-pagseguro-api.php:660
|
148 |
-
#: includes/class-wc-pagseguro-api.php:719
|
149 |
-
#: includes/class-wc-pagseguro-api.php:738
|
150 |
-
#: includes/class-wc-pagseguro-gateway.php:15
|
151 |
-
#: includes/class-wc-pagseguro-gateway.php:201
|
152 |
-
msgid "PagSeguro"
|
153 |
-
msgstr "PagSeguro"
|
154 |
-
|
155 |
-
#: includes/class-wc-pagseguro-api.php:638
|
156 |
-
#: includes/class-wc-pagseguro-api.php:738
|
157 |
-
msgid ""
|
158 |
-
"An error has occurred while processing your payment, please try again. Or "
|
159 |
-
"contact us for assistance."
|
160 |
-
msgstr ""
|
161 |
-
"Um erro ocorreu ao processar o seu pagamento, por favor, tente novamente ou "
|
162 |
-
"entre em contato para obter ajuda."
|
163 |
-
|
164 |
-
#: includes/class-wc-pagseguro-api.php:660
|
165 |
-
msgid "Please, select a payment method."
|
166 |
-
msgstr "Por favor, selecione um método de pagamento."
|
167 |
-
|
168 |
-
#: includes/class-wc-pagseguro-api.php:686
|
169 |
-
msgid ""
|
170 |
-
"You are not allowed to use the PagSeguro Transparent Checkout. Looks like "
|
171 |
-
"you neglected to installation guide of this plugin. This is not pretty, do "
|
172 |
-
"you know?"
|
173 |
-
msgstr ""
|
174 |
-
"Você não tem permissão para usar o Checkout Transparente do PagSeguro. "
|
175 |
-
"Parace que você negligenciou o guia de instalação deste plugin. Que feio "
|
176 |
-
"isso hein?"
|
177 |
-
|
178 |
-
#: includes/class-wc-pagseguro-gateway.php:16
|
179 |
-
msgid ""
|
180 |
-
"Accept payments by credit card, bank debit or banking ticket using the "
|
181 |
-
"PagSeguro."
|
182 |
-
msgstr ""
|
183 |
-
"Aceite pagamentos por cartão de crédito, débito bancário ou boleto bancário "
|
184 |
-
"utilizando o PagSeguro."
|
185 |
-
|
186 |
-
#: includes/class-wc-pagseguro-gateway.php:17
|
187 |
-
msgid "Proceed to payment"
|
188 |
-
msgstr "Realizar pagamento"
|
189 |
-
|
190 |
-
#: includes/class-wc-pagseguro-gateway.php:160
|
191 |
-
msgid "interest free"
|
192 |
-
msgstr "sem juros"
|
193 |
-
|
194 |
-
#: includes/class-wc-pagseguro-gateway.php:161
|
195 |
-
msgid "Invalid credit card number."
|
196 |
-
msgstr "O número do cartão de crédito é inválido."
|
197 |
-
|
198 |
-
#: includes/class-wc-pagseguro-gateway.php:162
|
199 |
-
msgid "Invalid expiry date, please use the MM / YYYY date format."
|
200 |
-
msgstr ""
|
201 |
-
"A data de expiração é inválida, por favor, utilize o formato MM / AAAA."
|
202 |
-
|
203 |
-
#: includes/class-wc-pagseguro-gateway.php:163
|
204 |
-
msgid "Please check the expiry date and use a valid format as MM / YYYY."
|
205 |
-
msgstr ""
|
206 |
-
"Por favor, verifique a data de expiração e utilize o formato MM / AAAA."
|
207 |
-
|
208 |
-
#: includes/class-wc-pagseguro-gateway.php:164
|
209 |
-
msgid ""
|
210 |
-
"Unable to process the data from your credit card on the PagSeguro, please "
|
211 |
-
"try again or contact us for assistance."
|
212 |
-
msgstr ""
|
213 |
-
"Não foi possível processar os dados do seu cartão de crédito no PagSeguro, "
|
214 |
-
"por favor, tente novamente ou entre em contato para receber ajuda."
|
215 |
-
|
216 |
-
#: includes/class-wc-pagseguro-gateway.php:165
|
217 |
-
msgid "Select a number of installments."
|
218 |
-
msgstr "Selecione o número de parcelas."
|
219 |
-
|
220 |
-
#: includes/class-wc-pagseguro-gateway.php:179
|
221 |
-
msgid "System Status > Logs"
|
222 |
-
msgstr "Status do Sistema > Logs"
|
223 |
-
|
224 |
-
#: includes/class-wc-pagseguro-gateway.php:191
|
225 |
-
msgid "Enable/Disable"
|
226 |
-
msgstr "Habilita/Desabilita"
|
227 |
-
|
228 |
-
#: includes/class-wc-pagseguro-gateway.php:193
|
229 |
-
msgid "Enable PagSeguro"
|
230 |
-
msgstr "Ativar o PagSeguro"
|
231 |
-
|
232 |
-
#: includes/class-wc-pagseguro-gateway.php:197
|
233 |
-
msgid "Title"
|
234 |
-
msgstr "Título"
|
235 |
-
|
236 |
-
#: includes/class-wc-pagseguro-gateway.php:199
|
237 |
-
msgid "This controls the title which the user sees during checkout."
|
238 |
-
msgstr "Isto controla o título que o usuário vê durante o checkout."
|
239 |
-
|
240 |
-
#: includes/class-wc-pagseguro-gateway.php:204
|
241 |
-
msgid "Description"
|
242 |
-
msgstr "Descrição"
|
243 |
-
|
244 |
-
#: includes/class-wc-pagseguro-gateway.php:206
|
245 |
-
msgid "This controls the description which the user sees during checkout."
|
246 |
-
msgstr "Isso controla a descrição que o usuário vê durante o checkout."
|
247 |
-
|
248 |
-
#: includes/class-wc-pagseguro-gateway.php:207
|
249 |
-
#: templates/lightbox-checkout.php:19
|
250 |
-
msgid "Pay via PagSeguro"
|
251 |
-
msgstr "Pagar com PagSeguro"
|
252 |
-
|
253 |
-
#: includes/class-wc-pagseguro-gateway.php:210
|
254 |
-
msgid "PagSeguro Email"
|
255 |
-
msgstr "Email cadastrado no PagSeguro"
|
256 |
-
|
257 |
-
#: includes/class-wc-pagseguro-gateway.php:212
|
258 |
-
msgid ""
|
259 |
-
"Please enter your PagSeguro email address. This is needed in order to take "
|
260 |
-
"payment."
|
261 |
-
msgstr ""
|
262 |
-
"Por favor digite o seu endereço de email do PagSeguro. É necessário para "
|
263 |
-
"receber o pagamento."
|
264 |
-
|
265 |
-
#: includes/class-wc-pagseguro-gateway.php:217
|
266 |
-
msgid "PagSeguro Token"
|
267 |
-
msgstr "Token do PagSeguro"
|
268 |
-
|
269 |
-
#: includes/class-wc-pagseguro-gateway.php:219
|
270 |
-
msgid ""
|
271 |
-
"Please enter your PagSeguro token. This is needed to process the payment and "
|
272 |
-
"notifications. Is possible generate a new token %s."
|
273 |
-
msgstr ""
|
274 |
-
"Por favor digite seu token do PagSeguro. É necessário para processar o "
|
275 |
-
"pagamento e as notificações de status da compra. É possível gerar um novo "
|
276 |
-
"token %s."
|
277 |
-
|
278 |
-
#: includes/class-wc-pagseguro-gateway.php:219
|
279 |
-
msgid "here"
|
280 |
-
msgstr "aqui"
|
281 |
-
|
282 |
-
#: includes/class-wc-pagseguro-gateway.php:223
|
283 |
-
msgid "Integration method"
|
284 |
-
msgstr "Método de integração"
|
285 |
-
|
286 |
-
#: includes/class-wc-pagseguro-gateway.php:225
|
287 |
-
msgid ""
|
288 |
-
"Choose how the customer will interact with the PagSeguro. Redirect (Client "
|
289 |
-
"goes to PagSeguro page) or Lightbox (Inside your store)"
|
290 |
-
msgstr ""
|
291 |
-
"Escolha como o cliente irá interagir com o PagSeguro. Redirecionamento (O "
|
292 |
-
"cliente vai para a página do PagSeguro) ou Lightbox (cliente paga dentro da "
|
293 |
-
"loja)"
|
294 |
-
|
295 |
-
#: includes/class-wc-pagseguro-gateway.php:230
|
296 |
-
msgid "Redirect (default)"
|
297 |
-
msgstr "Redirecionamento (padrão)"
|
298 |
-
|
299 |
-
#: includes/class-wc-pagseguro-gateway.php:231
|
300 |
-
msgid "Lightbox"
|
301 |
-
msgstr "Lightbox"
|
302 |
-
|
303 |
-
#: includes/class-wc-pagseguro-gateway.php:232
|
304 |
-
msgid "Transparent Checkout"
|
305 |
-
msgstr "Checkout Transparente"
|
306 |
-
|
307 |
-
#: includes/class-wc-pagseguro-gateway.php:236
|
308 |
-
msgid "Transparent Checkout Options"
|
309 |
-
msgstr "Opções do Checkout Transparente"
|
310 |
-
|
311 |
-
#: includes/class-wc-pagseguro-gateway.php:243
|
312 |
-
msgid "Enable Credit Card for Transparente Checkout"
|
313 |
-
msgstr "Ativar cartão de crédito para o checkout transparente"
|
314 |
-
|
315 |
-
#: includes/class-wc-pagseguro-gateway.php:249
|
316 |
-
msgid "Enable Bank Transfer for Transparente Checkout"
|
317 |
-
msgstr "Ativar transferência bancária para o checkout transparente"
|
318 |
-
|
319 |
-
#: includes/class-wc-pagseguro-gateway.php:253
|
320 |
-
#: templates/transparent-checkout-form.php:28
|
321 |
-
msgid "Banking Ticket"
|
322 |
-
msgstr "Boleto Bancário"
|
323 |
-
|
324 |
-
#: includes/class-wc-pagseguro-gateway.php:255
|
325 |
-
msgid "Enable Banking Ticket for Transparente Checkout"
|
326 |
-
msgstr "Ativar boleto bancário para o checkout transparente"
|
327 |
-
|
328 |
-
#: includes/class-wc-pagseguro-gateway.php:259
|
329 |
-
msgid "Banking Ticket Tax Message"
|
330 |
-
msgstr "Mensagem sobre a taxa do boleto bancário"
|
331 |
-
|
332 |
-
#: includes/class-wc-pagseguro-gateway.php:261
|
333 |
-
msgid ""
|
334 |
-
"Display a message alerting the customer that will be charged R$ 1,00 for "
|
335 |
-
"payment by Banking Ticket"
|
336 |
-
msgstr ""
|
337 |
-
"Exibir uma mensagem alertando o cliente que será cobrado R$ 1,00 para "
|
338 |
-
"pagamento por boleto bancário"
|
339 |
-
|
340 |
-
#: includes/class-wc-pagseguro-gateway.php:265
|
341 |
-
msgid "Integration Behavior"
|
342 |
-
msgstr "Comportamento da Integração"
|
343 |
-
|
344 |
-
#: includes/class-wc-pagseguro-gateway.php:270
|
345 |
-
msgid "Send only the order total"
|
346 |
-
msgstr "Enviar apenas o total do pedido"
|
347 |
-
|
348 |
-
#: includes/class-wc-pagseguro-gateway.php:272
|
349 |
-
msgid ""
|
350 |
-
"If this option is enabled will only send the order total, not the list of "
|
351 |
-
"items."
|
352 |
-
msgstr ""
|
353 |
-
"Caso esta opção esteja ativada será enviado apenas o total do pedido e não a "
|
354 |
-
"lista de itens."
|
355 |
-
|
356 |
-
#: includes/class-wc-pagseguro-gateway.php:276
|
357 |
-
msgid "Invoice Prefix"
|
358 |
-
msgstr "Prefixo de pedido"
|
359 |
-
|
360 |
-
#: includes/class-wc-pagseguro-gateway.php:278
|
361 |
-
msgid ""
|
362 |
-
"Please enter a prefix for your invoice numbers. If you use your PagSeguro "
|
363 |
-
"account for multiple stores ensure this prefix is unqiue as PagSeguro will "
|
364 |
-
"not allow orders with the same invoice number."
|
365 |
-
msgstr ""
|
366 |
-
"Por favor informe um prefixo para utilizar com os números de pedidos. Caso "
|
367 |
-
"você utilize sua conta do PagSeguro em mais de uma loja, procure utilizar um "
|
368 |
-
"prefixo único para cada loja."
|
369 |
-
|
370 |
-
#: includes/class-wc-pagseguro-gateway.php:283
|
371 |
-
msgid "Gateway Testing"
|
372 |
-
msgstr "Teste de Gateway"
|
373 |
-
|
374 |
-
#: includes/class-wc-pagseguro-gateway.php:288
|
375 |
-
#: includes/class-wc-pagseguro-gateway.php:292
|
376 |
-
msgid "PagSeguro Sandbox"
|
377 |
-
msgstr "PagSeguro Sandbox"
|
378 |
-
|
379 |
-
#: includes/class-wc-pagseguro-gateway.php:290
|
380 |
-
msgid "Enable PagSeguro Sandbox"
|
381 |
-
msgstr "Ativar Sandbox do PagSeguro"
|
382 |
-
|
383 |
-
#: includes/class-wc-pagseguro-gateway.php:292
|
384 |
-
msgid ""
|
385 |
-
"PagSeguro Sandbox can be used to test the payments. <strong>Note:</strong> "
|
386 |
-
"you must use the development token that can be found in %s."
|
387 |
-
msgstr ""
|
388 |
-
"Você pode usar o PagSeguro Sandbox para testar os pagamentos. <strong>Nota:</"
|
389 |
-
"strong> você deve usar um token de desenvolvedor que pode ser encontrado em "
|
390 |
-
"%s."
|
391 |
-
|
392 |
-
#: includes/class-wc-pagseguro-gateway.php:295
|
393 |
-
msgid "Debug Log"
|
394 |
-
msgstr "Log de depuração"
|
395 |
-
|
396 |
-
#: includes/class-wc-pagseguro-gateway.php:297
|
397 |
-
msgid "Enable logging"
|
398 |
-
msgstr "Habilitar log"
|
399 |
-
|
400 |
-
#: includes/class-wc-pagseguro-gateway.php:299
|
401 |
-
msgid "Log PagSeguro events, such as API requests, inside %s"
|
402 |
-
msgstr ""
|
403 |
-
"Grava eventos do PagSeguro, como solicitações de API, dentro do arquivo %s"
|
404 |
-
|
405 |
-
#: includes/class-wc-pagseguro-gateway.php:446
|
406 |
-
msgid "Click to try again"
|
407 |
-
msgstr "Clique para tentar novamente"
|
408 |
-
|
409 |
-
#: includes/class-wc-pagseguro-gateway.php:465
|
410 |
-
msgid "PagSeguro Request Unauthorized"
|
411 |
-
msgstr "PagSeguro pedido não autorizado"
|
412 |
-
|
413 |
-
#: includes/class-wc-pagseguro-gateway.php:500
|
414 |
-
msgid "PagSeguro Transaction ID"
|
415 |
-
msgstr "PagSeguro: ID da transação"
|
416 |
-
|
417 |
-
#: includes/class-wc-pagseguro-gateway.php:507
|
418 |
-
msgid "Payer email"
|
419 |
-
msgstr "E-mail do comprador"
|
420 |
-
|
421 |
-
#: includes/class-wc-pagseguro-gateway.php:514
|
422 |
-
msgid "Payer name"
|
423 |
-
msgstr "Nome do comprador"
|
424 |
-
|
425 |
-
#: includes/class-wc-pagseguro-gateway.php:522
|
426 |
-
msgid "Payment type"
|
427 |
-
msgstr "Tipo de pagamento"
|
428 |
-
|
429 |
-
#: includes/class-wc-pagseguro-gateway.php:530
|
430 |
-
msgid "Payment method"
|
431 |
-
msgstr "Método de pagamento"
|
432 |
-
|
433 |
-
#: includes/class-wc-pagseguro-gateway.php:538
|
434 |
-
#: templates/transparent-checkout-form.php:54
|
435 |
-
msgid "Installments"
|
436 |
-
msgstr "Parcelas"
|
437 |
-
|
438 |
-
#: includes/class-wc-pagseguro-gateway.php:546
|
439 |
-
msgid "Payment url"
|
440 |
-
msgstr "Link de pagamento"
|
441 |
-
|
442 |
-
#: includes/class-wc-pagseguro-gateway.php:558
|
443 |
-
msgid ""
|
444 |
-
"PagSeguro: The buyer initiated the transaction, but so far the PagSeguro not "
|
445 |
-
"received any payment information."
|
446 |
-
msgstr ""
|
447 |
-
"PagSeguro: O comprador iniciou a transação, mas até o momento o PagSeguro "
|
448 |
-
"não recebeu nenhuma informação sobre o pagamento."
|
449 |
-
|
450 |
-
#: includes/class-wc-pagseguro-gateway.php:562
|
451 |
-
msgid "PagSeguro: Payment under review."
|
452 |
-
msgstr "PagSeguro: Pagamento em análise."
|
453 |
-
|
454 |
-
#: includes/class-wc-pagseguro-gateway.php:566
|
455 |
-
msgid "PagSeguro: Payment approved."
|
456 |
-
msgstr "PagSeguro: Pagamento aprovado."
|
457 |
-
|
458 |
-
#: includes/class-wc-pagseguro-gateway.php:576
|
459 |
-
msgid "PagSeguro: Payment completed and credited to your account."
|
460 |
-
msgstr "PagSeguro: Pagamento concluído e creditado na sua conta."
|
461 |
-
|
462 |
-
#: includes/class-wc-pagseguro-gateway.php:580
|
463 |
-
msgid "PagSeguro: Payment came into dispute."
|
464 |
-
msgstr "PagSeguro: O pagamento entrou em disputa."
|
465 |
-
|
466 |
-
#: includes/class-wc-pagseguro-gateway.php:582
|
467 |
-
msgid "Payment for order %s came into dispute"
|
468 |
-
msgstr "Pagamento do pedido %s entrou em disputa"
|
469 |
-
|
470 |
-
#: includes/class-wc-pagseguro-gateway.php:583
|
471 |
-
msgid "Payment in dispute"
|
472 |
-
msgstr "Pagamento em disputa"
|
473 |
-
|
474 |
-
#: includes/class-wc-pagseguro-gateway.php:584
|
475 |
-
msgid ""
|
476 |
-
"Order %s has been marked as on-hold, because the payment came into dispute "
|
477 |
-
"in PagSeguro."
|
478 |
-
msgstr ""
|
479 |
-
"O pedido %s mudou de status para aguardando, porque o pagamento entrou em "
|
480 |
-
"disputa no PagSeguro."
|
481 |
-
|
482 |
-
#: includes/class-wc-pagseguro-gateway.php:589
|
483 |
-
msgid "PagSeguro: Payment refunded."
|
484 |
-
msgstr "PagSeguro: Pagamento devolvido."
|
485 |
-
|
486 |
-
#: includes/class-wc-pagseguro-gateway.php:591
|
487 |
-
msgid "Payment for order %s refunded"
|
488 |
-
msgstr "O pagamento do pedido %s foi devolvido"
|
489 |
-
|
490 |
-
#: includes/class-wc-pagseguro-gateway.php:592
|
491 |
-
msgid "Payment refunded"
|
492 |
-
msgstr "Pagamento reembolsado"
|
493 |
-
|
494 |
-
#: includes/class-wc-pagseguro-gateway.php:593
|
495 |
-
msgid "Order %s has been marked as refunded by PagSeguro."
|
496 |
-
msgstr "O pedido %s mudou de status para reembolsado pelo PagSeguro."
|
497 |
-
|
498 |
-
#: includes/class-wc-pagseguro-gateway.php:598
|
499 |
-
msgid "PagSeguro: Payment canceled."
|
500 |
-
msgstr "PagSeguro: Pagamento cancelado."
|
501 |
-
|
502 |
-
#: includes/views/html-admin-page.php:19
|
503 |
-
msgid ""
|
504 |
-
"Help us keep the %s plugin free making a %s or rate %s on %s. Thank you in "
|
505 |
-
"advance!"
|
506 |
-
msgstr ""
|
507 |
-
"Ajude-nos a manter o %s gratuito, para isso faça uma %s ou vote %s no %s. "
|
508 |
-
"Muito obrigado!"
|
509 |
-
|
510 |
-
#. #-#-#-#-# woocommerce-pagseguro.pot (WooCommerce PagSeguro 2.10.3) #-#-#-#-#
|
511 |
-
#. Plugin Name of the plugin/theme
|
512 |
-
#: includes/views/html-admin-page.php:19
|
513 |
-
msgid "WooCommerce PagSeguro"
|
514 |
-
msgstr "WooCommerce PagSeguro"
|
515 |
-
|
516 |
-
#: includes/views/html-admin-page.php:19
|
517 |
-
msgid "donation"
|
518 |
-
msgstr "doação"
|
519 |
-
|
520 |
-
#: includes/views/html-admin-page.php:19
|
521 |
-
msgid "WordPress.org"
|
522 |
-
msgstr "WordPress.org"
|
523 |
-
|
524 |
-
#: includes/views/html-notice-currency-not-supported.php:13
|
525 |
-
#: includes/views/html-notice-ecfb-missing.php:20
|
526 |
-
#: includes/views/html-notice-email-missing.php:13
|
527 |
-
#: includes/views/html-notice-token-missing.php:13
|
528 |
-
msgid "PagSeguro Disabled"
|
529 |
-
msgstr "PagSeguro Desabilitado"
|
530 |
-
|
531 |
-
#: includes/views/html-notice-currency-not-supported.php:13
|
532 |
-
msgid ""
|
533 |
-
"Currency <code>%s</code> is not supported. Works only with Brazilian Real."
|
534 |
-
msgstr ""
|
535 |
-
"A moeda <code>%s</code> não é suportada. Funciona apenas com Real (BRL)."
|
536 |
-
|
537 |
-
#: includes/views/html-notice-ecfb-missing.php:20
|
538 |
-
msgid "Checkout Transparent requires the latest version of the %s to works."
|
539 |
-
msgstr ""
|
540 |
-
"Para utilizar o Checkout Transparente é necessário instalar a última versão "
|
541 |
-
"do %s."
|
542 |
-
|
543 |
-
#: includes/views/html-notice-ecfb-missing.php:20
|
544 |
-
msgid "Extra Checkout Fields for Brazil"
|
545 |
-
msgstr "Extra Checkout Fields for Brazil"
|
546 |
-
|
547 |
-
#: includes/views/html-notice-email-missing.php:13
|
548 |
-
msgid "You should inform your email address. %s"
|
549 |
-
msgstr "Você deve informar o seu endereço de email. %s"
|
550 |
-
|
551 |
-
#: includes/views/html-notice-email-missing.php:13
|
552 |
-
#: includes/views/html-notice-token-missing.php:13
|
553 |
-
msgid "Click here to configure!"
|
554 |
-
msgstr "Clique aqui para configurar!"
|
555 |
-
|
556 |
-
#: includes/views/html-notice-token-missing.php:13
|
557 |
-
msgid "You should inform your token. %s"
|
558 |
-
msgstr "Você deve informar o seu token. %s"
|
559 |
-
|
560 |
-
#: templates/emails/html-instructions.php:15
|
561 |
-
#: templates/emails/plain-instructions.php:14
|
562 |
-
msgid "Payment"
|
563 |
-
msgstr "Pagamento"
|
564 |
-
|
565 |
-
#: templates/emails/html-instructions.php:19
|
566 |
-
#: templates/emails/plain-instructions.php:20
|
567 |
-
msgid ""
|
568 |
-
"Please use the link below to view your Banking Ticket, you can print and pay "
|
569 |
-
"in your internet banking or in a lottery retailer:"
|
570 |
-
msgstr ""
|
571 |
-
"Por favor, utilize o link abaixo para ver o seu boleto bancário, você pode "
|
572 |
-
"imprimi-lo e fazer o pagamento pelo site do seu banco ou por uma casa "
|
573 |
-
"lotérica."
|
574 |
-
|
575 |
-
#: templates/emails/html-instructions.php:19
|
576 |
-
#: templates/payment-instructions.php:18
|
577 |
-
msgid "Pay the Banking Ticket"
|
578 |
-
msgstr "Pagar boleto bancário"
|
579 |
-
|
580 |
-
#: templates/emails/html-instructions.php:19
|
581 |
-
#: templates/emails/plain-instructions.php:28
|
582 |
-
#: templates/payment-instructions.php:18
|
583 |
-
msgid ""
|
584 |
-
"After we receive the ticket payment confirmation, your order will be "
|
585 |
-
"processed."
|
586 |
-
msgstr ""
|
587 |
-
"O seu pedido será processado assim que recebermos a confirmação do pagamento "
|
588 |
-
"do seu boleto."
|
589 |
-
|
590 |
-
#: templates/emails/html-instructions.php:23
|
591 |
-
#: templates/emails/plain-instructions.php:32
|
592 |
-
msgid "Please use the link below to make the payment in your bankline:"
|
593 |
-
msgstr ""
|
594 |
-
"Por favor, utilize o link abaixo para realizar o pagamento pelo do seu banco:"
|
595 |
-
|
596 |
-
#: templates/emails/html-instructions.php:23
|
597 |
-
#: templates/payment-instructions.php:24
|
598 |
-
msgid "Pay at your bank"
|
599 |
-
msgstr "Pagar no seu banco"
|
600 |
-
|
601 |
-
#: templates/emails/html-instructions.php:23
|
602 |
-
#: templates/emails/plain-instructions.php:40
|
603 |
-
#: templates/payment-instructions.php:24
|
604 |
-
msgid ""
|
605 |
-
"After we receive the confirmation from the bank, your order will be "
|
606 |
-
"processed."
|
607 |
-
msgstr ""
|
608 |
-
"O seu pedido será processado assim que recebermos a confirmação do pagamento "
|
609 |
-
"pelo seu banco."
|
610 |
-
|
611 |
-
#: templates/emails/html-instructions.php:27
|
612 |
-
#: templates/emails/plain-instructions.php:44
|
613 |
-
#: templates/payment-instructions.php:30
|
614 |
-
msgid "You just made the payment in %s using the %s."
|
615 |
-
msgstr "Você acabou de fazer o pagamento em %s usando %s."
|
616 |
-
|
617 |
-
#: templates/emails/html-instructions.php:27
|
618 |
-
#: templates/emails/plain-instructions.php:48
|
619 |
-
#: templates/payment-instructions.php:30
|
620 |
-
msgid ""
|
621 |
-
"As soon as the credit card operator confirm the payment, your order will be "
|
622 |
-
"processed."
|
623 |
-
msgstr ""
|
624 |
-
"O seu pedido será processado assim que a operadora do seu cartão de crédito "
|
625 |
-
"confirmar o pagamento."
|
626 |
-
|
627 |
-
#: templates/lightbox-checkout.php:15
|
628 |
-
msgid ""
|
629 |
-
"Thank you for your order, please wait a few seconds to make the payment with "
|
630 |
-
"PagSeguro."
|
631 |
-
msgstr ""
|
632 |
-
"Obrigado pelo seu pedido, por favor, aguarde alguns segundos para fazer o "
|
633 |
-
"pagamento com o PagSeguro."
|
634 |
-
|
635 |
-
#: templates/lightbox-checkout.php:17
|
636 |
-
msgid ""
|
637 |
-
"Thank you for your order, please click the button below to pay with "
|
638 |
-
"PagSeguro."
|
639 |
-
msgstr ""
|
640 |
-
"Obrigado pelo seu pedido, por favor, clique no botão abaixo para pagar com o "
|
641 |
-
"PagSeguro."
|
642 |
-
|
643 |
-
#: templates/lightbox-checkout.php:19
|
644 |
-
msgid "Cancel order & restore cart"
|
645 |
-
msgstr "Cancelar pedido & restaurar carrinho"
|
646 |
-
|
647 |
-
#: templates/payment-instructions.php:18
|
648 |
-
msgid "Please click in the following button to view your Banking Ticket."
|
649 |
-
msgstr ""
|
650 |
-
"Por favor, click no botão a seguir para visualizar o seu boleto bancário."
|
651 |
-
|
652 |
-
#: templates/payment-instructions.php:18
|
653 |
-
msgid ""
|
654 |
-
"You can print and pay in your internet banking or in a lottery retailer."
|
655 |
-
msgstr ""
|
656 |
-
"Você pode imprimi-lo e fazer o pagamento pelo site do seu banco ou por uma "
|
657 |
-
"casa lotérica."
|
658 |
-
|
659 |
-
#: templates/payment-instructions.php:24
|
660 |
-
msgid "Please use the following button to make the payment in your bankline."
|
661 |
-
msgstr ""
|
662 |
-
"Por favor, utilize o botão a seguinte para fazer o pagamento no seu banco."
|
663 |
-
|
664 |
-
#: templates/transparent-checkout-form.php:36
|
665 |
-
msgid "Card Holder Name"
|
666 |
-
msgstr "Nome do portador"
|
667 |
-
|
668 |
-
#: templates/transparent-checkout-form.php:36
|
669 |
-
msgid "as recorded on the card"
|
670 |
-
msgstr "como gravado no cartão"
|
671 |
-
|
672 |
-
#: templates/transparent-checkout-form.php:40
|
673 |
-
msgid "Card Number"
|
674 |
-
msgstr "Número do cartão"
|
675 |
-
|
676 |
-
#: templates/transparent-checkout-form.php:45
|
677 |
-
msgid "Expiry (MM/YYYY)"
|
678 |
-
msgstr "Validade (MM/AAAA)"
|
679 |
-
|
680 |
-
#: templates/transparent-checkout-form.php:46
|
681 |
-
msgid "MM / YYYY"
|
682 |
-
msgstr "MM / AAAA"
|
683 |
-
|
684 |
-
#: templates/transparent-checkout-form.php:49
|
685 |
-
msgid "Security Code"
|
686 |
-
msgstr "Código de segurança"
|
687 |
-
|
688 |
-
#: templates/transparent-checkout-form.php:50
|
689 |
-
msgid "CVC"
|
690 |
-
msgstr "CVV"
|
691 |
-
|
692 |
-
#: templates/transparent-checkout-form.php:54
|
693 |
-
msgid "the minimum value of the installment is R$ 5,00"
|
694 |
-
msgstr "o valor mínimo da parcela é R$ 5,00"
|
695 |
-
|
696 |
-
#: templates/transparent-checkout-form.php:60
|
697 |
-
msgid "Card Holder CPF"
|
698 |
-
msgstr "CPF do portador"
|
699 |
-
|
700 |
-
#: templates/transparent-checkout-form.php:65
|
701 |
-
msgid "Card Holder Birth Date"
|
702 |
-
msgstr "Data de nascimento do portador"
|
703 |
-
|
704 |
-
#: templates/transparent-checkout-form.php:66
|
705 |
-
msgid "DD / MM / YYYY"
|
706 |
-
msgstr "DD / MM / AAAA"
|
707 |
-
|
708 |
-
#: templates/transparent-checkout-form.php:69
|
709 |
-
msgid "Card Holder Phone"
|
710 |
-
msgstr "Telefone do portador"
|
711 |
-
|
712 |
-
#: templates/transparent-checkout-form.php:70
|
713 |
-
msgid "(xx) xxxx-xxxx"
|
714 |
-
msgstr "(xx) xxxx-xxxx"
|
715 |
-
|
716 |
-
#: templates/transparent-checkout-form.php:78
|
717 |
-
msgid "Select your bank:"
|
718 |
-
msgstr "Selecione o seu banco:"
|
719 |
-
|
720 |
-
#: templates/transparent-checkout-form.php:80
|
721 |
-
msgid "Banco Bradesco"
|
722 |
-
msgstr "Banco Bradesco"
|
723 |
-
|
724 |
-
#: templates/transparent-checkout-form.php:81
|
725 |
-
msgid "Banco Itaú"
|
726 |
-
msgstr "Banco Itaú"
|
727 |
-
|
728 |
-
#: templates/transparent-checkout-form.php:82
|
729 |
-
msgid "Banco do Brasil"
|
730 |
-
msgstr "Banco do Brasil"
|
731 |
-
|
732 |
-
#: templates/transparent-checkout-form.php:83
|
733 |
-
msgid "Banco Banrisul"
|
734 |
-
msgstr "Banco Banrisul"
|
735 |
-
|
736 |
-
#: templates/transparent-checkout-form.php:84
|
737 |
-
msgid "Banco HSBC"
|
738 |
-
msgstr "Banco HSBC"
|
739 |
-
|
740 |
-
#: templates/transparent-checkout-form.php:86
|
741 |
-
msgid ""
|
742 |
-
"* After clicking \"Proceed to payment\" you will have access to the link "
|
743 |
-
"that will take you to your bank's website, so you can make the payment in "
|
744 |
-
"total security."
|
745 |
-
msgstr ""
|
746 |
-
"* Após clicar em \"Realizar pagamento\" você receberá acesso ao link que o "
|
747 |
-
"levará ao site do seu banco, assim é possível realizar o pagamento em total "
|
748 |
-
"segurança."
|
749 |
-
|
750 |
-
#: templates/transparent-checkout-form.php:95
|
751 |
-
msgid "The order will be confirmed only after the payment approval."
|
752 |
-
msgstr "O pedido será confirmado apenas após a confirmação do pagamento."
|
753 |
-
|
754 |
-
#: templates/transparent-checkout-form.php:98
|
755 |
-
msgid "Tax"
|
756 |
-
msgstr "Taxa"
|
757 |
-
|
758 |
-
#: templates/transparent-checkout-form.php:98
|
759 |
-
msgid ""
|
760 |
-
"R$ 1,00 (rate applied to cover management risk costs of the payment method)."
|
761 |
-
msgstr ""
|
762 |
-
"R$ 1,00 (taxa aplicada para cobrir custos de gestão de risco do meio de "
|
763 |
-
"pagamento)."
|
764 |
-
|
765 |
-
#: templates/transparent-checkout-form.php:101
|
766 |
-
msgid ""
|
767 |
-
"* After clicking \"Proceed to payment\" you will have access to banking "
|
768 |
-
"ticket which you can print and pay in your internet banking or in a lottery "
|
769 |
-
"retailer."
|
770 |
-
msgstr ""
|
771 |
-
"* Após clicar em \"Realizar pagamento\" você receberá o seu boleto bancário, "
|
772 |
-
"é possível imprimi-lo e pagar pelo site do seu banco ou por uma casa "
|
773 |
-
"lotérica."
|
774 |
-
|
775 |
-
#: woocommerce-pagseguro.php:99
|
776 |
-
msgid "Settings"
|
777 |
-
msgstr "Configurações"
|
778 |
-
|
779 |
-
#: woocommerce-pagseguro.php:165
|
780 |
-
msgid ""
|
781 |
-
"WooCommerce PagSeguro Gateway depends on the last version of %s to work!"
|
782 |
-
msgstr ""
|
783 |
-
"WooCommerce PagSeguro Gateway depende da última versão do %s para funcionar!"
|
784 |
-
|
785 |
-
#: woocommerce-pagseguro.php:165
|
786 |
-
msgid "WooCommerce"
|
787 |
-
msgstr "WooCommerce"
|
788 |
-
|
789 |
-
#. Plugin URI of the plugin/theme
|
790 |
-
msgid "http://github.com/claudiosmweb/woocommerce-pagseguro"
|
791 |
-
msgstr "http://github.com/claudiosmweb/woocommerce-pagseguro"
|
792 |
-
|
793 |
-
#. Description of the plugin/theme
|
794 |
-
msgid "Gateway de pagamento PagSeguro para WooCommerce."
|
795 |
-
msgstr "Gateway de pagamento PagSeguro para WooCommerce."
|
796 |
-
|
797 |
-
#. Author of the plugin/theme
|
798 |
-
msgid "Claudio Sanches, Gabriel Reguly"
|
799 |
-
msgstr "Claudio Sanches, Gabriel Reguly"
|
800 |
-
|
801 |
-
#. Author URI of the plugin/theme
|
802 |
-
msgid "http://claudiosmweb.com/"
|
803 |
-
msgstr "http://claudiosmweb.com/"
|
804 |
-
|
805 |
-
#~ msgid "Documentation"
|
806 |
-
#~ msgstr "Documentação"
|
807 |
-
|
808 |
-
#~ msgid "Support"
|
809 |
-
#~ msgstr "Suporte"
|
810 |
-
|
811 |
-
#~ msgid "Need help? Check the %s or %s."
|
812 |
-
#~ msgstr "Precisa de ajuda? Confira a %s ou %s."
|
813 |
-
|
814 |
-
#~ msgid "official documentation"
|
815 |
-
#~ msgstr "documentação oficial"
|
816 |
-
|
817 |
-
#~ msgid "contact us"
|
818 |
-
#~ msgstr "entre em contato conosco"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/woocommerce-pagseguro.pot
CHANGED
@@ -1,71 +1,154 @@
|
|
1 |
-
# Copyright (C) 2015
|
2 |
-
# This file is distributed under the
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce PagSeguro 2.
|
6 |
-
"Report-Msgid-Bugs-To:
|
7 |
-
"pagseguro\n"
|
8 |
-
"POT-Creation-Date: 2015-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
#: includes/class-wc-pagseguro-api.php:128
|
17 |
#: includes/class-wc-pagseguro-api.php:151
|
18 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
19 |
#: templates/transparent-checkout-form.php:20
|
20 |
msgid "Credit Card"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: includes/class-wc-pagseguro-api.php:129
|
24 |
#: includes/class-wc-pagseguro-api.php:152
|
25 |
msgid "Billet"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: includes/class-wc-pagseguro-api.php:130
|
29 |
#: includes/class-wc-pagseguro-api.php:153
|
30 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
31 |
#: templates/transparent-checkout-form.php:24
|
32 |
msgid "Bank Transfer"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: includes/class-wc-pagseguro-api.php:
|
36 |
-
#: includes/class-wc-pagseguro-api.php:
|
37 |
msgid "PagSeguro credit"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: includes/class-wc-pagseguro-api.php:
|
41 |
-
#: includes/class-wc-pagseguro-api.php:
|
42 |
msgid "Oi Paggo"
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: includes/class-wc-pagseguro-api.php:
|
46 |
-
#: includes/class-wc-pagseguro-api.php:
|
47 |
msgid "Account deposit"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: includes/class-wc-pagseguro-api.php:
|
51 |
-
#: includes/class-wc-pagseguro-api.php:
|
52 |
msgid "Unknown"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: includes/class-wc-pagseguro-api.php:
|
56 |
-
msgid ""
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
msgstr ""
|
59 |
|
|
|
|
|
|
|
|
|
60 |
#: includes/class-wc-pagseguro-api.php:243
|
61 |
-
|
|
|
62 |
msgstr ""
|
63 |
|
|
|
64 |
#: includes/class-wc-pagseguro-api.php:246
|
65 |
-
|
|
|
|
|
|
|
66 |
msgstr ""
|
67 |
|
68 |
#: includes/class-wc-pagseguro-api.php:250
|
|
|
|
|
|
|
|
|
69 |
msgid "Please select a bank to make payment by bank transfer."
|
70 |
msgstr ""
|
71 |
|
@@ -73,426 +156,398 @@ msgstr ""
|
|
73 |
msgid "Credit card holder CPF is required."
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: includes/class-wc-pagseguro-api.php:
|
77 |
msgid "Credit card holder birthdate is required."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: includes/class-wc-pagseguro-api.php:
|
81 |
msgid "Credit card holder name is required."
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: includes/class-wc-pagseguro-api.php:
|
|
|
85 |
msgid "Credit card holder phone is required."
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: includes/class-wc-pagseguro-api.php:
|
89 |
-
|
90 |
-
"The address complement is too long, it cannot be more than 40 characters."
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: includes/class-wc-pagseguro-api.php:
|
94 |
msgid "<strong>Neighborhood</strong> is a required field."
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: includes/class-wc-pagseguro-api.php:
|
98 |
msgid "Credit card holder CPF invalid."
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: includes/class-wc-pagseguro-api.php:
|
102 |
msgid ""
|
103 |
"Invalid email domain. You must use an email @sandbox.pagseguro.com.br while "
|
104 |
"you are using the PagSeguro Sandbox."
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: includes/class-wc-pagseguro-api.php:
|
108 |
msgid ""
|
109 |
-
"An error has occurred while processing your payment, please review your
|
110 |
-
"and try again. Or contact us for assistance."
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: includes/class-wc-pagseguro-api.php:
|
114 |
msgid "Order %s"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: includes/class-wc-pagseguro-api.php:
|
118 |
msgid ""
|
119 |
-
"Too bad! The email or token from the PagSeguro are invalids my little
|
|
|
120 |
msgstr ""
|
121 |
|
122 |
-
#: includes/class-wc-pagseguro-api.php:
|
123 |
-
#: includes/class-wc-pagseguro-api.php:
|
124 |
-
#: includes/class-wc-pagseguro-api.php:
|
125 |
-
#: includes/class-wc-pagseguro-api.php:
|
126 |
-
#: includes/class-wc-pagseguro-api.php:
|
127 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
128 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
129 |
msgid "PagSeguro"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: includes/class-wc-pagseguro-api.php:
|
133 |
-
#: includes/class-wc-pagseguro-api.php:
|
134 |
msgid ""
|
135 |
"An error has occurred while processing your payment, please try again. Or "
|
136 |
"contact us for assistance."
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: includes/class-wc-pagseguro-api.php:
|
140 |
msgid "Please, select a payment method."
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: includes/class-wc-pagseguro-api.php:
|
144 |
msgid ""
|
145 |
"You are not allowed to use the PagSeguro Transparent Checkout. Looks like "
|
146 |
"you neglected to installation guide of this plugin. This is not pretty, do "
|
147 |
"you know?"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
151 |
msgid ""
|
152 |
"Accept payments by credit card, bank debit or banking ticket using the "
|
153 |
"PagSeguro."
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
157 |
msgid "Proceed to payment"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
161 |
msgid "interest free"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
165 |
msgid "Invalid credit card number."
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
169 |
msgid "Invalid expiry date, please use the MM / YYYY date format."
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
173 |
msgid "Please check the expiry date and use a valid format as MM / YYYY."
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
177 |
msgid ""
|
178 |
"Unable to process the data from your credit card on the PagSeguro, please "
|
179 |
"try again or contact us for assistance."
|
180 |
msgstr ""
|
181 |
|
182 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
183 |
msgid "Select a number of installments."
|
184 |
msgstr ""
|
185 |
|
186 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
187 |
msgid "System Status > Logs"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
191 |
msgid "Enable/Disable"
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
195 |
msgid "Enable PagSeguro"
|
196 |
msgstr ""
|
197 |
|
198 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
199 |
msgid "Title"
|
200 |
msgstr ""
|
201 |
|
202 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
203 |
msgid "This controls the title which the user sees during checkout."
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
207 |
msgid "Description"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
211 |
msgid "This controls the description which the user sees during checkout."
|
212 |
msgstr ""
|
213 |
|
214 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
215 |
#: templates/lightbox-checkout.php:19
|
216 |
msgid "Pay via PagSeguro"
|
217 |
msgstr ""
|
218 |
|
219 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
msgid "PagSeguro Email"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
224 |
msgid ""
|
225 |
"Please enter your PagSeguro email address. This is needed in order to take "
|
226 |
"payment."
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
230 |
msgid "PagSeguro Token"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
234 |
msgid ""
|
235 |
-
"Please enter your PagSeguro token. This is needed to process the payment
|
236 |
-
"notifications. Is possible generate a new token %s."
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
|
|
|
|
240 |
msgid "here"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
244 |
-
msgid "
|
245 |
msgstr ""
|
246 |
|
247 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
248 |
msgid ""
|
249 |
-
"
|
250 |
-
"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
254 |
-
msgid "
|
255 |
-
msgstr ""
|
256 |
-
|
257 |
-
#: includes/class-wc-pagseguro-gateway.php:231
|
258 |
-
msgid "Lightbox"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
262 |
-
msgid "
|
|
|
|
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
266 |
msgid "Transparent Checkout Options"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
270 |
msgid "Enable Credit Card for Transparente Checkout"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
274 |
msgid "Enable Bank Transfer for Transparente Checkout"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
278 |
#: templates/transparent-checkout-form.php:28
|
279 |
msgid "Banking Ticket"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
283 |
msgid "Enable Banking Ticket for Transparente Checkout"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
287 |
msgid "Banking Ticket Tax Message"
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
291 |
msgid ""
|
292 |
"Display a message alerting the customer that will be charged R$ 1,00 for "
|
293 |
"payment by Banking Ticket"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
297 |
msgid "Integration Behavior"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
301 |
msgid "Send only the order total"
|
302 |
msgstr ""
|
303 |
|
304 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
305 |
msgid ""
|
306 |
"If this option is enabled will only send the order total, not the list of "
|
307 |
"items."
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
311 |
msgid "Invoice Prefix"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
315 |
msgid ""
|
316 |
"Please enter a prefix for your invoice numbers. If you use your PagSeguro "
|
317 |
"account for multiple stores ensure this prefix is unqiue as PagSeguro will "
|
318 |
"not allow orders with the same invoice number."
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
322 |
msgid "Gateway Testing"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
326 |
-
#: includes/class-wc-pagseguro-gateway.php:292
|
327 |
-
msgid "PagSeguro Sandbox"
|
328 |
-
msgstr ""
|
329 |
-
|
330 |
-
#: includes/class-wc-pagseguro-gateway.php:290
|
331 |
-
msgid "Enable PagSeguro Sandbox"
|
332 |
-
msgstr ""
|
333 |
-
|
334 |
-
#: includes/class-wc-pagseguro-gateway.php:292
|
335 |
-
msgid ""
|
336 |
-
"PagSeguro Sandbox can be used to test the payments. <strong>Note:</strong> "
|
337 |
-
"you must use the development token that can be found in %s."
|
338 |
-
msgstr ""
|
339 |
-
|
340 |
-
#: includes/class-wc-pagseguro-gateway.php:295
|
341 |
msgid "Debug Log"
|
342 |
msgstr ""
|
343 |
|
344 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
345 |
msgid "Enable logging"
|
346 |
msgstr ""
|
347 |
|
348 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
349 |
msgid "Log PagSeguro events, such as API requests, inside %s"
|
350 |
msgstr ""
|
351 |
|
352 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
353 |
-
msgid "Click to try again"
|
354 |
-
msgstr ""
|
355 |
-
|
356 |
-
#: includes/class-wc-pagseguro-gateway.php:465
|
357 |
msgid "PagSeguro Request Unauthorized"
|
358 |
msgstr ""
|
359 |
|
360 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
361 |
msgid "PagSeguro Transaction ID"
|
362 |
msgstr ""
|
363 |
|
364 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
365 |
msgid "Payer email"
|
366 |
msgstr ""
|
367 |
|
368 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
369 |
msgid "Payer name"
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
373 |
msgid "Payment type"
|
374 |
msgstr ""
|
375 |
|
376 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
377 |
msgid "Payment method"
|
378 |
msgstr ""
|
379 |
|
380 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
381 |
#: templates/transparent-checkout-form.php:54
|
382 |
msgid "Installments"
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
386 |
msgid "Payment url"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
390 |
msgid ""
|
391 |
-
"PagSeguro: The buyer initiated the transaction, but so far the PagSeguro
|
392 |
-
"received any payment information."
|
393 |
msgstr ""
|
394 |
|
395 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
396 |
msgid "PagSeguro: Payment under review."
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
400 |
msgid "PagSeguro: Payment approved."
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
404 |
msgid "PagSeguro: Payment completed and credited to your account."
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
408 |
msgid "PagSeguro: Payment came into dispute."
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
412 |
msgid "Payment for order %s came into dispute"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
416 |
msgid "Payment in dispute"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
420 |
msgid ""
|
421 |
"Order %s has been marked as on-hold, because the payment came into dispute "
|
422 |
"in PagSeguro."
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
426 |
msgid "PagSeguro: Payment refunded."
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
430 |
msgid "Payment for order %s refunded"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
434 |
msgid "Payment refunded"
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
438 |
msgid "Order %s has been marked as refunded by PagSeguro."
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: includes/class-wc-pagseguro-gateway.php:
|
442 |
msgid "PagSeguro: Payment canceled."
|
443 |
msgstr ""
|
444 |
|
445 |
-
#: includes/views/html-
|
446 |
-
msgid ""
|
447 |
-
"Help us keep the %s plugin free making a %s or rate %s on %s. Thank you in "
|
448 |
-
"advance!"
|
449 |
-
msgstr ""
|
450 |
-
|
451 |
-
#. #-#-#-#-# woocommerce-pagseguro.pot (WooCommerce PagSeguro 2.10.3) #-#-#-#-#
|
452 |
-
#. Plugin Name of the plugin/theme
|
453 |
-
#: includes/views/html-admin-page.php:19
|
454 |
-
msgid "WooCommerce PagSeguro"
|
455 |
-
msgstr ""
|
456 |
-
|
457 |
-
#: includes/views/html-admin-page.php:19
|
458 |
-
msgid "donation"
|
459 |
-
msgstr ""
|
460 |
-
|
461 |
-
#: includes/views/html-admin-page.php:19
|
462 |
-
msgid "WordPress.org"
|
463 |
-
msgstr ""
|
464 |
-
|
465 |
-
#: includes/views/html-notice-currency-not-supported.php:13
|
466 |
-
#: includes/views/html-notice-ecfb-missing.php:20
|
467 |
-
#: includes/views/html-notice-email-missing.php:13
|
468 |
-
#: includes/views/html-notice-token-missing.php:13
|
469 |
-
msgid "PagSeguro Disabled"
|
470 |
-
msgstr ""
|
471 |
-
|
472 |
-
#: includes/views/html-notice-currency-not-supported.php:13
|
473 |
-
msgid ""
|
474 |
-
"Currency <code>%s</code> is not supported. Works only with Brazilian Real."
|
475 |
-
msgstr ""
|
476 |
-
|
477 |
-
#: includes/views/html-notice-ecfb-missing.php:20
|
478 |
-
msgid "Checkout Transparent requires the latest version of the %s to works."
|
479 |
-
msgstr ""
|
480 |
-
|
481 |
-
#: includes/views/html-notice-ecfb-missing.php:20
|
482 |
-
msgid "Extra Checkout Fields for Brazil"
|
483 |
-
msgstr ""
|
484 |
-
|
485 |
-
#: includes/views/html-notice-email-missing.php:13
|
486 |
-
msgid "You should inform your email address. %s"
|
487 |
-
msgstr ""
|
488 |
-
|
489 |
-
#: includes/views/html-notice-email-missing.php:13
|
490 |
-
#: includes/views/html-notice-token-missing.php:13
|
491 |
-
msgid "Click here to configure!"
|
492 |
-
msgstr ""
|
493 |
-
|
494 |
-
#: includes/views/html-notice-token-missing.php:13
|
495 |
-
msgid "You should inform your token. %s"
|
496 |
msgstr ""
|
497 |
|
498 |
#: templates/emails/html-instructions.php:15
|
@@ -503,8 +558,8 @@ msgstr ""
|
|
503 |
#: templates/emails/html-instructions.php:19
|
504 |
#: templates/emails/plain-instructions.php:20
|
505 |
msgid ""
|
506 |
-
"Please use the link below to view your Banking Ticket, you can print and
|
507 |
-
"in your internet banking or in a lottery retailer:"
|
508 |
msgstr ""
|
509 |
|
510 |
#: templates/emails/html-instructions.php:19
|
@@ -554,8 +609,8 @@ msgstr ""
|
|
554 |
|
555 |
#: templates/lightbox-checkout.php:15
|
556 |
msgid ""
|
557 |
-
"Thank you for your order, please wait a few seconds to make the payment
|
558 |
-
"PagSeguro."
|
559 |
msgstr ""
|
560 |
|
561 |
#: templates/lightbox-checkout.php:17
|
@@ -573,8 +628,7 @@ msgid "Please click in the following button to view your Banking Ticket."
|
|
573 |
msgstr ""
|
574 |
|
575 |
#: templates/payment-instructions.php:18
|
576 |
-
msgid ""
|
577 |
-
"You can print and pay in your internet banking or in a lottery retailer."
|
578 |
msgstr ""
|
579 |
|
580 |
#: templates/payment-instructions.php:24
|
@@ -673,8 +727,7 @@ msgid "Tax"
|
|
673 |
msgstr ""
|
674 |
|
675 |
#: templates/transparent-checkout-form.php:98
|
676 |
-
msgid ""
|
677 |
-
"R$ 1,00 (rate applied to cover management risk costs of the payment method)."
|
678 |
msgstr ""
|
679 |
|
680 |
#: templates/transparent-checkout-form.php:101
|
@@ -684,19 +737,10 @@ msgid ""
|
|
684 |
"retailer."
|
685 |
msgstr ""
|
686 |
|
687 |
-
#: woocommerce-pagseguro.php:
|
688 |
msgid "Settings"
|
689 |
msgstr ""
|
690 |
|
691 |
-
#: woocommerce-pagseguro.php:165
|
692 |
-
msgid ""
|
693 |
-
"WooCommerce PagSeguro Gateway depends on the last version of %s to work!"
|
694 |
-
msgstr ""
|
695 |
-
|
696 |
-
#: woocommerce-pagseguro.php:165
|
697 |
-
msgid "WooCommerce"
|
698 |
-
msgstr ""
|
699 |
-
|
700 |
#. Plugin URI of the plugin/theme
|
701 |
msgid "http://github.com/claudiosmweb/woocommerce-pagseguro"
|
702 |
msgstr ""
|
@@ -706,9 +750,9 @@ msgid "Gateway de pagamento PagSeguro para WooCommerce."
|
|
706 |
msgstr ""
|
707 |
|
708 |
#. Author of the plugin/theme
|
709 |
-
msgid "Claudio Sanches
|
710 |
msgstr ""
|
711 |
|
712 |
#. Author URI of the plugin/theme
|
713 |
msgid "http://claudiosmweb.com/"
|
714 |
-
msgstr ""
|
1 |
+
# Copyright (C) 2015 Claudio Sanches
|
2 |
+
# This file is distributed under the GPLv2 or later.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce PagSeguro 2.11.0\n"
|
6 |
+
"Report-Msgid-Bugs-To: "
|
7 |
+
"https://wordpress.org/support/plugin/woocommerce-pagseguro\n"
|
8 |
+
"POT-Creation-Date: 2015-12-21 04:58:41+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
15 |
+
"X-Generator: grunt-wp-i18n 0.5.3\n"
|
16 |
+
|
17 |
+
#: includes/admin/views/html-admin-help-message.php:14
|
18 |
+
msgid ""
|
19 |
+
"Help us keep the %s plugin free making a donation or rate %s on "
|
20 |
+
"WordPress.org. Thank you in advance!"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#. Plugin Name of the plugin/theme
|
24 |
+
msgid "WooCommerce PagSeguro"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: includes/admin/views/html-admin-help-message.php:15
|
28 |
+
msgid "Make a donation"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: includes/admin/views/html-admin-help-message.php:15
|
32 |
+
msgid "Make a review"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: includes/admin/views/html-notice-currency-not-supported.php:15
|
36 |
+
#: includes/admin/views/html-notice-email-missing.php:15
|
37 |
+
#: includes/admin/views/html-notice-token-missing.php:15
|
38 |
+
msgid "PagSeguro Disabled"
|
39 |
+
msgstr ""
|
40 |
+
|
41 |
+
#: includes/admin/views/html-notice-currency-not-supported.php:15
|
42 |
+
msgid "Currency <code>%s</code> is not supported. Works only with Brazilian Real."
|
43 |
+
msgstr ""
|
44 |
+
|
45 |
+
#: includes/admin/views/html-notice-email-missing.php:15
|
46 |
+
msgid "You should inform your email address. %s"
|
47 |
+
msgstr ""
|
48 |
+
|
49 |
+
#: includes/admin/views/html-notice-email-missing.php:15
|
50 |
+
#: includes/admin/views/html-notice-token-missing.php:15
|
51 |
+
msgid "Click here to configure!"
|
52 |
+
msgstr ""
|
53 |
+
|
54 |
+
#: includes/admin/views/html-notice-missing-ecfb.php:22
|
55 |
+
msgid "depends on the last version of Extra Checkout Fields for Brazil to work!"
|
56 |
+
msgstr ""
|
57 |
+
|
58 |
+
#: includes/admin/views/html-notice-missing-ecfb.php:25
|
59 |
+
msgid "Active Extra Checkout Fields for Brazil"
|
60 |
+
msgstr ""
|
61 |
+
|
62 |
+
#: includes/admin/views/html-notice-missing-ecfb.php:33
|
63 |
+
msgid "Install Extra Checkout Fields for Brazil"
|
64 |
+
msgstr ""
|
65 |
+
|
66 |
+
#: includes/admin/views/html-notice-missing-woocommerce.php:22
|
67 |
+
msgid "depends on the last version of WooCommerce to work!"
|
68 |
+
msgstr ""
|
69 |
+
|
70 |
+
#: includes/admin/views/html-notice-missing-woocommerce.php:25
|
71 |
+
msgid "Active WooCommerce"
|
72 |
+
msgstr ""
|
73 |
+
|
74 |
+
#: includes/admin/views/html-notice-missing-woocommerce.php:33
|
75 |
+
msgid "Install WooCommerce"
|
76 |
+
msgstr ""
|
77 |
+
|
78 |
+
#: includes/admin/views/html-notice-token-missing.php:15
|
79 |
+
msgid "You should inform your token. %s"
|
80 |
+
msgstr ""
|
81 |
|
|
|
82 |
#: includes/class-wc-pagseguro-api.php:151
|
83 |
+
#: includes/class-wc-pagseguro-gateway.php:251
|
84 |
#: templates/transparent-checkout-form.php:20
|
85 |
msgid "Credit Card"
|
86 |
msgstr ""
|
87 |
|
|
|
88 |
#: includes/class-wc-pagseguro-api.php:152
|
89 |
msgid "Billet"
|
90 |
msgstr ""
|
91 |
|
|
|
92 |
#: includes/class-wc-pagseguro-api.php:153
|
93 |
+
#: includes/class-wc-pagseguro-gateway.php:257
|
94 |
#: templates/transparent-checkout-form.php:24
|
95 |
msgid "Bank Transfer"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: includes/class-wc-pagseguro-api.php:154
|
99 |
+
#: includes/class-wc-pagseguro-api.php:203
|
100 |
msgid "PagSeguro credit"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: includes/class-wc-pagseguro-api.php:155
|
104 |
+
#: includes/class-wc-pagseguro-api.php:204
|
105 |
msgid "Oi Paggo"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: includes/class-wc-pagseguro-api.php:156
|
109 |
+
#: includes/class-wc-pagseguro-api.php:205
|
110 |
msgid "Account deposit"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: includes/class-wc-pagseguro-api.php:159
|
114 |
+
#: includes/class-wc-pagseguro-api.php:208
|
115 |
msgid "Unknown"
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: includes/class-wc-pagseguro-api.php:170
|
119 |
+
msgid "Credit Card %s"
|
120 |
+
msgstr ""
|
121 |
+
|
122 |
+
#: includes/class-wc-pagseguro-api.php:171
|
123 |
+
msgid "Billet %s"
|
124 |
+
msgstr ""
|
125 |
+
|
126 |
+
#: includes/class-wc-pagseguro-api.php:172
|
127 |
+
msgid "Bank Transfer %s"
|
128 |
msgstr ""
|
129 |
|
130 |
+
#: includes/class-wc-pagseguro-api.php:239
|
131 |
+
#: includes/class-wc-pagseguro-api.php:240
|
132 |
+
#: includes/class-wc-pagseguro-api.php:241
|
133 |
+
#: includes/class-wc-pagseguro-api.php:242
|
134 |
#: includes/class-wc-pagseguro-api.php:243
|
135 |
+
#: includes/class-wc-pagseguro-api.php:244
|
136 |
+
msgid "Please enter with a valid phone number with DDD. Example: (11) 5555-5555."
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: includes/class-wc-pagseguro-api.php:245
|
140 |
#: includes/class-wc-pagseguro-api.php:246
|
141 |
+
#: includes/class-wc-pagseguro-api.php:247
|
142 |
+
#: includes/class-wc-pagseguro-api.php:248
|
143 |
+
#: includes/class-wc-pagseguro-api.php:249
|
144 |
+
msgid "Please enter with a valid zip code number."
|
145 |
msgstr ""
|
146 |
|
147 |
#: includes/class-wc-pagseguro-api.php:250
|
148 |
+
msgid "Please enter with a valid CPF number."
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: includes/class-wc-pagseguro-api.php:252
|
152 |
msgid "Please select a bank to make payment by bank transfer."
|
153 |
msgstr ""
|
154 |
|
156 |
msgid "Credit card holder CPF is required."
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: includes/class-wc-pagseguro-api.php:254
|
160 |
msgid "Credit card holder birthdate is required."
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: includes/class-wc-pagseguro-api.php:255
|
164 |
msgid "Credit card holder name is required."
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: includes/class-wc-pagseguro-api.php:256
|
168 |
+
#: includes/class-wc-pagseguro-api.php:257
|
169 |
msgid "Credit card holder phone is required."
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: includes/class-wc-pagseguro-api.php:258
|
173 |
+
#: includes/class-wc-pagseguro-api.php:259
|
174 |
+
msgid "The address complement is too long, it cannot be more than 40 characters."
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: includes/class-wc-pagseguro-api.php:260
|
178 |
msgid "<strong>Neighborhood</strong> is a required field."
|
179 |
msgstr ""
|
180 |
|
181 |
+
#: includes/class-wc-pagseguro-api.php:261
|
182 |
msgid "Credit card holder CPF invalid."
|
183 |
msgstr ""
|
184 |
|
185 |
+
#: includes/class-wc-pagseguro-api.php:262
|
186 |
msgid ""
|
187 |
"Invalid email domain. You must use an email @sandbox.pagseguro.com.br while "
|
188 |
"you are using the PagSeguro Sandbox."
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: includes/class-wc-pagseguro-api.php:269
|
192 |
msgid ""
|
193 |
+
"An error has occurred while processing your payment, please review your "
|
194 |
+
"data and try again. Or contact us for assistance."
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: includes/class-wc-pagseguro-api.php:378
|
198 |
msgid "Order %s"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: includes/class-wc-pagseguro-api.php:572
|
202 |
msgid ""
|
203 |
+
"Too bad! The email or token from the PagSeguro are invalids my little "
|
204 |
+
"friend!"
|
205 |
msgstr ""
|
206 |
|
207 |
+
#: includes/class-wc-pagseguro-api.php:609
|
208 |
+
#: includes/class-wc-pagseguro-api.php:629
|
209 |
+
#: includes/class-wc-pagseguro-api.php:651
|
210 |
+
#: includes/class-wc-pagseguro-api.php:711
|
211 |
+
#: includes/class-wc-pagseguro-api.php:731
|
212 |
+
#: includes/class-wc-pagseguro-gateway.php:24
|
213 |
+
#: includes/class-wc-pagseguro-gateway.php:186
|
214 |
msgid "PagSeguro"
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: includes/class-wc-pagseguro-api.php:629
|
218 |
+
#: includes/class-wc-pagseguro-api.php:731
|
219 |
msgid ""
|
220 |
"An error has occurred while processing your payment, please try again. Or "
|
221 |
"contact us for assistance."
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: includes/class-wc-pagseguro-api.php:651
|
225 |
msgid "Please, select a payment method."
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: includes/class-wc-pagseguro-api.php:677
|
229 |
msgid ""
|
230 |
"You are not allowed to use the PagSeguro Transparent Checkout. Looks like "
|
231 |
"you neglected to installation guide of this plugin. This is not pretty, do "
|
232 |
"you know?"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: includes/class-wc-pagseguro-gateway.php:25
|
236 |
msgid ""
|
237 |
"Accept payments by credit card, bank debit or banking ticket using the "
|
238 |
"PagSeguro."
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: includes/class-wc-pagseguro-gateway.php:26
|
242 |
msgid "Proceed to payment"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: includes/class-wc-pagseguro-gateway.php:145
|
246 |
msgid "interest free"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: includes/class-wc-pagseguro-gateway.php:146
|
250 |
msgid "Invalid credit card number."
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: includes/class-wc-pagseguro-gateway.php:147
|
254 |
msgid "Invalid expiry date, please use the MM / YYYY date format."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: includes/class-wc-pagseguro-gateway.php:148
|
258 |
msgid "Please check the expiry date and use a valid format as MM / YYYY."
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: includes/class-wc-pagseguro-gateway.php:149
|
262 |
msgid ""
|
263 |
"Unable to process the data from your credit card on the PagSeguro, please "
|
264 |
"try again or contact us for assistance."
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: includes/class-wc-pagseguro-gateway.php:150
|
268 |
msgid "Select a number of installments."
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: includes/class-wc-pagseguro-gateway.php:164
|
272 |
msgid "System Status > Logs"
|
273 |
msgstr ""
|
274 |
|
275 |
+
#: includes/class-wc-pagseguro-gateway.php:176
|
276 |
msgid "Enable/Disable"
|
277 |
msgstr ""
|
278 |
|
279 |
+
#: includes/class-wc-pagseguro-gateway.php:178
|
280 |
msgid "Enable PagSeguro"
|
281 |
msgstr ""
|
282 |
|
283 |
+
#: includes/class-wc-pagseguro-gateway.php:182
|
284 |
msgid "Title"
|
285 |
msgstr ""
|
286 |
|
287 |
+
#: includes/class-wc-pagseguro-gateway.php:184
|
288 |
msgid "This controls the title which the user sees during checkout."
|
289 |
msgstr ""
|
290 |
|
291 |
+
#: includes/class-wc-pagseguro-gateway.php:189
|
292 |
msgid "Description"
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: includes/class-wc-pagseguro-gateway.php:191
|
296 |
msgid "This controls the description which the user sees during checkout."
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: includes/class-wc-pagseguro-gateway.php:192
|
300 |
#: templates/lightbox-checkout.php:19
|
301 |
msgid "Pay via PagSeguro"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: includes/class-wc-pagseguro-gateway.php:195
|
305 |
+
msgid "Integration"
|
306 |
+
msgstr ""
|
307 |
+
|
308 |
+
#: includes/class-wc-pagseguro-gateway.php:200
|
309 |
+
msgid "Integration method"
|
310 |
+
msgstr ""
|
311 |
+
|
312 |
+
#: includes/class-wc-pagseguro-gateway.php:202
|
313 |
+
msgid ""
|
314 |
+
"Choose how the customer will interact with the PagSeguro. Redirect (Client "
|
315 |
+
"goes to PagSeguro page) or Lightbox (Inside your store)"
|
316 |
+
msgstr ""
|
317 |
+
|
318 |
+
#: includes/class-wc-pagseguro-gateway.php:207
|
319 |
+
msgid "Redirect (default)"
|
320 |
+
msgstr ""
|
321 |
+
|
322 |
+
#: includes/class-wc-pagseguro-gateway.php:208
|
323 |
+
msgid "Lightbox"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: includes/class-wc-pagseguro-gateway.php:209
|
327 |
+
msgid "Transparent Checkout"
|
328 |
+
msgstr ""
|
329 |
+
|
330 |
+
#: includes/class-wc-pagseguro-gateway.php:213
|
331 |
+
msgid "PagSeguro Sandbox"
|
332 |
+
msgstr ""
|
333 |
+
|
334 |
+
#: includes/class-wc-pagseguro-gateway.php:215
|
335 |
+
msgid "Enable PagSeguro Sandbox"
|
336 |
+
msgstr ""
|
337 |
+
|
338 |
+
#: includes/class-wc-pagseguro-gateway.php:218
|
339 |
+
msgid "PagSeguro Sandbox can be used to test the payments."
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
+
#: includes/class-wc-pagseguro-gateway.php:221
|
343 |
msgid "PagSeguro Email"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: includes/class-wc-pagseguro-gateway.php:223
|
347 |
msgid ""
|
348 |
"Please enter your PagSeguro email address. This is needed in order to take "
|
349 |
"payment."
|
350 |
msgstr ""
|
351 |
|
352 |
+
#: includes/class-wc-pagseguro-gateway.php:228
|
353 |
msgid "PagSeguro Token"
|
354 |
msgstr ""
|
355 |
|
356 |
+
#: includes/class-wc-pagseguro-gateway.php:230
|
357 |
msgid ""
|
358 |
+
"Please enter your PagSeguro token. This is needed to process the payment "
|
359 |
+
"and notifications. Is possible generate a new token %s."
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/class-wc-pagseguro-gateway.php:230
|
363 |
+
#: includes/class-wc-pagseguro-gateway.php:236
|
364 |
+
#: includes/class-wc-pagseguro-gateway.php:242
|
365 |
msgid "here"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: includes/class-wc-pagseguro-gateway.php:234
|
369 |
+
msgid "PagSeguro Sandbox Email"
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: includes/class-wc-pagseguro-gateway.php:236
|
373 |
msgid ""
|
374 |
+
"Please enter your PagSeguro sandbox email address. You can get your sandbox "
|
375 |
+
"email %s."
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: includes/class-wc-pagseguro-gateway.php:240
|
379 |
+
msgid "PagSeguro Sandbox Token"
|
|
|
|
|
|
|
|
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: includes/class-wc-pagseguro-gateway.php:242
|
383 |
+
msgid ""
|
384 |
+
"Please enter your PagSeguro sandbox token. You can get your sandbox token "
|
385 |
+
"%s."
|
386 |
msgstr ""
|
387 |
|
388 |
+
#: includes/class-wc-pagseguro-gateway.php:246
|
389 |
msgid "Transparent Checkout Options"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: includes/class-wc-pagseguro-gateway.php:253
|
393 |
msgid "Enable Credit Card for Transparente Checkout"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: includes/class-wc-pagseguro-gateway.php:259
|
397 |
msgid "Enable Bank Transfer for Transparente Checkout"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: includes/class-wc-pagseguro-gateway.php:263
|
401 |
#: templates/transparent-checkout-form.php:28
|
402 |
msgid "Banking Ticket"
|
403 |
msgstr ""
|
404 |
|
405 |
+
#: includes/class-wc-pagseguro-gateway.php:265
|
406 |
msgid "Enable Banking Ticket for Transparente Checkout"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: includes/class-wc-pagseguro-gateway.php:269
|
410 |
msgid "Banking Ticket Tax Message"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: includes/class-wc-pagseguro-gateway.php:271
|
414 |
msgid ""
|
415 |
"Display a message alerting the customer that will be charged R$ 1,00 for "
|
416 |
"payment by Banking Ticket"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: includes/class-wc-pagseguro-gateway.php:275
|
420 |
msgid "Integration Behavior"
|
421 |
msgstr ""
|
422 |
|
423 |
+
#: includes/class-wc-pagseguro-gateway.php:280
|
424 |
msgid "Send only the order total"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: includes/class-wc-pagseguro-gateway.php:282
|
428 |
msgid ""
|
429 |
"If this option is enabled will only send the order total, not the list of "
|
430 |
"items."
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: includes/class-wc-pagseguro-gateway.php:286
|
434 |
msgid "Invoice Prefix"
|
435 |
msgstr ""
|
436 |
|
437 |
+
#: includes/class-wc-pagseguro-gateway.php:288
|
438 |
msgid ""
|
439 |
"Please enter a prefix for your invoice numbers. If you use your PagSeguro "
|
440 |
"account for multiple stores ensure this prefix is unqiue as PagSeguro will "
|
441 |
"not allow orders with the same invoice number."
|
442 |
msgstr ""
|
443 |
|
444 |
+
#: includes/class-wc-pagseguro-gateway.php:293
|
445 |
msgid "Gateway Testing"
|
446 |
msgstr ""
|
447 |
|
448 |
+
#: includes/class-wc-pagseguro-gateway.php:298
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
msgid "Debug Log"
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: includes/class-wc-pagseguro-gateway.php:300
|
453 |
msgid "Enable logging"
|
454 |
msgstr ""
|
455 |
|
456 |
+
#: includes/class-wc-pagseguro-gateway.php:302
|
457 |
msgid "Log PagSeguro events, such as API requests, inside %s"
|
458 |
msgstr ""
|
459 |
|
460 |
+
#: includes/class-wc-pagseguro-gateway.php:460
|
|
|
|
|
|
|
|
|
461 |
msgid "PagSeguro Request Unauthorized"
|
462 |
msgstr ""
|
463 |
|
464 |
+
#: includes/class-wc-pagseguro-gateway.php:494
|
465 |
msgid "PagSeguro Transaction ID"
|
466 |
msgstr ""
|
467 |
|
468 |
+
#: includes/class-wc-pagseguro-gateway.php:501
|
469 |
msgid "Payer email"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: includes/class-wc-pagseguro-gateway.php:508
|
473 |
msgid "Payer name"
|
474 |
msgstr ""
|
475 |
|
476 |
+
#: includes/class-wc-pagseguro-gateway.php:516
|
477 |
msgid "Payment type"
|
478 |
msgstr ""
|
479 |
|
480 |
+
#: includes/class-wc-pagseguro-gateway.php:524
|
481 |
msgid "Payment method"
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: includes/class-wc-pagseguro-gateway.php:532
|
485 |
#: templates/transparent-checkout-form.php:54
|
486 |
msgid "Installments"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: includes/class-wc-pagseguro-gateway.php:540
|
490 |
msgid "Payment url"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: includes/class-wc-pagseguro-gateway.php:552
|
494 |
msgid ""
|
495 |
+
"PagSeguro: The buyer initiated the transaction, but so far the PagSeguro "
|
496 |
+
"not received any payment information."
|
497 |
msgstr ""
|
498 |
|
499 |
+
#: includes/class-wc-pagseguro-gateway.php:556
|
500 |
msgid "PagSeguro: Payment under review."
|
501 |
msgstr ""
|
502 |
|
503 |
+
#: includes/class-wc-pagseguro-gateway.php:560
|
504 |
msgid "PagSeguro: Payment approved."
|
505 |
msgstr ""
|
506 |
|
507 |
+
#: includes/class-wc-pagseguro-gateway.php:570
|
508 |
msgid "PagSeguro: Payment completed and credited to your account."
|
509 |
msgstr ""
|
510 |
|
511 |
+
#: includes/class-wc-pagseguro-gateway.php:574
|
512 |
msgid "PagSeguro: Payment came into dispute."
|
513 |
msgstr ""
|
514 |
|
515 |
+
#: includes/class-wc-pagseguro-gateway.php:576
|
516 |
msgid "Payment for order %s came into dispute"
|
517 |
msgstr ""
|
518 |
|
519 |
+
#: includes/class-wc-pagseguro-gateway.php:577
|
520 |
msgid "Payment in dispute"
|
521 |
msgstr ""
|
522 |
|
523 |
+
#: includes/class-wc-pagseguro-gateway.php:578
|
524 |
msgid ""
|
525 |
"Order %s has been marked as on-hold, because the payment came into dispute "
|
526 |
"in PagSeguro."
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: includes/class-wc-pagseguro-gateway.php:583
|
530 |
msgid "PagSeguro: Payment refunded."
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: includes/class-wc-pagseguro-gateway.php:585
|
534 |
msgid "Payment for order %s refunded"
|
535 |
msgstr ""
|
536 |
|
537 |
+
#: includes/class-wc-pagseguro-gateway.php:586
|
538 |
msgid "Payment refunded"
|
539 |
msgstr ""
|
540 |
|
541 |
+
#: includes/class-wc-pagseguro-gateway.php:587
|
542 |
msgid "Order %s has been marked as refunded by PagSeguro."
|
543 |
msgstr ""
|
544 |
|
545 |
+
#: includes/class-wc-pagseguro-gateway.php:592
|
546 |
msgid "PagSeguro: Payment canceled."
|
547 |
msgstr ""
|
548 |
|
549 |
+
#: includes/views/html-receipt-page-error.php:19
|
550 |
+
msgid "Click to try again"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
551 |
msgstr ""
|
552 |
|
553 |
#: templates/emails/html-instructions.php:15
|
558 |
#: templates/emails/html-instructions.php:19
|
559 |
#: templates/emails/plain-instructions.php:20
|
560 |
msgid ""
|
561 |
+
"Please use the link below to view your Banking Ticket, you can print and "
|
562 |
+
"pay in your internet banking or in a lottery retailer:"
|
563 |
msgstr ""
|
564 |
|
565 |
#: templates/emails/html-instructions.php:19
|
609 |
|
610 |
#: templates/lightbox-checkout.php:15
|
611 |
msgid ""
|
612 |
+
"Thank you for your order, please wait a few seconds to make the payment "
|
613 |
+
"with PagSeguro."
|
614 |
msgstr ""
|
615 |
|
616 |
#: templates/lightbox-checkout.php:17
|
628 |
msgstr ""
|
629 |
|
630 |
#: templates/payment-instructions.php:18
|
631 |
+
msgid "You can print and pay in your internet banking or in a lottery retailer."
|
|
|
632 |
msgstr ""
|
633 |
|
634 |
#: templates/payment-instructions.php:24
|
727 |
msgstr ""
|
728 |
|
729 |
#: templates/transparent-checkout-form.php:98
|
730 |
+
msgid "R$ 1,00 (rate applied to cover management risk costs of the payment method)."
|
|
|
731 |
msgstr ""
|
732 |
|
733 |
#: templates/transparent-checkout-form.php:101
|
737 |
"retailer."
|
738 |
msgstr ""
|
739 |
|
740 |
+
#: woocommerce-pagseguro.php:105
|
741 |
msgid "Settings"
|
742 |
msgstr ""
|
743 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
744 |
#. Plugin URI of the plugin/theme
|
745 |
msgid "http://github.com/claudiosmweb/woocommerce-pagseguro"
|
746 |
msgstr ""
|
750 |
msgstr ""
|
751 |
|
752 |
#. Author of the plugin/theme
|
753 |
+
msgid "Claudio Sanches"
|
754 |
msgstr ""
|
755 |
|
756 |
#. Author URI of the plugin/theme
|
757 |
msgid "http://claudiosmweb.com/"
|
758 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: claudiosanches, Gabriel Reguly
|
|
3 |
Donate link: http://claudiosmweb.com/doacoes/
|
4 |
Tags: woocommerce, pagseguro, payment
|
5 |
Requires at least: 4.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -42,7 +42,7 @@ Além que é possível utilizar o novo [sandbox do PagSeguro](https://sandbox.pa
|
|
42 |
|
43 |
= Compatibilidade =
|
44 |
|
45 |
-
Compatível com as versões 2.
|
46 |
|
47 |
Este plugin também é compatível com o [WooCommerce Extra Checkout Fields for Brazil](http://wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/), desta forma é possível enviar os campos de "CPF", "número do endereço" e "bairro" (para o Checkout Transparente é obrigatório o uso deste plugin).
|
48 |
|
@@ -92,12 +92,12 @@ Você pode contribuir com código-fonte em nossa página no [GitHub](https://git
|
|
92 |
|
93 |
= Configurações no PagSeguro: =
|
94 |
|
95 |
-
No PagSeguro
|
96 |
-
|
97 |
-
Você deve ativar esta opção em "Integrações" > "[Pagamentos via API](https://pagseguro.uol.com.br/integracao/pagamentos-via-api.jhtml)".
|
98 |
|
99 |
Apenas com isso já é possível receber os pagamentos e fazer o retorno automático de dados.
|
100 |
|
|
|
|
|
101 |
= Configurações do Plugin: =
|
102 |
|
103 |
Com o plugin instalado acesse o admin do WordPress e entre em "WooCommerce" > "Configurações" > "Finalizar compra" > "PagSeguro".
|
@@ -137,7 +137,7 @@ Pronto, sua loja já pode receber pagamentos pelo PagSeguro.
|
|
137 |
|
138 |
= What is needed to use this plugin? =
|
139 |
|
140 |
-
* WooCommerce version 2.
|
141 |
* Only one account on [PagSeguro](http://pagseguro.uol.com.br/ "PagSeguro").
|
142 |
|
143 |
### FAQ em Português: ###
|
@@ -148,16 +148,10 @@ Este plugin esta licenciado como GPL.
|
|
148 |
|
149 |
= O que eu preciso para utilizar este plugin? =
|
150 |
|
151 |
-
* Ter instalado o plugin WooCommerce 2.
|
152 |
* Possuir uma conta no PagSeguro.
|
153 |
* Gerar um token de segurança no PagSeguro.
|
154 |
-
*
|
155 |
-
* Utilizar uma das duas opções de configuração no PagSeguro (veja elas no guia de [instalação do plugin](http://wordpress.org/plugins/woocommerce-pagseguro/installation/)).
|
156 |
-
|
157 |
-
= Como funciona o PagSeguro? =
|
158 |
-
|
159 |
-
* Saiba mais em [PagSeguro - Como funciona](https://pagseguro.uol.com.br/para_seu_negocio/como_funciona.jhtml).
|
160 |
-
* Ou acesse a [FAQ do PagSeguro](https://pagseguro.uol.com.br/atendimento/perguntas_frequentes.jhtml).
|
161 |
|
162 |
= PagSeguro recebe pagamentos de quais países? =
|
163 |
|
@@ -167,33 +161,25 @@ Configuramos o plugin para receber pagamentos apenas de usuários que selecionar
|
|
167 |
|
168 |
= Quais são os meios de pagamento que o plugin aceita? =
|
169 |
|
170 |
-
São aceitos todos os meios de pagamentos que o PagSeguro disponibiliza.
|
171 |
-
Entretanto você precisa ativa-los na sua conta no PagSeguro.
|
172 |
-
|
173 |
-
Confira os meios de pagamento em [PagSeguro - Meios de Pagamento e Parcelamento](https://pagseguro.uol.com.br/para_voce/meios_de_pagamento_e_parcelamento.jhtml#rmcl).
|
174 |
-
|
175 |
-
= Quais são as taxas de transações que o PagSeguro cobra? =
|
176 |
|
177 |
-
|
178 |
-
|
179 |
-
= Quais são os limites de recebimento do PagSeguro? =
|
180 |
-
|
181 |
-
Consulte: [PagSeguro - Tabela de Limites](https://pagseguro.uol.com.br/account/limits.jhtml).
|
182 |
|
183 |
= Como que plugin faz integração com PagSeguro? =
|
184 |
|
185 |
-
Fazemos a integração baseada na documentação oficial do PagSeguro que pode ser encontrada
|
186 |
|
187 |
= Instalei o plugin, mas a opção de pagamento do PagSeguro some durante o checkout. O que fiz de errado? =
|
188 |
|
189 |
Você esqueceu de selecionar o Brasil durante o cadastro no checkout.
|
|
|
190 |
A opção de pagamento pelo PagSeguro funciona apenas com o Brasil.
|
191 |
|
192 |
= É possível enviar os dados de "Número", "Bairro" e "CPF" para o PagSeguro? =
|
193 |
|
194 |
Sim é possível, basta utilizar o plugin [WooCommerce Extra Checkout Fields for Brazil](http://wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/).
|
195 |
|
196 |
-
= O pedido foi pago e ficou com o status de "processando" e não como "concluído", isto esta certo
|
197 |
|
198 |
Sim, esta certo e significa que o plugin esta trabalhando como deveria.
|
199 |
|
@@ -204,11 +190,11 @@ Para produtos baixáveis a configuração padrão do WooCommerce é permitir o a
|
|
204 |
= Ao tentar finalizar a compra aparece a mensagem "PagSeguro: Um erro ocorreu ao processar o seu pagamento, por favor, tente novamente ou entre em contato para obter ajuda." o que fazer? =
|
205 |
|
206 |
Esta mensagem geralmente aparece por causa que não foi configurado um **Token válido**.
|
207 |
-
Gere um novo Token no PagSeguro em "
|
208 |
|
209 |
Outro erro comum é gerar um token e cadastrar nas configurações do plugin um e-mail que não é o proprietário do token, então tenha certeza que estes dados estão realmente corretos!
|
210 |
|
211 |
-
Note que caso você esteja utilizando a opção de **sandbox** é necessário usar um e-mail e token de
|
212 |
|
213 |
Se você tem certeza que o Token e Login estão corretos você deve acessar a página "WooCommerce > Status do Sistema" e verificar se **fsockopen** e **cURL** estão ativos. É necessário procurar ajuda do seu provedor de hospedagem caso você tenha o **fsockopen** e/ou o **cURL** desativados.
|
214 |
|
@@ -244,9 +230,7 @@ Note que é necessário aprovação do PagSeguro para utilizar o Checkout Transp
|
|
244 |
|
245 |
= Funciona com o Sandbox do PagSeguro? =
|
246 |
|
247 |
-
Sim, funciona e basta você ativar isso nas opções do plugin, além de configurar o seu token de
|
248 |
-
|
249 |
-
Para conseguir o token de desenvolver você deve acessar "[PagSeguro Sandbox > Dados de Teste](https://sandbox.pagseguro.uol.com.br/comprador-de-testes.html)".
|
250 |
|
251 |
= O total do pedido no WooCommerce é diferente do enviado para o PagSeguro, como eu resolvo isso? =
|
252 |
|
@@ -271,9 +255,11 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
-
= 2.
|
275 |
|
276 |
-
*
|
|
|
|
|
277 |
|
278 |
= 2.10.2 - 2015/08/08 =
|
279 |
|
@@ -304,200 +290,10 @@ Por favor, caso você tenha algum problema com o funcionamento do plugin, [abra
|
|
304 |
* Adicionada alerta de erro para CPF invalido com checkout transparente.
|
305 |
* Correções na tradução do plugin.
|
306 |
|
307 |
-
= 2.7.4 - 2014/11/05 =
|
308 |
-
|
309 |
-
* Adicionado alerta quando o usuário não preenche o campo bairro no checkout transparente.
|
310 |
-
|
311 |
-
= 2.7.3 - 2014/10/26 =
|
312 |
-
|
313 |
-
* Adicionadas mensagens de erro para DDD e CEP inválidos.
|
314 |
-
|
315 |
-
= 2.7.2 - 2014/10/11 =
|
316 |
-
|
317 |
-
* Melhorado o salvamento dos detalhes do pedido que o PagSeguro retorna para a loja, como link de boleto, método de pagamento utilizando e outros.
|
318 |
-
|
319 |
-
= 2.7.1 - 2014/09/29 =
|
320 |
-
|
321 |
-
* Corrigido link dos dados de sandbox
|
322 |
-
* Adicionado suporte para _transaction_id do WooCommerce 2.2
|
323 |
-
|
324 |
-
= 2.7.0 - 2014/08/16 =
|
325 |
-
|
326 |
-
* Adicionado sistema de templates para personalizar os templates de checkout e outros. Para fazer isso basta copiar a pasta `templates/` deste plugin para dentro do seu tema, devendo ficar como `woocommerce/pagseguro/`.
|
327 |
-
* Corrigido o nome do arquivo principal do plugin.
|
328 |
-
|
329 |
-
= 2.6.2 - 2014/08/07 =
|
330 |
-
|
331 |
-
* Corrigido o script que escondes os botões "Pagar com PagSeguro" e "Cancelar pedido & restaurar carrinho" quando o Lightbox é carregado.
|
332 |
-
|
333 |
-
= 2.6.1 - 2014/08/04 =
|
334 |
-
|
335 |
-
* Corrigido o valor individual de cada produto.
|
336 |
-
|
337 |
-
= 2.6.0 - 2014/08/02 =
|
338 |
-
|
339 |
-
* Melhoria na lista de itens do pedido que é enviado para o PagSeguro, agora é possível ver o total de taxas enviadas.
|
340 |
-
* Adicionada a opção "Enviar apenas o total do pedido" que envia apenas o total para o PagSeguro no lugar da lista de itens do pedido.
|
341 |
-
* Corrigida a exibição da opção "Prefixo de pedido" na página de opções do plugin.
|
342 |
-
|
343 |
-
= 2.5.1 - 2014/07/09 =
|
344 |
-
|
345 |
-
* Adicionada feature que permite usar o Checkout Transparente sem precisar digitar uma descrição para o método de pagamento.
|
346 |
-
* Correção do checkout com Lightbox.
|
347 |
-
|
348 |
-
= 2.5.0 - 2014/07/08 =
|
349 |
-
|
350 |
-
* Implementando o Checkout Transparente do PagSeguro.
|
351 |
-
* Melhorada todo o código de integração para tornar possível trabalhar bem o checkout padrão, Lightbox e Checkout Transparente.
|
352 |
-
* Melhoria nas mensagens de erro.
|
353 |
-
|
354 |
-
= 2.4.1 - 2014/06/12 =
|
355 |
-
|
356 |
-
* Corrigida a URL de notifição para versões 2.0.x do WooCommerce.
|
357 |
-
|
358 |
-
= 2.4.0 - 2014/06/10 =
|
359 |
-
|
360 |
-
* Correções nas mensagens do log para a criação de tokens de pagamento.
|
361 |
-
* Adicionada opção de ambiente sandbox.
|
362 |
-
|
363 |
-
= 2.3.1 - 2014/05/24 =
|
364 |
-
|
365 |
-
* Melhoria nos status do pedido, agora ao gerar um boleto o pedido é alterado para "aguardando".
|
366 |
-
* Modificado o botão "Finalizar pedido", com o WooCommerce 2.1 ou superior vai mostrar a mensagem "Realizar pagamento".
|
367 |
-
|
368 |
-
= 2.3.0 - 2014/04/02 =
|
369 |
-
|
370 |
-
* Adicionada opção para selecionar pagamento direto com redirecionamento ou pelo Lightbox do PagSeguro.
|
371 |
-
|
372 |
-
= 2.2.1 - 2013/12/06 =
|
373 |
-
|
374 |
-
* Melhoria na compatibilidade com o WooCommerce 2.1.
|
375 |
-
|
376 |
-
= 2.2.0 - 2013/12/04 =
|
377 |
-
|
378 |
-
* Corrigido padrões de código.
|
379 |
-
* Removida compatibilidade com versões 1.6.x ou inferiores do WooCommerce.
|
380 |
-
* Adicionada compatibilidade com WooCommerce 2.1 ou superior.
|
381 |
-
|
382 |
-
= 2.1.1 - 2013/09/03 =
|
383 |
-
|
384 |
-
* Adicionada mensagem sobre DDD errado nas mensagens de erro do PagSeguro.
|
385 |
-
* Correção da verificação do IPN.
|
386 |
-
|
387 |
-
= 2.1.0 - 2013/08/29 =
|
388 |
-
|
389 |
-
* Adicionada função para tratar as mensagens de erro do PagSeguro para CPF, CEP e número de telefone.
|
390 |
-
|
391 |
-
= 2.0.3 - 2013/08/22 =
|
392 |
-
|
393 |
-
* Correção da alteração de status pelo pela notificação de pagamento do PagSeguro.
|
394 |
-
|
395 |
-
= 2.0.2 - 2013/08/22 =
|
396 |
-
|
397 |
-
* Corrigido o erro causado com números de telefone sem DDD.
|
398 |
-
|
399 |
-
= 2.0.1 - 2013/08/19 =
|
400 |
-
|
401 |
-
* Removida a obrigatoriedade de enviar os campos de endereço.
|
402 |
-
|
403 |
-
= 2.0.0 - 2013/08/17 =
|
404 |
-
|
405 |
-
* Adicionadas as novas APIs de pagamentos e notificações do PagSeguro.
|
406 |
-
* Removidas as APIs antigas de pagamento e notificações do PagSeguro.
|
407 |
-
* Melhoria nos status de pagamento.
|
408 |
-
* Melhorias na notificações sobre compras em disputas ou que tiveram o pagamento devolvido.
|
409 |
-
|
410 |
-
= 1.6.1 - 2013/08/14 =
|
411 |
-
|
412 |
-
* Melhoria no JavaScript inline no formulário de checkout.
|
413 |
-
|
414 |
-
= 1.6.0 - 2013/07/26 =
|
415 |
-
|
416 |
-
* Adicionado o filtro `woocommerce_pagseguro_icon` para troca do ícone do método de pagamento.
|
417 |
-
* Melhoria no filtro `woocommerce_pagseguro_args`, agora ele aceita o objeto `WC_Order` no lugar do ID.
|
418 |
-
* Melhoria nas opções do plugin.
|
419 |
-
* Melhoria nas mensagens de status do pedido.
|
420 |
-
|
421 |
-
= 1.5.0 - 2013/06/24 =
|
422 |
-
|
423 |
-
* Adicionado link de `Configurações` na página de plugins.
|
424 |
-
* Melhorias no código.
|
425 |
-
* Adicionado suporte para WooCommerce 2.1.
|
426 |
-
* Adicionado o ID da compra no filtro `woocommerce_pagseguro_args`.
|
427 |
-
|
428 |
-
= 1.4.0 - 2013/04/02 =
|
429 |
-
|
430 |
-
* Correção do retorno automático de dados na versão 2.0.0 ou superior do WooCommerce.
|
431 |
-
|
432 |
-
= 1.3.4 - 2013/03/06 =
|
433 |
-
|
434 |
-
* Corrigida a compatibilidade com WooCommerce 2.0.0 ou mais recente.
|
435 |
-
|
436 |
-
= 1.3.3 - 2013/02/08 =
|
437 |
-
|
438 |
-
* Corrigido o hook responsavel por salvar as opções para a versão 2.0 RC do WooCommerce.
|
439 |
-
|
440 |
-
= 1.3.2 - 2013/02/08 =
|
441 |
-
|
442 |
-
* Plugin corrigido para a versão 2.0 do WooCommerce.
|
443 |
-
|
444 |
-
= 1.3.1 - 2012/12/08 =
|
445 |
-
|
446 |
-
* Melhoria no método que atualiza o status do pedido.
|
447 |
-
* Correção da quantidade de caracteres das descrição dos produtos no PagSeguro.
|
448 |
-
|
449 |
-
= 1.3.0 - 2012/11/30 =
|
450 |
-
|
451 |
-
* Adicionada opção para logs de erro.
|
452 |
-
* Adiciona opção para validar ou não endereço (quando ativo força cliente a informar os dados corretamente e ir direto para a página de pagamento do PagSeguro).
|
453 |
-
|
454 |
-
= 1.2.2 - 2012/11/19 =
|
455 |
-
|
456 |
-
* Corrigido problema com cupons de desconto (descontos no carrinho).
|
457 |
-
|
458 |
-
= 1.2.1 =
|
459 |
-
|
460 |
-
* Corrigido o problema de produto com a descrição/nome muito grande no PagSeguro.
|
461 |
-
|
462 |
-
= 1.2.0 =
|
463 |
-
|
464 |
-
* Removida a classe do retorno automático que usava cURL em favor da função wp_remote_post().
|
465 |
-
* Otimizado o retorno automático de dados.
|
466 |
-
|
467 |
-
= 1.1.1 =
|
468 |
-
|
469 |
-
* Tradução revisada.
|
470 |
-
* Melhorada a integração de retorno automático para o status de "Aguardando pagamento".
|
471 |
-
|
472 |
-
= 1.1.0 =
|
473 |
-
|
474 |
-
* Adicionado retorno automático de dados.
|
475 |
-
* Melhorado o sistema de notificações.
|
476 |
-
* Adicionada classe para validar o retorno automático de dados.
|
477 |
-
* Adicionado campo de token nas configurações do plugin (necessário para o retorno automático).
|
478 |
-
|
479 |
-
= 1.0.2 =
|
480 |
-
|
481 |
-
* Adicionada função para abater estoque automáticamente quando o cliente vai para o PagSeguro.
|
482 |
-
|
483 |
-
= 1.0.1 =
|
484 |
-
|
485 |
-
* Correção para impedir que o portal de pagamento seja habilitado se a conta de email do PagSeguro estiver em branco
|
486 |
-
|
487 |
-
= 1.0.0 =
|
488 |
-
|
489 |
-
* Versão incial do plugin.
|
490 |
-
|
491 |
== Upgrade Notice ==
|
492 |
|
493 |
-
= 2.
|
494 |
-
|
495 |
-
* Melhoradas as mensagens de erro durante o checkout.
|
496 |
-
|
497 |
-
== License ==
|
498 |
-
|
499 |
-
WooCommerce PagSeguro is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
500 |
-
|
501 |
-
WooCommerce PagSeguro is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
502 |
|
503 |
-
|
|
|
|
3 |
Donate link: http://claudiosmweb.com/doacoes/
|
4 |
Tags: woocommerce, pagseguro, payment
|
5 |
Requires at least: 4.0
|
6 |
+
Tested up to: 4.4
|
7 |
+
Stable tag: 2.11.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
42 |
|
43 |
= Compatibilidade =
|
44 |
|
45 |
+
Compatível com as versões 2.2.x, 2.3.x, 2.4.x e 2.5.x do WooCommerce.
|
46 |
|
47 |
Este plugin também é compatível com o [WooCommerce Extra Checkout Fields for Brazil](http://wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/), desta forma é possível enviar os campos de "CPF", "número do endereço" e "bairro" (para o Checkout Transparente é obrigatório o uso deste plugin).
|
48 |
|
92 |
|
93 |
= Configurações no PagSeguro: =
|
94 |
|
95 |
+
No PagSeguro é necessário desativar a opção de "Pagamento via Formulário HTML", você pode fazer isso em "Preferências" > "[Integrações](https://pagseguro.uol.com.br/preferencias/integracoes.jhtml)".
|
|
|
|
|
96 |
|
97 |
Apenas com isso já é possível receber os pagamentos e fazer o retorno automático de dados.
|
98 |
|
99 |
+
<blockquote>Atenção: Não é necessário configurar qualquer URL em "Página de redirecionamento" ou "Notificação de transação", pois o plugin é capaz de comunicar o PagSeguro pela API quais URLs devem ser utilizadas para cada situação.</blockquote>
|
100 |
+
|
101 |
= Configurações do Plugin: =
|
102 |
|
103 |
Com o plugin instalado acesse o admin do WordPress e entre em "WooCommerce" > "Configurações" > "Finalizar compra" > "PagSeguro".
|
137 |
|
138 |
= What is needed to use this plugin? =
|
139 |
|
140 |
+
* WooCommerce version 2.2 or latter installed and active.
|
141 |
* Only one account on [PagSeguro](http://pagseguro.uol.com.br/ "PagSeguro").
|
142 |
|
143 |
### FAQ em Português: ###
|
148 |
|
149 |
= O que eu preciso para utilizar este plugin? =
|
150 |
|
151 |
+
* Ter instalado o plugin WooCommerce 2.2 ou superior.
|
152 |
* Possuir uma conta no PagSeguro.
|
153 |
* Gerar um token de segurança no PagSeguro.
|
154 |
+
* Desativar a opção "Pagamento via Formulário HTML" em integrações na página do PagSeguro.
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
|
156 |
= PagSeguro recebe pagamentos de quais países? =
|
157 |
|
161 |
|
162 |
= Quais são os meios de pagamento que o plugin aceita? =
|
163 |
|
164 |
+
São aceitos todos os meios de pagamentos que o PagSeguro disponibiliza, entretanto você precisa ativa-los na sua conta.
|
|
|
|
|
|
|
|
|
|
|
165 |
|
166 |
+
Confira os [meios de pagamento e parcelamento](https://pagseguro.uol.com.br/para_voce/meios_de_pagamento_e_parcelamento.jhtml#rmcl).
|
|
|
|
|
|
|
|
|
167 |
|
168 |
= Como que plugin faz integração com PagSeguro? =
|
169 |
|
170 |
+
Fazemos a integração baseada na documentação oficial do PagSeguro que pode ser encontrada nos "[guias de integração](https://pagseguro.uol.com.br/receba-pagamentos.jhtml)" utilizando a última versão da API de pagamentos.
|
171 |
|
172 |
= Instalei o plugin, mas a opção de pagamento do PagSeguro some durante o checkout. O que fiz de errado? =
|
173 |
|
174 |
Você esqueceu de selecionar o Brasil durante o cadastro no checkout.
|
175 |
+
|
176 |
A opção de pagamento pelo PagSeguro funciona apenas com o Brasil.
|
177 |
|
178 |
= É possível enviar os dados de "Número", "Bairro" e "CPF" para o PagSeguro? =
|
179 |
|
180 |
Sim é possível, basta utilizar o plugin [WooCommerce Extra Checkout Fields for Brazil](http://wordpress.org/plugins/woocommerce-extra-checkout-fields-for-brazil/).
|
181 |
|
182 |
+
= O pedido foi pago e ficou com o status de "processando" e não como "concluído", isto esta certo? =
|
183 |
|
184 |
Sim, esta certo e significa que o plugin esta trabalhando como deveria.
|
185 |
|
190 |
= Ao tentar finalizar a compra aparece a mensagem "PagSeguro: Um erro ocorreu ao processar o seu pagamento, por favor, tente novamente ou entre em contato para obter ajuda." o que fazer? =
|
191 |
|
192 |
Esta mensagem geralmente aparece por causa que não foi configurado um **Token válido**.
|
193 |
+
Gere um novo Token no PagSeguro em "Preferências" > "[Integrações](https://pagseguro.uol.com.br/preferencias/integracoes.jhtml)" e adicione ele nas configurações do plugin.
|
194 |
|
195 |
Outro erro comum é gerar um token e cadastrar nas configurações do plugin um e-mail que não é o proprietário do token, então tenha certeza que estes dados estão realmente corretos!
|
196 |
|
197 |
+
Note que caso você esteja utilizando a opção de **sandbox** é necessário usar um e-mail e token de testes que podem ser encontrados em "[PagSeguro Sandbox > Dados de Teste](https://sandbox.pagseguro.uol.com.br/comprador-de-testes.html)".
|
198 |
|
199 |
Se você tem certeza que o Token e Login estão corretos você deve acessar a página "WooCommerce > Status do Sistema" e verificar se **fsockopen** e **cURL** estão ativos. É necessário procurar ajuda do seu provedor de hospedagem caso você tenha o **fsockopen** e/ou o **cURL** desativados.
|
200 |
|
230 |
|
231 |
= Funciona com o Sandbox do PagSeguro? =
|
232 |
|
233 |
+
Sim, funciona e basta você ativar isso nas opções do plugin, além de configurar o seu [e-mail e token de testes](https://sandbox.pagseguro.uol.com.br/comprador-de-testes.html)".
|
|
|
|
|
234 |
|
235 |
= O total do pedido no WooCommerce é diferente do enviado para o PagSeguro, como eu resolvo isso? =
|
236 |
|
255 |
|
256 |
== Changelog ==
|
257 |
|
258 |
+
= 2.11.0 - 2015/12/21 =
|
259 |
|
260 |
+
* Adicionado suporte a compras com CNPJ.
|
261 |
+
* Melhorado o checkout transparente quando usado o tema Storefront.
|
262 |
+
* Adicionada opções para token e e-mail de sandbox.
|
263 |
|
264 |
= 2.10.2 - 2015/08/08 =
|
265 |
|
290 |
* Adicionada alerta de erro para CPF invalido com checkout transparente.
|
291 |
* Correções na tradução do plugin.
|
292 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
293 |
== Upgrade Notice ==
|
294 |
|
295 |
+
= 2.11.0 =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
296 |
|
297 |
+
* Adicionado suporte a compras com CNPJ.
|
298 |
+
* Melhorado o checkout transparente quando usado o tema Storefront.
|
299 |
+
* Adicionada opções para token e e-mail de sandbox.
|
templates/transparent-checkout-form.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
*
|
5 |
* @author Claudio_Sanches
|
6 |
* @package WooCommerce_PagSeguro/Templates
|
7 |
-
* @version 2.
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -12,7 +12,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
12 |
}
|
13 |
?>
|
14 |
|
15 |
-
<fieldset id="pagseguro-payment-form">
|
16 |
<input type="hidden" id="pagseguro-cart-total" value="<?php echo esc_attr( number_format( $cart_total, 2, '.', '' ) ); ?>" />
|
17 |
|
18 |
<ul id="pagseguro-payment-methods">
|
@@ -32,40 +32,40 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
32 |
|
33 |
<?php if ( 'yes' == $tc_credit ) : ?>
|
34 |
<div id="pagseguro-credit-card-form" class="pagseguro-method-form">
|
35 |
-
<p class="form-row form-row-first">
|
36 |
<label for="pagseguro-card-holder-name"><?php _e( 'Card Holder Name', 'woocommerce-pagseguro' ); ?> <small>(<?php _e( 'as recorded on the card', 'woocommerce-pagseguro' ); ?>)</small> <span class="required">*</span></label>
|
37 |
<input id="pagseguro-card-holder-name" name="pagseguro_card_holder_name" class="input-text" type="text" autocomplete="off" style="font-size: 1.5em; padding: 8px;" />
|
38 |
</p>
|
39 |
-
<p class="form-row form-row-last">
|
40 |
<label for="pagseguro-card-number"><?php _e( 'Card Number', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
41 |
<input id="pagseguro-card-number" class="input-text wc-credit-card-form-card-number" type="text" maxlength="20" autocomplete="off" placeholder="•••• •••• •••• ••••" style="font-size: 1.5em; padding: 8px;" />
|
42 |
</p>
|
43 |
<div class="clear"></div>
|
44 |
-
<p class="form-row form-row-first">
|
45 |
<label for="pagseguro-card-expiry"><?php _e( 'Expiry (MM/YYYY)', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
46 |
<input id="pagseguro-card-expiry" class="input-text wc-credit-card-form-card-expiry" type="text" autocomplete="off" placeholder="<?php _e( 'MM / YYYY', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
47 |
</p>
|
48 |
-
<p class="form-row form-row-last">
|
49 |
<label for="pagseguro-card-cvc"><?php _e( 'Security Code', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
50 |
<input id="pagseguro-card-cvc" class="input-text wc-credit-card-form-card-cvc" type="text" autocomplete="off" placeholder="<?php _e( 'CVC', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
51 |
</p>
|
52 |
<div class="clear"></div>
|
53 |
-
<p class="form-row form-row-first">
|
54 |
<label for="pagseguro-card-installments"><?php _e( 'Installments', 'woocommerce-pagseguro' ); ?> <small>(<?php _e( 'the minimum value of the installment is R$ 5,00', 'woocommerce-pagseguro' ); ?>)</small> <span class="required">*</span></label>
|
55 |
<select id="pagseguro-card-installments" name="pagseguro_card_installments" style="font-size: 1.5em; padding: 4px; width: 100%;" disabled="disabled">
|
56 |
<option value="0">--</option>
|
57 |
</select>
|
58 |
</p>
|
59 |
-
<p class="form-row form-row-last">
|
60 |
<label for="pagseguro-card-holder-cpf"><?php _e( 'Card Holder CPF', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
61 |
<input id="pagseguro-card-holder-cpf" name="pagseguro_card_holder_cpf" class="input-text wecfb-cpf-field" type="text" autocomplete="off" style="font-size: 1.5em; padding: 8px;" />
|
62 |
</p>
|
63 |
<div class="clear"></div>
|
64 |
-
<p class="form-row form-row-first">
|
65 |
<label for="pagseguro-card-holder-birth-date"><?php _e( 'Card Holder Birth Date', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
66 |
<input id="pagseguro-card-holder-birth-date" name="pagseguro_card_holder_birth_date" class="input-text" type="text" autocomplete="off" placeholder="<?php _e( 'DD / MM / YYYY', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
67 |
</p>
|
68 |
-
<p class="form-row form-row-last">
|
69 |
<label for="pagseguro-card-holder-phone"><?php _e( 'Card Holder Phone', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
70 |
<input id="pagseguro-card-holder-phone" name="pagseguro_card_holder_phone" class="input-text" type="text" autocomplete="off" placeholder="<?php _e( '(xx) xxxx-xxxx', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
71 |
</p>
|
4 |
*
|
5 |
* @author Claudio_Sanches
|
6 |
* @package WooCommerce_PagSeguro/Templates
|
7 |
+
* @version 2.11.0
|
8 |
*/
|
9 |
|
10 |
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
}
|
13 |
?>
|
14 |
|
15 |
+
<fieldset id="pagseguro-payment-form" class="<?php echo 'storefront' === basename( get_template_directory() ) ? 'woocommerce-pagseguro-form-storefront' : ''; ?>">
|
16 |
<input type="hidden" id="pagseguro-cart-total" value="<?php echo esc_attr( number_format( $cart_total, 2, '.', '' ) ); ?>" />
|
17 |
|
18 |
<ul id="pagseguro-payment-methods">
|
32 |
|
33 |
<?php if ( 'yes' == $tc_credit ) : ?>
|
34 |
<div id="pagseguro-credit-card-form" class="pagseguro-method-form">
|
35 |
+
<p id="pagseguro-card-holder-name-field" class="form-row form-row-first">
|
36 |
<label for="pagseguro-card-holder-name"><?php _e( 'Card Holder Name', 'woocommerce-pagseguro' ); ?> <small>(<?php _e( 'as recorded on the card', 'woocommerce-pagseguro' ); ?>)</small> <span class="required">*</span></label>
|
37 |
<input id="pagseguro-card-holder-name" name="pagseguro_card_holder_name" class="input-text" type="text" autocomplete="off" style="font-size: 1.5em; padding: 8px;" />
|
38 |
</p>
|
39 |
+
<p id="pagseguro-card-number-field" class="form-row form-row-last">
|
40 |
<label for="pagseguro-card-number"><?php _e( 'Card Number', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
41 |
<input id="pagseguro-card-number" class="input-text wc-credit-card-form-card-number" type="text" maxlength="20" autocomplete="off" placeholder="•••• •••• •••• ••••" style="font-size: 1.5em; padding: 8px;" />
|
42 |
</p>
|
43 |
<div class="clear"></div>
|
44 |
+
<p id="pagseguro-card-expiry-field" class="form-row form-row-first">
|
45 |
<label for="pagseguro-card-expiry"><?php _e( 'Expiry (MM/YYYY)', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
46 |
<input id="pagseguro-card-expiry" class="input-text wc-credit-card-form-card-expiry" type="text" autocomplete="off" placeholder="<?php _e( 'MM / YYYY', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
47 |
</p>
|
48 |
+
<p id="pagseguro-card-cvc-field" class="form-row form-row-last">
|
49 |
<label for="pagseguro-card-cvc"><?php _e( 'Security Code', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
50 |
<input id="pagseguro-card-cvc" class="input-text wc-credit-card-form-card-cvc" type="text" autocomplete="off" placeholder="<?php _e( 'CVC', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
51 |
</p>
|
52 |
<div class="clear"></div>
|
53 |
+
<p id="pagseguro-card-installments-field" class="form-row form-row-first">
|
54 |
<label for="pagseguro-card-installments"><?php _e( 'Installments', 'woocommerce-pagseguro' ); ?> <small>(<?php _e( 'the minimum value of the installment is R$ 5,00', 'woocommerce-pagseguro' ); ?>)</small> <span class="required">*</span></label>
|
55 |
<select id="pagseguro-card-installments" name="pagseguro_card_installments" style="font-size: 1.5em; padding: 4px; width: 100%;" disabled="disabled">
|
56 |
<option value="0">--</option>
|
57 |
</select>
|
58 |
</p>
|
59 |
+
<p id="pagseguro-card-holder-cpf-field" class="form-row form-row-last">
|
60 |
<label for="pagseguro-card-holder-cpf"><?php _e( 'Card Holder CPF', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
61 |
<input id="pagseguro-card-holder-cpf" name="pagseguro_card_holder_cpf" class="input-text wecfb-cpf-field" type="text" autocomplete="off" style="font-size: 1.5em; padding: 8px;" />
|
62 |
</p>
|
63 |
<div class="clear"></div>
|
64 |
+
<p id="pagseguro-card-holder-birth-date-field" class="form-row form-row-first">
|
65 |
<label for="pagseguro-card-holder-birth-date"><?php _e( 'Card Holder Birth Date', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
66 |
<input id="pagseguro-card-holder-birth-date" name="pagseguro_card_holder_birth_date" class="input-text" type="text" autocomplete="off" placeholder="<?php _e( 'DD / MM / YYYY', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
67 |
</p>
|
68 |
+
<p id="pagseguro-card-holder-phone" class="form-row form-row-last">
|
69 |
<label for="pagseguro-card-holder-phone"><?php _e( 'Card Holder Phone', 'woocommerce-pagseguro' ); ?> <span class="required">*</span></label>
|
70 |
<input id="pagseguro-card-holder-phone" name="pagseguro_card_holder_phone" class="input-text" type="text" autocomplete="off" placeholder="<?php _e( '(xx) xxxx-xxxx', 'woocommerce-pagseguro' ); ?>" style="font-size: 1.5em; padding: 8px;" />
|
71 |
</p>
|
wc-pagseguro.php
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
if ( ! defined( 'ABSPATH' ) ) {
|
3 |
-
exit;
|
4 |
}
|
5 |
|
6 |
// Update the main file.
|
1 |
<?php
|
2 |
+
/**
|
3 |
+
* Fix main file for old installations.
|
4 |
+
*
|
5 |
+
* @package WooCommerce_PagSeguro
|
6 |
+
*/
|
7 |
+
|
8 |
if ( ! defined( 'ABSPATH' ) ) {
|
9 |
+
exit;
|
10 |
}
|
11 |
|
12 |
// Update the main file.
|
woocommerce-pagseguro.php
CHANGED
@@ -3,12 +3,14 @@
|
|
3 |
* Plugin Name: WooCommerce PagSeguro
|
4 |
* Plugin URI: http://github.com/claudiosmweb/woocommerce-pagseguro
|
5 |
* Description: Gateway de pagamento PagSeguro para WooCommerce.
|
6 |
-
* Author: Claudio Sanches
|
7 |
* Author URI: http://claudiosmweb.com/
|
8 |
-
* Version: 2.
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: woocommerce-pagseguro
|
11 |
* Domain Path: languages/
|
|
|
|
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -17,155 +19,168 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
17 |
|
18 |
if ( ! class_exists( 'WC_PagSeguro' ) ) :
|
19 |
|
20 |
-
/**
|
21 |
-
* WooCommerce PagSeguro main class.
|
22 |
-
*/
|
23 |
-
class WC_PagSeguro {
|
24 |
-
|
25 |
-
/**
|
26 |
-
* Plugin version.
|
27 |
-
*
|
28 |
-
* @var string
|
29 |
-
*/
|
30 |
-
const VERSION = '2.10.3';
|
31 |
-
|
32 |
/**
|
33 |
-
*
|
34 |
-
*
|
35 |
-
* @var object
|
36 |
*/
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
-
}
|
58 |
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
|
|
|
|
|
|
68 |
}
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
public static function get_templates_path() {
|
79 |
-
return plugin_dir_path( __FILE__ ) . 'templates/';
|
80 |
-
}
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Load the plugin text domain for translation.
|
84 |
-
*/
|
85 |
-
public function load_plugin_textdomain() {
|
86 |
-
load_plugin_textdomain( 'woocommerce-pagseguro', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
87 |
-
}
|
88 |
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
*/
|
96 |
-
public function plugin_action_links( $links ) {
|
97 |
-
$plugin_links = array();
|
98 |
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
-
|
102 |
-
}
|
103 |
|
104 |
-
|
105 |
-
|
106 |
-
*/
|
107 |
-
private function includes() {
|
108 |
-
include_once 'includes/class-wc-pagseguro-xml.php';
|
109 |
-
include_once 'includes/class-wc-pagseguro-api.php';
|
110 |
-
include_once 'includes/class-wc-pagseguro-gateway.php';
|
111 |
-
}
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
$methods[] = 'WC_PagSeguro_Gateway';
|
122 |
|
123 |
-
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
134 |
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
}
|
139 |
|
140 |
-
|
141 |
-
|
|
|
|
|
|
|
142 |
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
* @param bool $cancel
|
147 |
-
* @param WC_Order $order
|
148 |
-
*
|
149 |
-
* @return bool
|
150 |
-
*/
|
151 |
-
public function stop_cancel_unpaid_orders( $cancel, $order ) {
|
152 |
-
if ( 'pagseguro' === $order->payment_method ) {
|
153 |
-
return false;
|
154 |
}
|
155 |
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
* @return string
|
163 |
-
*/
|
164 |
-
public function woocommerce_missing_notice() {
|
165 |
-
echo '<div class="error"><p>' . sprintf( __( 'WooCommerce PagSeguro Gateway depends on the last version of %s to work!', 'woocommerce-pagseguro' ), '<a href="http://wordpress.org/plugins/woocommerce/">' . __( 'WooCommerce', 'woocommerce-pagseguro' ) . '</a>' ) . '</p></div>';
|
166 |
}
|
167 |
-
}
|
168 |
|
169 |
-
add_action( 'plugins_loaded', array( 'WC_PagSeguro', 'get_instance' ) );
|
170 |
|
171 |
endif;
|
3 |
* Plugin Name: WooCommerce PagSeguro
|
4 |
* Plugin URI: http://github.com/claudiosmweb/woocommerce-pagseguro
|
5 |
* Description: Gateway de pagamento PagSeguro para WooCommerce.
|
6 |
+
* Author: Claudio Sanches
|
7 |
* Author URI: http://claudiosmweb.com/
|
8 |
+
* Version: 2.11.0
|
9 |
* License: GPLv2 or later
|
10 |
* Text Domain: woocommerce-pagseguro
|
11 |
* Domain Path: languages/
|
12 |
+
*
|
13 |
+
* @package WooCommerce_PagSeguro
|
14 |
*/
|
15 |
|
16 |
if ( ! defined( 'ABSPATH' ) ) {
|
19 |
|
20 |
if ( ! class_exists( 'WC_PagSeguro' ) ) :
|
21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
/**
|
23 |
+
* WooCommerce PagSeguro main class.
|
|
|
|
|
24 |
*/
|
25 |
+
class WC_PagSeguro {
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Plugin version.
|
29 |
+
*
|
30 |
+
* @var string
|
31 |
+
*/
|
32 |
+
const VERSION = '2.11.0';
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Instance of this class.
|
36 |
+
*
|
37 |
+
* @var object
|
38 |
+
*/
|
39 |
+
protected static $instance = null;
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Initialize the plugin public actions.
|
43 |
+
*/
|
44 |
+
private function __construct() {
|
45 |
+
// Load plugin text domain.
|
46 |
+
add_action( 'init', array( $this, 'load_plugin_textdomain' ) );
|
47 |
+
|
48 |
+
// Checks with WooCommerce is installed.
|
49 |
+
if ( class_exists( 'WC_Payment_Gateway' ) ) {
|
50 |
+
$this->includes();
|
51 |
+
|
52 |
+
add_filter( 'woocommerce_payment_gateways', array( $this, 'add_gateway' ) );
|
53 |
+
add_filter( 'woocommerce_available_payment_gateways', array( $this, 'hides_when_is_outside_brazil' ) );
|
54 |
+
add_filter( 'woocommerce_cancel_unpaid_order', array( $this, 'stop_cancel_unpaid_orders' ), 10, 2 );
|
55 |
+
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'plugin_action_links' ) );
|
56 |
+
|
57 |
+
if ( is_admin() ) {
|
58 |
+
add_action( 'admin_notices', array( $this, 'ecfb_missing_notice' ) );
|
59 |
+
}
|
60 |
+
} else {
|
61 |
+
add_action( 'admin_notices', array( $this, 'woocommerce_missing_notice' ) );
|
62 |
+
}
|
63 |
}
|
|
|
64 |
|
65 |
+
/**
|
66 |
+
* Return an instance of this class.
|
67 |
+
*
|
68 |
+
* @return object A single instance of this class.
|
69 |
+
*/
|
70 |
+
public static function get_instance() {
|
71 |
+
// If the single instance hasn't been set, set it now.
|
72 |
+
if ( null == self::$instance ) {
|
73 |
+
self::$instance = new self;
|
74 |
+
}
|
75 |
+
|
76 |
+
return self::$instance;
|
77 |
}
|
78 |
|
79 |
+
/**
|
80 |
+
* Get templates path.
|
81 |
+
*
|
82 |
+
* @return string
|
83 |
+
*/
|
84 |
+
public static function get_templates_path() {
|
85 |
+
return plugin_dir_path( __FILE__ ) . 'templates/';
|
86 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
+
/**
|
89 |
+
* Load the plugin text domain for translation.
|
90 |
+
*/
|
91 |
+
public function load_plugin_textdomain() {
|
92 |
+
load_plugin_textdomain( 'woocommerce-pagseguro', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
|
93 |
+
}
|
|
|
|
|
|
|
94 |
|
95 |
+
/**
|
96 |
+
* Action links.
|
97 |
+
*
|
98 |
+
* @param array $links Action links.
|
99 |
+
*
|
100 |
+
* @return array
|
101 |
+
*/
|
102 |
+
public function plugin_action_links( $links ) {
|
103 |
+
$plugin_links = array();
|
104 |
|
105 |
+
$plugin_links[] = '<a href="' . esc_url( admin_url( 'admin.php?page=wc-settings&tab=checkout§ion=wc_pagseguro_gateway' ) ) . '">' . __( 'Settings', 'woocommerce-pagseguro' ) . '</a>';
|
|
|
106 |
|
107 |
+
return array_merge( $plugin_links, $links );
|
108 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
|
110 |
+
/**
|
111 |
+
* Includes.
|
112 |
+
*/
|
113 |
+
private function includes() {
|
114 |
+
include_once 'includes/class-wc-pagseguro-xml.php';
|
115 |
+
include_once 'includes/class-wc-pagseguro-api.php';
|
116 |
+
include_once 'includes/class-wc-pagseguro-gateway.php';
|
117 |
+
}
|
|
|
118 |
|
119 |
+
/**
|
120 |
+
* Add the gateway to WooCommerce.
|
121 |
+
*
|
122 |
+
* @param array $methods WooCommerce payment methods.
|
123 |
+
*
|
124 |
+
* @return array Payment methods with PagSeguro.
|
125 |
+
*/
|
126 |
+
public function add_gateway( $methods ) {
|
127 |
+
$methods[] = 'WC_PagSeguro_Gateway';
|
128 |
+
|
129 |
+
return $methods;
|
130 |
+
}
|
131 |
|
132 |
+
/**
|
133 |
+
* Hides the PagSeguro with payment method with the customer lives outside Brazil.
|
134 |
+
*
|
135 |
+
* @param array $available_gateways Default Available Gateways.
|
136 |
+
*
|
137 |
+
* @return array New Available Gateways.
|
138 |
+
*/
|
139 |
+
public function hides_when_is_outside_brazil( $available_gateways ) {
|
140 |
+
|
141 |
+
// Remove PagSeguro gateway.
|
142 |
+
if ( isset( $_REQUEST['country'] ) && 'BR' != $_REQUEST['country'] ) {
|
143 |
+
unset( $available_gateways['pagseguro'] );
|
144 |
+
}
|
145 |
+
|
146 |
+
return $available_gateways;
|
147 |
+
}
|
148 |
|
149 |
+
/**
|
150 |
+
* Stop cancel unpaid PagSeguro orders.
|
151 |
+
*
|
152 |
+
* @param bool $cancel Check if need cancel the order.
|
153 |
+
* @param WC_Order $order Order object.
|
154 |
+
*
|
155 |
+
* @return bool
|
156 |
+
*/
|
157 |
+
public function stop_cancel_unpaid_orders( $cancel, $order ) {
|
158 |
+
if ( 'pagseguro' === $order->payment_method ) {
|
159 |
+
return false;
|
160 |
+
}
|
161 |
+
|
162 |
+
return $cancel;
|
163 |
}
|
164 |
|
165 |
+
/**
|
166 |
+
* WooCommerce Extra Checkout Fields for Brazil notice.
|
167 |
+
*/
|
168 |
+
public function ecfb_missing_notice() {
|
169 |
+
$settings = get_option( 'woocommerce_pagseguro_settings', array( 'method' => '' ) );
|
170 |
|
171 |
+
if ( 'transparent' === $settings['method'] && ! class_exists( 'Extra_Checkout_Fields_For_Brazil' ) ) {
|
172 |
+
include 'includes/admin/views/html-notice-missing-ecfb.php';
|
173 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
}
|
175 |
|
176 |
+
/**
|
177 |
+
* WooCommerce missing notice.
|
178 |
+
*/
|
179 |
+
public function woocommerce_missing_notice() {
|
180 |
+
include 'includes/admin/views/html-notice-missing-woocommerce.php';
|
181 |
+
}
|
|
|
|
|
|
|
|
|
182 |
}
|
|
|
183 |
|
184 |
+
add_action( 'plugins_loaded', array( 'WC_PagSeguro', 'get_instance' ) );
|
185 |
|
186 |
endif;
|