Add 3ds verification method

This commit is contained in:
Emili Castells Guasch 2023-12-13 14:17:46 +01:00
parent fe089484a0
commit c3d0039f83
4 changed files with 46 additions and 19 deletions

View file

@ -69,6 +69,7 @@ const init = () => {
const result = await response.json();
if(result.success === true) {
window.location.href = ppcp_add_payment_method.payment_methods_page;
return;
}
errorHandler.message(ppcp_add_payment_method.error_message);
@ -105,7 +106,8 @@ const init = () => {
},
body: JSON.stringify({
nonce: ppcp_add_payment_method.ajax.create_setup_token.nonce,
payment_method: PaymentMethods.CARDS
payment_method: PaymentMethods.CARDS,
verification_method: ppcp_add_payment_method.verification_method
})
})
@ -133,6 +135,7 @@ const init = () => {
const result = await response.json();
if(result.success === true) {
window.location.href = ppcp_add_payment_method.payment_methods_page;
return;
}
errorHandler.message(ppcp_add_payment_method.error_message);