Skip to content

Commit

Permalink
bugfix status action
Browse files Browse the repository at this point in the history
  • Loading branch information
David Höck committed May 11, 2020
1 parent 5ac55e4 commit eb8e810
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Action/CaptureAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ public function execute($request)

$details = ArrayObject::ensureArrayObject($request->getModel());

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

/** @var MollieApiClient $mollie */
$mollie = $this->api->getMollieApi();
$method = $this->api->getMethod();
Expand Down
2 changes: 1 addition & 1 deletion src/Action/StatusAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function execute($request)
$mollie = $this->api->getMollieApi();

if ($details[MollieDetails::ORDER_ID]) {
$mollieOrder = $mollie->orders->get($mollie);
$mollieOrder = $mollie->orders->get($details[MollieDetails::ORDER_ID]);

$status = $mollieOrder->status;
$details[MollieDetails::STATUS] = $status;
Expand Down

0 comments on commit eb8e810

Please sign in to comment.