diff --git a/modules/payment/config/schema/commerce_payment.schema.yml b/modules/payment/config/schema/commerce_payment.schema.yml index 56cf962..7561360 100644 --- a/modules/payment/config/schema/commerce_payment.schema.yml +++ b/modules/payment/config/schema/commerce_payment.schema.yml @@ -51,6 +51,13 @@ commerce_payment_gateway_configuration: sequence: type: string +commerce_checkout.commerce_checkout_pane.payment_information: + type: commerce_checkout_pane_configuration + mapping: + capture: + type: string + label: 'Billing information required for free orders' + commerce_checkout.commerce_checkout_pane.payment_process: type: commerce_checkout_pane_configuration mapping: diff --git a/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentInformation.php b/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentInformation.php index 753eb4e..19b3409 100644 --- a/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentInformation.php +++ b/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentInformation.php @@ -25,7 +25,7 @@ class PaymentInformation extends CheckoutPaneBase { */ public function defaultConfiguration() { return [ - 'free_orders' => [] + 'free_orders' => '' ] + parent::defaultConfiguration(); }