-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: main
Are you sure you want to change the base?
Feature/plug 106 #17
Conversation
…ated to active in the webhook.
✅ Linked to Story PLUG-106 · Magento refactor |
use TrueLayer\Connect\Api\Log\RepositoryInterface as LogRepository; | ||
|
||
|
||
class OrderPlacedHandler implements ObserverInterface |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
No description provided.