mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Replace EXPRESS_CHECKOUT
with PAYMENT_METHODS
to make it work with pui
This commit is contained in:
parent
957e7bf84d
commit
baef2d5408
1 changed files with 4 additions and 2 deletions
|
@ -176,9 +176,11 @@ class PayUponInvoice {
|
|||
}
|
||||
|
||||
if ( in_array( 'PPCP', $data['products'], true ) ) {
|
||||
$data['products'][] = 'PAYMENT_METHODS';
|
||||
$data['capabilities'][] = 'PAY_UPON_INVOICE';
|
||||
$data['products'][] = 'PAYMENT_METHODS';
|
||||
} elseif ( in_array( 'EXPRESS_CHECKOUT', $data['products'], true ) ) {
|
||||
$data['products'][0] = 'PAYMENT_METHODS';
|
||||
}
|
||||
$data['capabilities'][] = 'PAY_UPON_INVOICE';
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue