使用MCF在管道中发送任意值 [英] Sending arbitrary values down the pipeline using MCF

查看:54
本文介绍了使用MCF在管道中发送任意值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以通过做一些简单的事情向支付处理器发送价值


basket.S etPropertyOnOrderForms( "foo","bar";;


basket.RunPipeline(" checkout");


 


如何使用相同的结果? 。MCF 我正在使用OOB购物控制器。 我尝试添加


update.Model.Properties [" boo"] ="栏英寸;到
AddBasketOrderSubmitRequest方法,但我从未在支付处理器中看到该值。 还有其他办法吗?



谢谢

解决方案

您是否尝试过使用ShoppingController AddBasketPropertyUpdateRequest方法?


它在用于IsMultiShipping的SP Ext工具包中使用。我在其中一个项目中使用它作为礼品订单/消息。


示例:



 this.controller.AddBasketPropertyUpdateRequest(this .currentBasketName," IsMultiShipping",false); 

this.controller.AddBasketPropertyUpdateRequest(this.currentBasketName," GiftMessage",giftMessage);



这应该足以让你满意继续。


享受。


I can send values to the payment processor by doing something as simple as

basket.SetPropertyOnOrderForms("foo","bar");

basket.RunPipeline("checkout");

 

How can i achieve the same result using MCF.  I am using the OOB shoppingcontroller.  I tried adding

update.Model.Properties["boo"] = "bar"; to the AddBasketOrderSubmitRequest method, but i never see that value in the payment processor.  Is there another way?

Thank you

解决方案

Have you tried using the ShoppingController AddBasketPropertyUpdateRequest method?

It is used in the SP Ext kit for IsMultiShipping. I'm using it for gift orders/messages on one of my projects.

examples:

this.controller.AddBasketPropertyUpdateRequest(this.currentBasketName, "IsMultiShipping", false); 

this.controller.AddBasketPropertyUpdateRequest(this.currentBasketName, "GiftMessage", giftMessage);

This should give you enough to continue.

Enjoy.


这篇关于使用MCF在管道中发送任意值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆