Skip to content

Commit

Permalink
Merge pull request #134 from Adyen/develop
Browse files Browse the repository at this point in the history
Release 6.1.1
  • Loading branch information
rkewlani authored Sep 6, 2019
2 parents d052aec + 025c01f commit 2db3022
Show file tree
Hide file tree
Showing 12 changed files with 334 additions and 13 deletions.
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.1.0
version.api=6.1.0
version=6.1.1
version.api=6.1.1
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.1.0
version.api=6.1.0
version=6.1.1
version.api=6.1.1
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.1.0
version.api=6.1.0
version=6.1.1
version.api=6.1.1
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.1.0";
public static final String PLUGIN_VERSION = "6.1.1";
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 @@ -507,6 +507,8 @@ private void updateCartWithSessionData(CartData cartData) {
getSessionService().removeAttribute(SESSION_SF_EXPIRY_YEAR);
getSessionService().removeAttribute(SESSION_SF_SECURITY_CODE);
getSessionService().removeAttribute(SESSION_CARD_BRAND);
getSessionService().removeAttribute(PAYMENT_METHOD);
getSessionService().removeAttribute(SESSION_PAYMENT_DATA);
}

@Override
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.1.0
version.api=6.1.0
version=6.1.1
version.api=6.1.1
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.1.0
version.api=6.1.0
version=6.1.1
version.api=6.1.1
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
<property name="resource" value="classpath:/adyenv6ordermanagement/process/return-process.xml"/>
</bean>

<alias name="orderConfirmationEmailProcessResource" alias="orderConfirmationEmailProcessResource"/>
<bean id="orderConfirmationEmailProcessResource"
class="de.hybris.platform.processengine.definition.ProcessDefinitionResource">
<property name="resource" value="classpath:/adyenv6ordermanagement/process/orderConfirmationEmailProcess.xml"/>
</bean>

<!--order-process beans-->
<import resource="adyenv6ordermanagement/process/order-process-spring.xml"/>

Expand Down
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.1.0
version.api=6.1.0
version=6.1.1
version.api=6.1.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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.
-->
<process xmlns="http://www.hybris.de/xsd/processdefinition" start="generateOrderConfirmationEmail" name="orderConfirmationEmailProcess"
processClass="de.hybris.platform.orderprocessing.model.OrderProcessModel" onError="error">

<action id="generateOrderConfirmationEmail" bean="generateOrderConfirmationEmail">
<transition name="OK" to="sendEmail"/>
<transition name="NOK" to="error"/>
</action>

<action id="sendEmail" bean="sendEmail">
<transition name="OK" to="removeSentEmail"/>
<transition name="NOK" to="failed"/>
</action>

<action id="removeSentEmail" bean="removeSentEmail">
<transition name="OK" to="success"/>
<transition name="NOK" to="error"/>
</action>

<end id="error" state="ERROR">Something went wrong.</end>
<end id="failed" state="FAILED">Could not send order confirmation email.</end>
<end id="success" state="SUCCEEDED">Sent order confirmation email.</end>

</process>
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
# ######
# ######
# ############ ####( ###### #####. ###### ############ ############
# ############# #####( ###### #####. ###### ############# #############
# ###### #####( ###### #####. ###### ##### ###### ##### ######
# ###### ###### #####( ###### #####. ###### ##### ##### ##### ######
# ###### ###### #####( ###### #####. ###### ##### ##### ######
# ############# ############# ############# ############# ##### ######
# ############ ############ ############# ############ ##### ######
# ######
# #############
# ############
#
# 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.

INSERT_UPDATE DynamicProcessDefinition;code[unique=true];active[unique=true];content
;adyen-order-process;true;"<process xmlns='http://www.hybris.de/xsd/processdefinition' start='checkOrder'
name='adyen-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'/>
<choice id='putOnHold' then='putOrderOnHold'/>
</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>

<action id='putOrderOnHold' bean='putOrderOnHoldAction'>
<transition name='OK' to='waitForOrderAction'/>
</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>"

$storeUid=electronics
$orderProcessCode=adyen-order-process

UPDATE BaseStore;uid[unique=true];submitOrderProcessCode
;$storeUid;$orderProcessCode
Loading

0 comments on commit 2db3022

Please sign in to comment.