adyen-salesforce-commerce-cloud
adyen-salesforce-commerce-cloud copied to clipboard
TransactionType is not correctly set to 'CAPTURE' for SALE payment methods from AdyenSalePaymentMethods
Describe the bug TransactionType is not set correctly to 'CAPTURE' for SALE payment methods from AdyenSalePaymentMethods
To Reproduce Steps to reproduce the behavior:
- set AdyenSalePaymentMethods site pref to "paypal"
- Place a PayPal order
- 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:
Hello @georgi-il
We will set an investigation regarding this and will keep you posted.
Kind Regards Aleksandar Adyen