buckaroo-it / BuckarooSDK_Node

Repository containing the Node.js SDK by Buckaroo
MIT License
1 stars 3 forks source link

BA-592: Fix Payload Class Initialization in DataRequest #74

Closed vildanbina closed 2 weeks ago

vildanbina commented 2 weeks ago

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.