Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add credit card to checkout blocks #410

Merged
merged 27 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
90cd0ca
fix: zero in address number field (#392)
mateus-picoloto Feb 7, 2024
18293e1
add card
mateus-picoloto Feb 26, 2024
6c232b0
handling errors in tokenize
mateus-picoloto Feb 26, 2024
926f9f5
fix multi tokenize errors
mateus-picoloto Feb 26, 2024
e624809
fix initial installments options by brand
mateus-picoloto Feb 26, 2024
644e6f1
refactor: react components folder structure
mateus-picoloto Feb 29, 2024
b004b54
fix: log name with dot (#395)
mateus-picoloto Mar 7, 2024
b5f72bd
fix: webhook problem when there is a path in the url (#399)
fabiano-mallmann Mar 19, 2024
4c01445
feat: add 3ds (#402)
mateus-picoloto Mar 21, 2024
8c689da
fix: remove require fields modal (#403)
mateus-picoloto Mar 22, 2024
a787e2e
feat: change 3ds min amount config mask (#404)
mateus-picoloto Mar 26, 2024
1c5869f
fix: authentication metadata when failed charge (#405)
mateus-picoloto Mar 26, 2024
deaa051
fix: removed subscription config fields when the plugin is disabled
RafaMelazzo Mar 26, 2024
2ea7756
Fix subscription config fields (#406)
RafaMelazzo Mar 26, 2024
03fa966
fix: empty 3ds min amount config (#407)
mateus-picoloto Mar 28, 2024
715d085
fix: calling 3ds for subscription (#408)
mateus-picoloto Mar 28, 2024
17d6fdd
feat: updated sweetalert to v11.10.7
RafaMelazzo Apr 1, 2024
f4d753a
fix: sonarcloud
RafaMelazzo Apr 1, 2024
a5ee81d
fix: message language
RafaMelazzo Apr 1, 2024
ed6f63e
feat: updated sweetalert2 to v11.10.7 (#409)
RafaMelazzo Apr 1, 2024
1facec9
feat: added validation to credit card
RafaMelazzo Apr 10, 2024
bc23ee5
fix: infinite loop
RafaMelazzo Apr 11, 2024
5d2ffb4
fix: wallet and build
RafaMelazzo Apr 11, 2024
e46d04c
Merge branch 'develop' of https://github.com/pagarme/woocommerce into…
RafaMelazzo Apr 11, 2024
4f49826
merge: conflict resolution
RafaMelazzo Apr 11, 2024
0fc4fce
fix: removed tests bypass
RafaMelazzo Apr 11, 2024
2ae11a0
fix: code review
RafaMelazzo May 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
with:
args: >
-Dsonar.php.coverage.reportPaths=coverage/clover.xml
-Dsonar.coverage.exclusions=tests/**,assets/**,templates/**,woo-pagarme-payments.php
-Dsonar.coverage.exclusions=tests/**,assets/**,src/Controller/**,templates/**,woo-pagarme-payments.php
-Dsonar.tests=tests/
-Dsonar.sources=src,assets,templates,woo-pagarme-payments.php

Expand Down
43 changes: 21 additions & 22 deletions assets/javascripts/admin/pagarme_notices.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const { __ } = wp.i18n;
/* jshint esversion: 6 */
jQuery(function ($) {
$('.pagarme-get-hub-account-info').on('click', function (e) {
try {
swal({
title: ' ',
text: __('Processing', 'woo-pagarme-payments'),
swal.fire({
title: 'Processando',
icon: 'warning',
allowOutsideClick: false
});
swal.showLoading();
Expand All @@ -16,30 +16,29 @@ jQuery(function ($) {
command: 'get'
}),
success: function (response) {
swal(
__('Success!', 'woo-pagarme-payments'),
__('Dash configuration was retrieved successfully. The page is reloading. Please, wait a moment.',
'woo-pagarme-payments'
),
'success'
)
swal.fire({
title: 'Sucesso!',
text: 'As configurações da Dash foram recuperadas com sucesso. A página está recarregando.' +
' Por favor, aguarde um momento.',
icon: 'success'
});
document.location.reload(true);
},
fail: function (response) {
swal(
__('Fail!', 'woo-pagarme-payments'),
__('Dash configuration was not retrieved. Please, try again.', 'woo-pagarme-payments'),
'error'
)
swal.fire({
title: 'Falha!',
text: 'As configurações da Dash não foram recuperadas. Por favor, tente novamente.',
icon: 'error'
});
}

});
} catch (e) {
swal(
__('Fail!', 'woo-pagarme-payments'),
__('Dash configuration was not retrieved. Please, try again.', 'woo-pagarme-payments'),
'error'
)
} catch (error) {
swal.fire({
title: 'Falha!',
text: 'As configurações da Dash não foram recuperadas. Por favor, tente novamente.',
icon: 'error'
});
}
});
});
13 changes: 6 additions & 7 deletions assets/javascripts/admin/pagarme_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,19 @@
const element = $(this);
const value = element.val();
if (value === 'yes') {
swal({
swal.fire({
type: 'warning',
title: allow_no_address_swal.title,
text: allow_no_address_swal.text,
showConfirmButton: true,
showCancelButton: true,
cancelButtonText: allow_no_address_swal.cancelButtonText,
showDenyButton: true,
denyButtonText: allow_no_address_swal.cancelButtonText,
allowOutsideClick: false,
}).then(
function (confirm) {},
function (cancel) {
}).then((result) => {
if (!result.isConfirmed) {
element.val('no');
}
);
});
}
}
);
Expand Down
22 changes: 12 additions & 10 deletions assets/javascripts/admin/sales/order/view/cancel-capture.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* jshint esversion: 6 */
$ = jQuery;
const actionsTarget = '[data-ref]:enabled';
const modalTarget = '.modal';
Expand Down Expand Up @@ -101,9 +102,9 @@ let pagarmeCancelCapture = {
},

requestInProgress: function () {
swal({
title: ' ',
text: 'Processando...',
swal.fire({
title: 'Processando',
icon: 'warning',
allowOutsideClick: false
});
swal.showLoading();
Expand All @@ -113,14 +114,14 @@ let pagarmeCancelCapture = {
this.lock = false;
$( modalTarget ).iziModal('close');
swal.close();
swal({
type: 'success',
swal.fire({
icon: 'success',
title: ' ',
html: response.data.message,
showConfirmButton: false,
timer: 2000
timer: 2000,
timerProgressBar: true
}).then(
function () { },
function (dismiss) {
window.location.reload();
}
Expand All @@ -135,12 +136,13 @@ let pagarmeCancelCapture = {
this.lock = false;
swal.close();
let data = JSON.parse(xhr.responseText);
swal({
type: 'error',
swal.fire({
icon: 'error',
title: ' ',
html: data.message,
showConfirmButton: false,
timer: 2000
timer: 2000,
timerProgressBar: true
});
},

Expand Down
34 changes: 0 additions & 34 deletions assets/javascripts/front/checkout/model/payment.js

This file was deleted.

Loading
Loading