Click or drag to resize

PaymentDataContextExtensionsSetCustomDataT Method

Method to set your custom data to store in iiko storage.

Namespace:  Resto.Front.Api.Extensions
Assembly:  Resto.Front.Api.V6 (in Resto.Front.Api.V6.dll)
Syntax
C#
public static void SetCustomData<T>(
	this IPaymentDataContext context,
	T data
)
where T : class

Parameters

context
Type: Resto.Front.ApiIPaymentDataContext
Payment data context.
data
Type: T
Your custom data. Store any additional data here. Max serialized to string data length is MaxExternalPaymentItemDataLength.

Type Parameters

T
Should be SerializableAttribute public class.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IPaymentDataContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also