Problem with acquire, executing standart pipeline.
Hello. We are using your system in separate projects, and we got problem with capturing money on DIBS account.
We got API access from DIBS, DIBS.config file is well formed(i am passing username and password), in the ToCompletedOrder.config and ToCancelled.config pipelines files i had uncommented necessary lines.
I had made everything according to this description.
When payment is done, we got new/pending order at the DIBS, and new order with status "Paid" at uCommerce backend. Then it is possible to change order status to "Completed", "Completed" order status has "ToCompletedOrder" pipeline field in DB, according to this article.
But some how the order is not visible as captured at DIBS administrator panel, when i am changing order status to "Completed". Neither cancel pipeline is not working too.
Here i got that execution of pipeline should return xml result, how i can see that xml for order statuse change piplines execution?
By default the acquire payment task is disabled in the ToCompletedOrder pipeline. Make sure to enable it by removing it from the comment in the XML config.
Also make sure that the order status you're changing the order to has the name of the pipeline you want executed set up in the uCommerce_OrderStatus table: Understanding uCommerce Order Statuses.
Silly question: Does the name in the table match with the name of the pipeline configuration? I ask because I noticed one says ToCompleteOrder (without the d) and the ToCompletedOrder.
Problem with acquire, executing standart pipeline.
Hello. We are using your system in separate projects, and we got problem with capturing money on DIBS account.
We got API access from DIBS, DIBS.config file is well formed(i am passing username and password), in the ToCompletedOrder.config and ToCancelled.config pipelines files i had uncommented necessary lines.
I had made everything according to this description.
When payment is done, we got new/pending order at the DIBS, and new order with status "Paid" at uCommerce backend. Then it is possible to change order status to "Completed", "Completed" order status has "ToCompletedOrder" pipeline field in DB, according to this article.
But some how the order is not visible as captured at DIBS administrator panel, when i am changing order status to "Completed". Neither cancel pipeline is not working too.
Here i got that execution of pipeline should return xml result, how i can see that xml for order statuse change piplines execution?
Thanks.
By default the acquire payment task is disabled in the ToCompletedOrder pipeline. Make sure to enable it by removing it from the comment in the XML config.
This is content of the ToCompleteOrder.config localted in the Umbraco/Ucommerce/Pipelines.
As i wrote before i have uncommented that lines.
How can i see result of the pipelines executing when i am changing order status?
Thanks.
There will be information added to the audit trail of the order. Also check umbracoLog for any additional information.
Also make sure that the order status you're changing the order to has the name of the pipeline you want executed set up in the uCommerce_OrderStatus table: Understanding uCommerce Order Statuses.
Here is audit:
Any errors.
Umbraco log table has nothing about this action.
I have some errors with indexing:
[UmbracoExamine] Error indexing queue items,There is an error in XML document (0, 0)., IndexSet: InternalMemberIndexSet
But i can't find log of execution order status pipelines, even when i am using wrong API credentials everything looks fine.
If this is not logged, then i need to build my own pipeline, and make mannual acquire by posting form to Dibs with transaction data.
I had read this article: http://blog.lasseeskildsen.net/post/uCommerce-Pipelines-Explained.aspx
But i am in doubt how i should do that:
So, i should override this method and make mannual capture, by ussing HTTP POST.
What will be represented in "subject" in case of changing order status?
I mean i need to get order data to make mannual capture, i should downcast it to some special type?
Can you show some short example?
Thanks.
Your pipeline is not getting executed. If they did you'd see a notification in the audit trail for your order.
Could you post the contents of the uCommerce_OrderStatus table here?
Thanks.
Here is contents of the ToCompleteOrder.config pipeline:
<configuration>
<components>
<!-- Pipeline Instance -->
<component id="ToCompletedOrder"
service="UCommerce.Pipelines.IPipeline`1[[UCommerce.EntitiesV2.PurchaseOrder, UCommerce]], UCommerce"
type="UCommerce.Pipelines.OrderProcessing.OrderProcessingPipeline, UCommerce.Pipelines"
lifestyle="Thread">
<parameters>
<tasks>
<array>
<value>${ToCompletedOrder.AcquirePaymentTask}</value>
</array>
</tasks>
</parameters>
</component>
<!-- Pipeline Tasks-->
<component id="ToCompletedOrder.AcquirePaymentTask"
service="UCommerce.Pipelines.IPipelineTask`1[[UCommerce.EntitiesV2.PurchaseOrder, UCommerce]], UCommerce"
type="UCommerce.Pipelines.OrderProcessing.AcquirePaymentTask, UCommerce.Pipelines"
lifestyle="Thread" />
</components>
</configuration>
Here contents of the Dibs.config file:
<dibsPaymentMethodService
testMode="True"
debug="False"
login="<here i had used both logins to admin panel and API user, without luck>"
password="<password>"
callbackUrl="(auto)"
acceptUrl="http://websmtp.dintojmand.dk/orderconfirmation.aspx"
cancelUrl="http://websmtp.dintojmand.dk/cancel.aspx"
merchant="90056393"
decorator = ""
useMd5="True"
key1="rhUVUUm0]o|kz;):He$}cK~Kdn~?8*N#"
key2="Aw)A.N9f5vPf#0^8GbocZOtJ!0UC&o@u" />
I had checked the special characters in MD5.
I had updated uCommerce to version 2.0.5, and still have the same result.
Silly question: Does the name in the table match with the name of the pipeline configuration? I ask because I noticed one says ToCompleteOrder (without the d) and the ToCompletedOrder.
Are you updating via code or the UI?
is working on a reply...