Click or drag to resize

IPaymentDataContextExtensionsSetRollbackDataT Method

Method to set your rollback data to store in iiko storage. Data will be saved on disk after successful payment.

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

Parameters

context
Type: Resto.Front.Api.V4IPaymentDataContext
Payment data context.
data
Type: T
Your rollback data. Please save only data that you may need on operation rollback. 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