From f580035291db0fc36c1ec2f5143db97d978948f2 Mon Sep 17 00:00:00 2001
From: Matthew Wire <mjw@mjwconsult.co.uk>
Date: Mon, 1 May 2023 11:40:40 +0100
Subject: [PATCH] Further fix to build lineitems for Drupal9Webform

---
 CRM/Core/Payment/StripeCheckout.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CRM/Core/Payment/StripeCheckout.php b/CRM/Core/Payment/StripeCheckout.php
index 7daa8aab..8ecde336 100644
--- a/CRM/Core/Payment/StripeCheckout.php
+++ b/CRM/Core/Payment/StripeCheckout.php
@@ -169,7 +169,7 @@ class CRM_Core_Payment_StripeCheckout extends CRM_Core_Payment_Stripe {
       $stripeCustomerID = $existingStripeCustomer['customer_id'];
     }
 
-    if (!empty($paymentParams['skipLineItem'])) {
+    if (!empty($paymentParams['skipLineItem']) || empty($paymentParams['line_item'])) {
       $lineItems = [
         'priceset' => [
           'pricesetline' => [
-- 
GitLab