mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Merge pull request #2058 from woocommerce/PCP-2169-must-pass-create-subscription-with-intent-subscription-error-with-pay-pal-subscriptions-mode-when-allowing-manual-renewal-payments
"Must pass createSubscription with intent=subscription" error with PayPal Subscriptions mode (2169)
This commit is contained in:
commit
fe540a5a50
1 changed files with 4 additions and 1 deletions
|
@ -948,7 +948,10 @@ document.querySelector("#payment").before(document.querySelector("#ppcp-messages
|
|||
* @return bool
|
||||
*/
|
||||
private function has_subscriptions(): bool {
|
||||
if ( ! $this->subscription_helper->accept_only_automatic_payment_gateways() ) {
|
||||
if (
|
||||
! $this->subscription_helper->accept_only_automatic_payment_gateways()
|
||||
&& $this->paypal_subscriptions_enabled() !== true
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
if ( is_product() ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue