Jaa


PaymentMethodId Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets the unique identifier of the payment method used.

Namespace:  Microsoft.CommerceServer.Runtime.Orders
Assembly:  Microsoft.CommerceServer.Runtime (in Microsoft.CommerceServer.Runtime.dll)

Syntax

'Declaration
Public Property PaymentMethodId As Guid
'Usage
Dim instance As Payment
Dim value As Guid

value = instance.PaymentMethodId

instance.PaymentMethodId = value
public Guid PaymentMethodId { get; set; }
public:
property Guid PaymentMethodId {
    Guid get ();
    void set (Guid value);
}
public function get PaymentMethodId () : Guid
public function set PaymentMethodId (value : Guid)

Property Value

Type: System..::.Guid
The payment method identifier.

Remarks

PaymentMethodId should correlate with the payment method created by the business user during the design process. Before completing an order you should set both the name and the ID of the payment method within a payment.

The specified payment method ID should be valid: a payment method with the corresponding ID and type should exist in the database. An empty GUID value can be set without this check being performed.

Permissions

See Also

Reference

Payment Class

Payment Members

Microsoft.CommerceServer.Runtime.Orders Namespace