MONEI / MONEI-Salesforce-Commerce-Cloud

Salesforce Commerce Cloud module for MONEI
https://docs.monei.com/docs/e-commerce/salesforce/
MIT License
0 stars 0 forks source link

Unknown dynamic property 'Monei_API_PaymentID' #4

Closed federicogiampietro closed 1 year ago

federicogiampietro commented 1 year ago

Hello,

on authorize hook script from file int_monei_sfra/cartridge/scripts/monei/processor.js there is the line 109 where a custom attribute in the Order object is manipulated Monei_API_PaymentID

in the xml definitions of the custom attribute, the attribute is defined as MONEI_API_PaymentID

the difference in the attribute casing throws a 500 error. Either the attribute is defined as Monei_API_PaymentID in the XML or the code of processor.js needs to be updated to change the attribute Monei_API_PaymentID