Skip to content

[ECP-9711] 😍 Mutation adyenPaymentDetails - Support exception message #2056

@dimitriBouteille

Description

@dimitriBouteille

Hi, It is possible to integrate this feature in version 9.0.0 ?

In the future, use the message and the code passed by the exception. Since currently the message and code are not being passed, use this generic message.

try {
            return $this->getAdyenPaymentStatusDataProvider->getGetAdyenPaymentDetails($this->jsonSerializer->serialize($payload));
        } catch (Exception $exception) {
            $this->adyenLogger->error(sprintf(
                'GraphQl payment details call failed with error message: %s',
                $exception->getMessage()
            ));
            // In the future, use the message and the code passed by the exception. Since currently the message and code are not
            // being passed, use this generic message.
            throw new GraphQlAdyenException(__('An unknown error has occurred'), null, 000);
        }

throw new GraphQlAdyenException(__('An unknown error has occurred'), null, 000);

Metadata

Metadata

Assignees

Labels

EnhancementIndicates a new feature request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions