Resolved an issue where DataRequest was defaulting to the TransactionData class for payloads, causing the clientIP property to be overwritten during initialization. Introduced a payloadClass parameter to specify the payload class, ensuring proper initialization and preservation of clientIP. This fix also addresses related problems in the KlarnaKP reserve method when attaching the clientIP property.
Resolved an issue where
DataRequest
was defaulting to theTransactionData
class for payloads, causing theclientIP
property to be overwritten during initialization. Introduced apayloadClass
parameter to specify the payload class, ensuring proper initialization and preservation ofclientIP
. This fix also addresses related problems in theKlarnaKP
reserve method when attaching theclientIP
property.