mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
init 3d secure in paypal sdk
This commit is contained in:
parent
7d47777f59
commit
4225bdfd4c
1 changed files with 10 additions and 2 deletions
|
@ -43,9 +43,17 @@ class CreditCardRenderer {
|
|||
'submit',
|
||||
event => {
|
||||
event.preventDefault();
|
||||
hostedFields.submit().then(payload => {
|
||||
hostedFields.submit({
|
||||
contingencies: ['3D_SECURE']
|
||||
}).then((payload) => {
|
||||
payload.orderID = payload.orderId;
|
||||
return contextConfig.onApprove(payload);
|
||||
if (payload.liabilityShift === 'POSSIBLE') {
|
||||
return contextConfig.onApprove(payload);
|
||||
}
|
||||
|
||||
if (payload.liabilityShift) {
|
||||
// Handle buyer confirmed 3D Secure successfully
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue