cancel
Showing results for 
Search instead for 
Did you mean: 

Issue adding a note or reference to a payment item via plugin using addPayoutItems in SAP CCO

AlexA3
Discoverer
0 Kudos
61

Hello Community,

I am working with SAP Customer Checkout (CCO) and have encountered an issue when trying to add a note or reference to a payment item using a custom plugin.

The logic is implemented in the after event of the addPayoutItems function, where we attempt to insert the note or reference dynamically.
Specifically, we followed a similar development approach used when cancelling an item, where a new list of items is generated — including the updated one — and then the receipt and the ReceiptManager are updated accordingly.

While the plugin correctly adds the modified list and calls the expected update functions, the note or reference is not being saved or reflected on the final payment item when validating the transaction through the manager.

Screenshots will be attached to illustrate:

  • How the information is injected during the addPayoutItems event.

    AlexA3_2-1745871139933.png

     

  • The result after validation where the note/reference is missing.

    AlexA3_1-1745871097463.png

Has anyone experienced something similar or can provide guidance?
Is there an additional step required to persist changes to payment items when modifying them through a plugin?

Thanks in advance for your support!

Accepted Solutions (0)

Answers (0)