Skip to content

Commit 289db82

Browse files
committed
Add comment about 200 responses
1 parent 2c0981a commit 289db82

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Controller/Shop/PaymentWebhookController.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ public function __construct(
7171
}
7272
}
7373

74+
/**
75+
* Every exit path returns 200 because Mollie keeps retrying the webhook on any
76+
* non-2xx response — "for any other response we keep trying"
77+
* (https://docs.mollie.com/docs/accepting-payments). When we cannot meaningfully
78+
* act (unknown Mollie id, unknown order, order has no payment, unsupported
79+
* status), a retry would not change the outcome, so we acknowledge and move on.
80+
*/
7481
public function __invoke(Request $request): Response
7582
{
7683
$this->mollieApiClient->setApiKey($this->apiClientKeyResolver->getClientWithKey()->getApiKey());

0 commit comments

Comments
 (0)