Skip to content

Commit

Permalink
Release 4.1.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
WorldlineConnect authored and jenkins committed Jul 19, 2024
1 parent a348f27 commit cca3351
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 4.1.3 - 2024-07-19

- Set instance purchase orders to correct state

## 4.1.2 - 2024-07-11

- Allow Apple Pay merchant name to be configured
Expand Down
6 changes: 2 additions & 4 deletions Gateway/Command/AuthorizeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,16 +180,14 @@ private function handleCreatePaymentResponse(
break;
case StatusInterface::PENDING_APPROVAL:
case StatusInterface::AUTHORIZATION_REQUESTED:
$order->setState(Order::STATE_PENDING_PAYMENT);
$order->setStatus(Order::STATE_PENDING_PAYMENT);
$payment->setData('order_state', Order::STATE_PENDING_PAYMENT);

$this->tokenService->createByOrderAndPayment($order, $paymentResponse);

$payment->registerAuthorizationNotification($amount);
break;
case StatusInterface::CAPTURE_REQUESTED:
$order->setState(Order::STATE_PROCESSING);
$order->setStatus(Order::STATE_PROCESSING);
$payment->setData('order_state', Order::STATE_PROCESSING);

$this->tokenService->createByOrderAndPayment($order, $paymentResponse);

Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Worldline_Connect" setup_version="4.1.2">
<module name="Worldline_Connect" setup_version="4.1.3">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Quote"/>
Expand Down

0 comments on commit cca3351

Please sign in to comment.