From c20a0f4876e56cd8332509a1233be973f6a8e802 Mon Sep 17 00:00:00 2001 From: Hugo EXTRAT Date: Fri, 11 Oct 2024 09:07:26 +0200 Subject: [PATCH] fix: fallback to lineItems name if no description --- Sources/PrimerSDK/Classes/Data Models/ClientSession.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/PrimerSDK/Classes/Data Models/ClientSession.swift b/Sources/PrimerSDK/Classes/Data Models/ClientSession.swift index 24474c578..dbefd9a40 100644 --- a/Sources/PrimerSDK/Classes/Data Models/ClientSession.swift +++ b/Sources/PrimerSDK/Classes/Data Models/ClientSession.swift @@ -286,7 +286,7 @@ internal class ClientSession { func toOrderItem() throws -> ApplePayOrderItem { let applePayOptions = PrimerSettings.current.paymentMethodOptions.applePayOptions - let name = (self.description ?? applePayOptions?.merchantName) + let name = (self.description ?? self.name ?? applePayOptions?.merchantName) return try ApplePayOrderItem( name: name ?? "Item", unitAmount: self.amount,