Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
georgi-il opened this issue Apr 11, 2024 · 1 comment

Comments

@georgi-il
Copy link

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

@amihajlovski
Copy link
Contributor

Hello @georgi-il

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

Kind Regards
Aleksandar
Adyen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants