PaymentMethod Constructor (PaymentMethodTypes, String, String, String, String, Int32)
Initializes a new instance of the PaymentMethod class with the payment type, default language, the property name, the description, the Payment processor, and the configured mode.
Namespace: Microsoft.CommerceServer.Orders
Assembly: Microsoft.CommerceServer.Orders.CrossTierTypes (in Microsoft.CommerceServer.Orders.CrossTierTypes.dll)
Syntax
'Declaration
Public Sub New ( _
type As PaymentMethodTypes, _
defaultLanguage As String, _
name As String, _
description As String, _
paymentProcessor As String, _
configuredMode As Integer _
)
'Usage
Dim type As PaymentMethodTypes
Dim defaultLanguage As String
Dim name As String
Dim description As String
Dim paymentProcessor As String
Dim configuredMode As Integer
Dim instance As New PaymentMethod(type, defaultLanguage, _
name, description, paymentProcessor, _
configuredMode)
public PaymentMethod(
PaymentMethodTypes type,
string defaultLanguage,
string name,
string description,
string paymentProcessor,
int configuredMode
)
public:
PaymentMethod(
PaymentMethodTypes type,
String^ defaultLanguage,
String^ name,
String^ description,
String^ paymentProcessor,
int configuredMode
)
public function PaymentMethod(
type : PaymentMethodTypes,
defaultLanguage : String,
name : String,
description : String,
paymentProcessor : String,
configuredMode : int
)
Parameters
- type
Type: Microsoft.CommerceServer.Orders..::.PaymentMethodTypes
The payment type.
- defaultLanguage
Type: System..::.String
The default language for the PaymentMethod. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
- name
Type: System..::.String
The name of the PaymentMethod in the DefaultLanguage. May not be nullNothingnullptra null reference (Nothing in Visual Basic).
- description
Type: System..::.String
The description of the PaymentMethod in the DefaultLanguage
- paymentProcessor
Type: System..::.String
Type of the component that is used to process the Payment for this PaymentMethod.
- configuredMode
Type: System..::.Int32
Represents the configured mode for the PaymentProcessor.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | defaultLanguage or name is nullNothingnullptra null reference (Nothing in Visual Basic). |
Remarks
All string inputs will be trimmed.
The constructor takes a PaymentMethodTypes enumeration, the language insensitive properties like PaymentProcessor, ConfiguredMode, a default language and the corresponding language sensitive properties Name and Description.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.