PaymentType未填充 [英] PaymentType not populated

查看:119
本文介绍了PaymentType未填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我们有一个继承自付款的自定义付款。 目前,为了从Payment获得通用的PaymentType,paymentMethod始终为0. 现在,我们不再使用该变量,因为我们在PaymentExtended对象下有一个额外的对象可以帮助我们处理付款数据。

问题是:当我们尝试更改PaymentType或设置它我们不能,因为它只有一个吸气剂设置。 我注意到有一些内部方法可以设置这些,但是你知道我们无法访问它们,因为我们不在同一个程序集中。

实际设置此paymentType的最佳方法是什么?我也使用Commerce Server客户和订单管理器将paymenMethod添加到数据库,但它没有做任何事情。

我们相信这种paymentType会自动填充。

请告知。

hi all,

we have a custom payment that inherits from Payment.  At the moment to get the PaymentType that is generic from Payment the paymentMethod is always 0.  Now, we don't use that variable no more since we have an extra object under the PaymentExtended object that will help us with the payment data.

The problem is: when we try to change the PaymentType or set it we cannot since it only has a getter set.  i noticed there are some internal methods that can set those but as you know we cannot access them since we are not on the same assembly.

What should be the best way to actually set this paymentType? i added the paymenMethod to the database too using the Commerce Server Customer and Orders Manager but it has done nothing.

We believe that this paymentType would be populated automatically.

Please advise.

推荐答案

如果我记得,你需要为你定义的paymetn类型传递正确的guid ....
无论如何如果您扩展了付款对象,您可以创建一个新属性来处理它。
Stelio
if I well remember, you need to pass the right guid for the paymetn type that you defined....
anyway if you extended the Payment Object, you can create a new property to handle it.
Stelio


这篇关于PaymentType未填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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