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

Feature/plug 106 #17

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft

Feature/plug 106 #17

wants to merge 8 commits into from

Conversation

lighe
Copy link
Collaborator

@lighe lighe commented May 8, 2024

No description provided.

Copy link

swarmia bot commented May 8, 2024

✅  Linked to Story PLUG-106 · Magento refactor

use TrueLayer\Connect\Api\Log\RepositoryInterface as LogRepository;


class OrderPlacedHandler implements ObserverInterface
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use this observer to ensure that orders that are placed are placed in the PENDING PAYMENT state straight away.

/**
* Class ProcessSettledWebhook
*/
class ProcessFailedWebhook
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use the failed webhook to set the order to PAYMENT FAILED.

/**
* Class ProcessSettledWebhook
*/
class ProcessSettledWebhook
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The settled webhook does not create an order anymore, it simply updates the order status to PROCESSING.

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

Successfully merging this pull request may close these issues.

None yet

1 participant