Skip to content

Commit

Permalink
set preference again after abandoned the payment
Browse files Browse the repository at this point in the history
  • Loading branch information
crespoep committed Nov 25, 2020
1 parent 5075179 commit 41c136e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Payum/Action/StatusAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ public function execute($request): void
}

$this->gateway->execute($httpRequest = new GetHttpRequest());

if (!isset($httpRequest->query['collection_status'])) {
$request->markNew();

return;
}

$status = $httpRequest->query['collection_status'];

if ($status === 'approved') {
Expand Down

0 comments on commit 41c136e

Please sign in to comment.