mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-16 11:54:35 -04:00
working on 3ds SCA
This commit is contained in:
parent
086e82649b
commit
7a128ecb10
@ -444,8 +444,8 @@ return render('gateways.paypal.pay', $data);
|
|||||||
"card" => [
|
"card" => [
|
||||||
"attributes" => [
|
"attributes" => [
|
||||||
"verification" => [
|
"verification" => [
|
||||||
// "method" => "SCA_WHEN_REQUIRED", //SCA_ALWAYS
|
"method" => "SCA_WHEN_REQUIRED", //SCA_ALWAYS
|
||||||
"method" => "SCA_ALWAYS", //SCA_ALWAYS
|
// "method" => "SCA_ALWAYS", //SCA_ALWAYS
|
||||||
],
|
],
|
||||||
"vault" => [
|
"vault" => [
|
||||||
"store_in_vault" => "ON_SUCCESS", //must listen to this webhook - VAULT.PAYMENT-TOKEN.CREATED webhook.
|
"store_in_vault" => "ON_SUCCESS", //must listen to this webhook - VAULT.PAYMENT-TOKEN.CREATED webhook.
|
||||||
|
@ -104,6 +104,13 @@
|
|||||||
//doesn't really do anything as failure is linked in SUBMIT. We only hit here after a successful return
|
//doesn't really do anything as failure is linked in SUBMIT. We only hit here after a successful return
|
||||||
//and where SCA is optional?
|
//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];
|
var errorDetail = Array.isArray(data.details) && data.details[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user