mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Check for venmo and vaulting before creating wc order
This commit is contained in:
parent
20ccef8b28
commit
1561272657
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ const onApprove = (context, errorHandler) => {
|
|||
nonce: context.config.ajax.approve_order.nonce,
|
||||
order_id:data.orderID,
|
||||
funding_source: window.ppcpFundingSource,
|
||||
should_create_wc_order: true
|
||||
should_create_wc_order: !context.config.vaultingEnabled || data.paymentSource !== 'venmo'
|
||||
})
|
||||
}).then((res)=>{
|
||||
return res.json();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue