mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Add sandbox parameter to fraudnet json config
This commit is contained in:
parent
6ad27c82b7
commit
acf7fa6d00
2 changed files with 6 additions and 2 deletions
|
@ -23,6 +23,9 @@ window.addEventListener('load', function() {
|
||||||
'f': FraudNetConfig.f,
|
'f': FraudNetConfig.f,
|
||||||
's': FraudNetConfig.s
|
's': FraudNetConfig.s
|
||||||
};
|
};
|
||||||
|
if(FraudNetConfig.sandbox === '1') {
|
||||||
|
configuration.sandbox = true;
|
||||||
|
}
|
||||||
|
|
||||||
script.text = JSON.stringify(configuration);
|
script.text = JSON.stringify(configuration);
|
||||||
document.body.appendChild(script);
|
document.body.appendChild(script);
|
||||||
|
|
|
@ -283,8 +283,9 @@ class PayUponInvoice {
|
||||||
'ppcp-pay-upon-invoice',
|
'ppcp-pay-upon-invoice',
|
||||||
'FraudNetConfig',
|
'FraudNetConfig',
|
||||||
array(
|
array(
|
||||||
'f' => $this->fraud_net->session_id(),
|
'f' => $this->fraud_net->session_id(),
|
||||||
's' => $this->fraud_net->source_website_id(),
|
's' => $this->fraud_net->source_website_id(),
|
||||||
|
'sandbox' => $this->environment->current_environment_is( Environment::SANDBOX ),
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue