Click or drag to resize
CMSCreditPaymentProviderIsUserAuthorizedToFinishPayment 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
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public override bool IsUserAuthorizedToFinishPayment(
	UserInfo user,
	ShoppingCartInfo cart,
	bool internalOrder = false
)

Parameters

user
Type: CMS.MembershipUserInfo
User attempting to finish payment.
cart
Type: CMS.EcommerceShoppingCartInfo
Cart to be paid for.
internalOrder (Optional)
Type: SystemBoolean
Indicates if payment is done from administration by store admin in the name of customer.

Return Value

Type: Boolean
See Also