working on 3ds SCA

This commit is contained in:
David Bomba 2024-04-29 10:01:49 +10:00
parent 086e82649b
commit 7a128ecb10
2 changed files with 9 additions and 2 deletions

View File

@ -444,8 +444,8 @@ return render('gateways.paypal.pay', $data);
"card" => [
"attributes" => [
"verification" => [
// "method" => "SCA_WHEN_REQUIRED", //SCA_ALWAYS
"method" => "SCA_ALWAYS", //SCA_ALWAYS
"method" => "SCA_WHEN_REQUIRED", //SCA_ALWAYS
// "method" => "SCA_ALWAYS", //SCA_ALWAYS
],
"vault" => [
"store_in_vault" => "ON_SUCCESS", //must listen to this webhook - VAULT.PAYMENT-TOKEN.CREATED webhook.

View File

@ -104,6 +104,13 @@
//doesn't really do anything as failure is linked in SUBMIT. We only hit here after a successful return
//and where SCA is optional?
if(liabilityShift == 'NO') {
document.getElementById('errors').textContent = `Sorry, your transaction could not be processed, Please try a different payment method.`;
document.getElementById('errors').hidden = false;
return;
}
}
var errorDetail = Array.isArray(data.details) && data.details[0];