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

Explanation of error "There is no authorised Adyen payments for this order" requested #603

Open
Gugiman opened this issue Jan 24, 2025 · 3 comments

Comments

@Gugiman
Copy link

Gugiman commented Jan 24, 2025

Hi,

we have developed our own refund system for Shopware which uses the refund services of this plugin.

Unfortunetly, we often get this error :
"There is no authorised Adyen payments for this order!"

In this moment, the payment status of that order is already succesfully switched to "paid".
So I assume that everything worked like it should.

Can you pleasy explain to me, what causes this error?

@adyen-integrations-support

Hi @Gugiman ,

Thank you for reaching out to us.

We would like to clarify that we cannot guarantee compatibility with third-party plugins or custom systems. Since we don’t have visibility into your refund system or its implementation, could you please provide us with more information? Specifically:

  1. The details of the plugin or custom system you are using
  2. What exactly you implemented and where
  3. Steps to reproduce the issue so we can try to replicate it in our local environment

This information will help us better understand the situation and investigate further.

Thank you in advance for your cooperation.

Best regards

@Gugiman
Copy link
Author

Gugiman commented Jan 27, 2025

We just use your RefundService()->refund() Method.
And i want to know what possible causes the mentioned error has?

We do not change your process of notifications etc.
But days after the payment process is "officially" done because your plugin set it to to payment status "paid" we, sometimes less sometimes often, can not do a refund because of this error.

I cannot give you informations about number 3 because this is basically my question :)
I want to understand that error and what causes it to fix ist.

@adyen-integrations-support

Hi @Gugiman ,

The error message "There is no authorised Adyen payment for this order!" occurs when the Adyen plugin cannot find a payment record for the order you are trying to refund. The plugin searches for the payment record in the adyen_payment database table using the last order transaction ID for the given order.

You can find more details by checking the \Adyen\Shopware\Service\AdyenPaymentService::getAdyenPayments method implementation. If this method does not return any records, the error will appear.

This issue can occur if:

  • The order was not paid using an Adyen payment method.
  • The last order transaction is not paid or not related to an Adyen payment.

Please let us know if you need further clarification.

Best regards

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