{"title":"Order Management","category":"default","creationDate":1778252958,"content":"<h2 id=\"paymentpending\">Payment Pending<\/h2>\n<p>For payments using cards with 3D Secure authentication or local payment methods, the add-on places the order with a PAYMENT_PENDING status. This status will be removed as soon as the authorisation is finished.<\/p>\n<p>In cases where the payment is abandoned or the authorisation is not received, the order status is updated to PROCESSING_ERROR after a certain period. By default this period is 60 minutes. You can configure this period in the dynamic order process definition file:<\/p>\n<ol>\n<li>In the extension you are using (<a href=\"https:\/\/github.com\/Adyen\/adyen-hybris\/tree\/develop\/adyenv6fulfilmentprocess\/resources\/adyenv6fulfilmentprocess\/process\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">adyenv6fulfilmentprocess<\/a> or <a href=\"https:\/\/github.com\/Adyen\/adyen-hybris\/tree\/develop\/adyenv6ordermanagement\/resources\/adyenv6ordermanagement\/process\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">adyenv6ordermanagement<\/a>), find the <em>order-process.xml<\/em> file.<\/li>\n<li>\n<p>Update the <code>timeout delay<\/code> value and save the file.<\/p>\n<pre><code class=\"language-xml\">&lt;wait id=\"waitForAdyenPendingPayment\" then=\"checkPendingOrder\"&gt;\n    &lt;event&gt;AdyenPaymentResult&lt;\/event&gt;\n    &lt;timeout delay=\"PT60M\" then=\"checkPendingOrder\"\/&gt;\n&lt;\/wait&gt;<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2 id=\"capture\">Capture<\/h2>\n<p>If you have configured an automatic capture using the Hybris\u00a0back office, we capture your payment automatically.\u00a0However, if you prefer a manual capture flow you need to send a capture request before the authorisation expires.<\/p>\n<div class=\"sc-notice note\"><div>\n<p>Some payment methods do not support manual capture. Your capture flow settings in Hybris should match the capture settings for your merchant account in your <a href=\"https:\/\/ca-live.adyen.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" class=\"external-link no-image\">Customer Area<\/a>.<\/p>\n<\/div><\/div>\n<p>The add-on provides an implementation of the\u00a0<code>de.hybris.platform.payment.commands.CaptureCommand<\/code>\u00a0for capturing payments.\u00a0<\/p>\n<p>Using <code>adyenCheckCaptureAction<\/code>, you can check if the capture of a payment has been completed.\u00a0<br \/>\nYou can expect the following states:<\/p>\n<ul>\n<li>OK \u2013 Payment was captured<\/li>\n<li>NOK \u2013 Capture failed<\/li>\n<li>WAIT \u2013 Waiting for capture completion (listening to the <code>AdyenCaptured<\/code> event)<\/li>\n<\/ul>\n<h2 id=\"cancellationsrefunds\">Cancellations\/Refunds<\/h2>\n<p>The add-on provides an implementation of the\u00a0<code>de.hybris.platform.payment.commands.VoidCommand<\/code> to cancel the payment, if required. This command uses our\u00a0<a href=\"\/online-payments\/modify-payments\">cancelOrRefund API call<\/a> and refunds the payment.\u00a0<\/p>\n<h2 id=\"refunds\">Refunds<\/h2>\n<p>This extension provides an implementation of the\u00a0<code>de.hybris.platform.payment.commands.FollowOnRefundCommand<\/code> to refund a payment.<\/p>\n<p>You can integrate\u00a0<code>AdyenCancelOrRefundAction<\/code> to check if a refund is complete.\u00a0You can expect the below states:<\/p>\n<ul>\n<li>OK \u2013 Payment was refunded<\/li>\n<li>NOK \u2013 Refund failed<\/li>\n<li>WAIT \u2013 Waiting for refund completion (listening to the <code>AdyenRefunded<\/code> event)<\/li>\n<\/ul>","url":"https:\/\/docs.adyen.com\/plugins\/hybris\/order-management","articleFields":{"description":"Learn how the Adyen payments add-on implements the Order Management system.","id":"25152313","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"01-05-2019 10:35"},"algolia":{"url":"https:\/\/docs.adyen.com\/plugins\/hybris\/order-management","title":"Order Management","content":"Payment Pending\nFor payments using cards with 3D Secure authentication or local payment methods, the add-on places the order with a PAYMENT_PENDING status. This status will be removed as soon as the authorisation is finished.\nIn cases where the payment is abandoned or the authorisation is not received, the order status is updated to PROCESSING_ERROR after a certain period. By default this period is 60 minutes. You can configure this period in the dynamic order process definition file:\n\nIn the extension you are using (adyenv6fulfilmentprocess or adyenv6ordermanagement), find the order-process.xml file.\n\nUpdate the timeout delay value and save the file.\n&lt;wait id=\"waitForAdyenPendingPayment\" then=\"checkPendingOrder\"&gt;\n    &lt;event&gt;AdyenPaymentResult&lt;\/event&gt;\n    &lt;timeout delay=\"PT60M\" then=\"checkPendingOrder\"\/&gt;\n&lt;\/wait&gt;\n\n\nCapture\nIf you have configured an automatic capture using the Hybris\u00a0back office, we capture your payment automatically.\u00a0However, if you prefer a manual capture flow you need to send a capture request before the authorisation expires.\n\nSome payment methods do not support manual capture. Your capture flow settings in Hybris should match the capture settings for your merchant account in your Customer Area.\n\nThe add-on provides an implementation of the\u00a0de.hybris.platform.payment.commands.CaptureCommand\u00a0for capturing payments.\u00a0\nUsing adyenCheckCaptureAction, you can check if the capture of a payment has been completed.\u00a0\nYou can expect the following states:\n\nOK \u2013 Payment was captured\nNOK \u2013 Capture failed\nWAIT \u2013 Waiting for capture completion (listening to the AdyenCaptured event)\n\nCancellations\/Refunds\nThe add-on provides an implementation of the\u00a0de.hybris.platform.payment.commands.VoidCommand to cancel the payment, if required. This command uses our\u00a0cancelOrRefund API call and refunds the payment.\u00a0\nRefunds\nThis extension provides an implementation of the\u00a0de.hybris.platform.payment.commands.FollowOnRefundCommand to refund a payment.\nYou can integrate\u00a0AdyenCancelOrRefundAction to check if a refund is complete.\u00a0You can expect the below states:\n\nOK \u2013 Payment was refunded\nNOK \u2013 Refund failed\nWAIT \u2013 Waiting for refund completion (listening to the AdyenRefunded event)\n","type":"page","locale":"en","boost":17,"hierarchy":{"lvl0":"Home","lvl1":"Plugins","lvl2":"SAP Commerce (Hybris)","lvl3":"Order Management"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/","lvl1":"https:\/\/docs.adyen.com\/plugins","lvl2":"https:\/\/docs.adyen.com\/plugins\/hybris","lvl3":"\/plugins\/hybris\/order-management"},"levels":4,"category":"Plugins","category_color":"green","tags":["Order","Management"]}}
