adyen-salesforce-commerce-cloud icon indicating copy to clipboard operation
adyen-salesforce-commerce-cloud copied to clipboard

TransactionType is not correctly set to 'CAPTURE' for SALE payment methods from AdyenSalePaymentMethods

Open georgi-il opened this issue 10 months ago • 1 comments

Describe the bug TransactionType is not set correctly to 'CAPTURE' for SALE payment methods from AdyenSalePaymentMethods

To Reproduce Steps to reproduce the behavior:

  1. set AdyenSalePaymentMethods site pref to "paypal"
  2. Place a PayPal order
  3. Check the order afterwards - the paymentTransaction.type of the payment instrument doesn't have any value.

Expected behavior The paymentTransaction.type should be "CAPTURE".

Additional context The issue is in paymentFromComponent.js#160 - the payment method reference from the basket is passed to adyenCheckout.createPaymentRequest, but since the order has already been created, the payment instrument in the order is already a different object with a different UUID. So setting the paymentTransaction on the basket payment instrument has no effect. This is the fix we use in our project: 321543090-d66c695e-90d9-49be-9395-bd70949d0a6c

georgi-il avatar Apr 11 '24 07:04 georgi-il

Hello @georgi-il

We will set an investigation regarding this and will keep you posted.

Kind Regards Aleksandar Adyen

amihajlovski avatar Apr 11 '24 08:04 amihajlovski

Hey @georgi-il ,

We have fixed the issue on our latest release.

Kind regards, Zenit Adyen

zenit2001 avatar Sep 19 '24 09:09 zenit2001