From ddb7c9c14e6b56256418f3ae79107fa0490c72ee Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 8 Jul 2021 22:32:18 +0200 Subject: [PATCH] limited manual payement to annual licenses --- .../commerce_payment.commerce_payment_gateway.manual.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/sync/commerce_payment.commerce_payment_gateway.manual.yml b/config/sync/commerce_payment.commerce_payment_gateway.manual.yml index 2d457183..2efcbdda 100644 --- a/config/sync/commerce_payment.commerce_payment_gateway.manual.yml +++ b/config/sync/commerce_payment.commerce_payment_gateway.manual.yml @@ -15,5 +15,11 @@ configuration: payment_method_types: - credit_card collect_billing_information: true -conditions: { } +conditions: + - + plugin: 'order_purchased_entity:commerce_product_variation' + configuration: + entities: + 4: 2eb9460f-5816-4cda-8fb5-aca553d7d473 + 6: 56bbfeba-a2af-4e97-b04a-9ac31f24c6b9 conditionOperator: AND