Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Hi,
I can confirm what you did is correct. "IsIgnoreProcessPayment" is a bad property name (wrong grammar) and it's been obsoleted by "PreventProcessPayment". They have same meaning.
However the old code is supposedly working. We'll see if it was a hidden issue.
Regards,
/Q
Hi,
I have upgraded from Commerce 8.16.1 to 9.20 and have in that process encountered a problem with a workflow.
I have earlier ignored the payment process using the following code:
var workflowParams = new Dictionary { { "IsIgnoreProcessPayment", true } };
var checkoutResults = OrderGroupWorkflowManager.RunWorkflow(cart, OrderGroupWorkflowManager.CartCheckOutWorkflowName, false, workflowParams);
This used to work and skipped the payment process.
After the upgrade this does not longer seem to work. After some debugging I found that the following code worked for me:
var workflowParams = new Dictionary { { "PreventProcessPayment", true } };
var checkoutResults = OrderGroupWorkflowManager.RunWorkflow(cart, OrderGroupWorkflowManager.CartCheckOutWorkflowName, false, workflowParams);
Originally I followed this blog post:
http://vu3lo.tumblr.com/post/128295808606/episerver-commerce-cartcheckout-workflow-with
Does anyone know how to do this, and is able to confirm what I did is correct?
Is there a better way of ignoring the payment process in the checkout workflow?
/Mads