Skip to content

Commit

Permalink
Merge pull request #171 from Adyen/develop
Browse files Browse the repository at this point in the history
Release 6.4.0
  • Loading branch information
rkewlani authored Apr 3, 2020
2 parents 4516275 + 4d7b0e5 commit 6e54e82
Show file tree
Hide file tree
Showing 10 changed files with 192 additions and 16 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The SAP Commerce integrates Adyen Checkout for all card payments and local/redir
Boleto, PayPal ECS and RatePay are routed over the old integration. When available in the new Checkout they will be migrated to the new flow.

## Requirements
SAP Commerce (Hybris) version 6.x
SAP Commerce (Hybris) version 6.x or 1905

## Installation

Expand All @@ -27,12 +27,12 @@ Required for the notifications:
<extension dir="${HYBRIS_BIN_DIR}/custom/adyen-hybris/adyenv6notification"/>
```

Additionally, required when using yacceleratorordermanagement (b2c_acc_oms recipe):
Additionally, required when using yacceleratorordermanagement (b2c_acc_oms recipe for 6.x and b2c_b2b_acc_oms recipe for 1905) :
```
<extension dir="${HYBRIS_BIN_DIR}/custom/adyen-hybris/adyenv6ordermanagement"/>
```

Additionally, required when using yacceleratorfulfilment (b2c_acc recipe):
Additionally, required when using yacceleratorfulfilment (b2c_acc recipe for 6.x and b2c_acc_plus for 1905):
```
<extension dir="${HYBRIS_BIN_DIR}/custom/adyen-hybris/adyenv6fulfilmentprocess"/>
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.name=platform-module
name=adyenv6b2ccheckoutaddon
releasedate=20170509 1903
vendor=adyen
version=6.3.0
version.api=6.3.0
version=6.4.0
version.api=6.4.0
4 changes: 2 additions & 2 deletions adyenv6backoffice/resources/adyenv6backoffice.build.number
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.name=platform-module
name=adyenv6backoffice
releasedate=20170509 1903
vendor=adyen
version=6.3.0
version.api=6.3.0
version=6.4.0
version.api=6.4.0
4 changes: 2 additions & 2 deletions adyenv6core/resources/adyenv6core.build.number
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ group.id=com.adyen.v6
module.name=platform-module
name=adyenv6core
vendor=adyen
version=6.3.0
version.api=6.3.0
version=6.4.0
version.api=6.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public final class Adyenv6coreConstants extends GeneratedAdyenv6coreConstants {
public static final String EXTENSIONNAME = "adyenv6core";

public static final String PLUGIN_NAME = "adyen-hybris";
public static final String PLUGIN_VERSION = "6.3.0";
public static final String PLUGIN_VERSION = "6.4.0";
public static final String PAYMENT_PROVIDER = "Adyen";
public static final String PAYMENT_METHOD ="paymentMethod";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ group.id=com.adyen.v6
module.name=platform-module
name=adyenv6fulfilmentprocess
vendor=adyen
version=6.3.0
version.api=6.3.0
version=6.4.0
version.api=6.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ description=adyenv6notification
name=adyenv6notification
releasedate=20170803 1323
vendor=adyen
version=6.3.0
version.api=6.3.0
version=6.4.0
version.api=6.4.0
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ module.name=platform-module
name=adyenv6ordermanagement
releasedate=20170509 1754
vendor=adyen
version=6.3.0
version.api=6.3.0
version=6.4.0
version.api=6.4.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
[y] hybris Platform
Copyright (c) 2018 SAP SE or an SAP affiliate company.
All rights reserved.
This software is the confidential and proprietary information of SAP
("Confidential Information"). You shall not disclose such Confidential
Information and shall use it only in accordance with the terms of the
license agreement you entered into with SAP.
-->

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">

<context:annotation-config/>

<bean id="generateOrderConfirmationEmail" parent="abstractGenerateEmailAction">
<property name="frontendTemplateName" value="OrderConfirmationEmailTemplate"/>
</bean>
</beans>
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
~ ######
~ ######
~ ############ ####( ###### #####. ###### ############ ############
~ ############# #####( ###### #####. ###### ############# #############
~ ###### #####( ###### #####. ###### ##### ###### ##### ######
~ ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
~ ###### ###### #####( ###### #####. ###### ##### ##### ######
~ ############# ############# ############# ############# ##### ######
~ ############ ############ ############# ############ ##### ######
~ ######
~ #############
~ ############
~
~ Adyen Hybris Extension
~
~ Copyright (c) 2017 Adyen B.V.
~ This file is open source and available under the MIT license.
~ See the LICENSE file for more info.
-->
<process xmlns="http://www.hybris.de/xsd/processdefinition" start="checkOrder"
name="order-process" processClass="de.hybris.platform.orderprocessing.model.OrderProcessModel">

<!-- Check Order -->
<action id="checkOrder" bean="checkOrderAction">
<transition name="OK" to="adyenCheckAuthorization"/>
<transition name="NOK" to="error"/>
</action>

<!-- Wait for HPP/3Ds authorization -->
<action id="adyenCheckAuthorization" bean="adyenCheckAuthorizationAction">
<transition name="OK" to="fraudCheck"/>
<transition name="NOK" to="error"/>
<transition name="WAIT" to="waitForAdyenAuthorization"/>
</action>

<!--Check authorization completion-->
<wait id="waitForAdyenAuthorization" then="adyenCheckAuthorization" prependProcessCode="true">
<event>AdyenAuthorized</event>
</wait>

<!-- Fraud Check -->
<action id="fraudCheck" bean="fraudCheckOrderInternalAction">
<transition name="OK" to="sendOrderPlacedNotification"/>
<transition name="POTENTIAL" to="manualOrderCheckCSA"/>
<transition name="FRAUD" to="cancelOrder"/>
</action>

<!-- Fraud Check : OK -->
<action id="sendOrderPlacedNotification" bean="sendOrderPlacedNotificationAction">
<transition name="OK" to="geocodeShippingAddress"/>
</action>

<!-- Fraud Check : FRAUD -->
<action id="cancelOrder" bean="cancelOrderAction">
<transition name="OK" to="notifyCustomer"/>
</action>

<action id="notifyCustomer" bean="notifyCustomerAboutFraudAction">
<transition name="OK" to="failed"/>
</action>

<!-- Fraud Check : POTENTIAL -->
<action id="manualOrderCheckCSA" bean="prepareOrderForManualCheckAction">
<transition name="OK" to="waitForManualOrderCheckCSA"/>
</action>

<wait id="waitForManualOrderCheckCSA" then="orderManualChecked" prependProcessCode="true">
<event>CSAOrderVerified</event>
</wait>

<action id="orderManualChecked" bean="orderManualCheckedAction">
<transition name="OK" to="sendOrderPlacedNotification"/>
<transition name="NOK" to="cancelOrder"/>
<transition name="CANCELLED" to="success"/>
</action>

<!-- Sourcing and Allocation -->
<action id="geocodeShippingAddress" bean="geocodeShippingAddressAction">
<transition name="OK" to="sourceOrder"/>
</action>

<action id="sourceOrder" bean="sourceOrderAction">
<transition name="OK" to="waitForOrderAction"/>
</action>

<!-- Wait to perform action on Order -->
<wait id="waitForOrderAction" prependProcessCode="true" then="failed">
<case event="OrderActionEvent">
<choice id="consignmentProcessEnded" then="verifyOrderCompletion"/>
<choice id="cancelOrder" then="processOrderCancellation"/>
<choice id="cancelled" then="success"/>
<choice id="reSource" then="sourceOrder"/>
</case>
</wait>

<!-- Wait for order cancellation to be completed -->
<action id="processOrderCancellation" bean="processOrderCancellationAction">
<transition name="OK" to="adyenCancelOrRefund"/>
<transition name="WAIT" to="waitForOrderAction"/>
<transition name="SOURCING" to="sourceOrder"/>
</action>

<action id="adyenCancelOrRefund" bean="adyenCancelOrRefundAction">
<transition name="OK" to="verifyOrderCompletion"/>
</action>

<action id="verifyOrderCompletion" bean="verifyOrderCompletionAction">
<transition name="OK" to="postTaxes"/>
<transition name="WAIT" to="waitForOrderAction"/>
<transition name="CANCELLED" to="success"/>
</action>

<!-- Tax and Payment -->
<action id="postTaxes" bean="postTaxesAction">
<transition name="OK" to="takePayment"/>
</action>

<action id="takePayment" bean="takePaymentAction">
<transition name="OK" to="adyenCheckCapture"/>
<transition name="NOK" to="sendPaymentFailedNotification"/>
</action>

<!--Check if the payment is already captured-->
<action id="adyenCheckCapture" bean="adyenCheckCaptureAction">
<transition name="OK" to="completeOrder"/>
<transition name="NOK" to="sendPaymentFailedNotification"/>
<transition name="WAIT" to="waitForAdyenCapture"/>
</action>

<!--Check Capture completion-->
<wait id="waitForAdyenCapture" then="adyenCheckCapture" prependProcessCode="true">
<event>AdyenCaptured</event>
</wait>

<action id="completeOrder" bean="completeOrderAction">
<transition name="OK" to="success"/>
</action>

<action id="sendPaymentFailedNotification" bean="sendPaymentFailedNotificationAction">
<transition name="OK" to="failed"/>
</action>

<end id="error" state="ERROR">Order process error.</end>
<end id="failed" state="FAILED">Order process failed.</end>
<end id="success" state="SUCCEEDED">Order process completed.</end>

</process>

0 comments on commit 6e54e82

Please sign in to comment.