Click or drag to resize
CMSCreditPaymentProvider.IsUserAuthorizedToFinishPayment Method (UserInfo, ShoppingCartInfo, Boolean)
Checks whether specified user is authorized to finish payment, if he is not authorized sets corresponding payment gateway error message.

Namespace: CMS.Ecommerce.Web.UI
Assembly: CMS.Ecommerce.Web.UI (in CMS.Ecommerce.Web.UI.dll) Version: 10.0.0
Syntax
C#
public override bool IsUserAuthorizedToFinishPayment(
	UserInfo user,
	ShoppingCartInfo cart,
	bool internalOrder = false
)

Parameters

user
Type: CMS.Membership.UserInfo
User attempting to finish payment.
cart
Type: CMS.Ecommerce.ShoppingCartInfo
Cart to be paid for.
internalOrder (Optional)
Type: System.Boolean
Indicates if payment is done from administration by store admin in the name of customer.

Return Value

Type: Boolean
See Also