public void openCheckoutUI(String checkoutId)
        {
            CheckoutSettings checkoutSettings = createCheckoutSettings(checkoutId, GetString(Resource.String.checkout_ui_callback_scheme));
            //checkoutSettings.SetSecurityPolicyModeForBrand("VISA", CheckoutSecurityPolicyMode.DeviceAuthRequired);
            //checkoutSettings.SetSecurityPolicyModeForBrand("MASTER", CheckoutSecurityPolicyMode.DeviceAuthRequiredIfAvailable);
            //checkoutSettings.SetSecurityPolicyModeForTokens(CheckoutSecurityPolicyMode.DeviceAuthRequired);
            //checkoutSettings.SetTotalAmountRequired(true);
            /* Set componentName if you want to receive callbacks from the checkout */
            ComponentName componentName = new ComponentName(this.PackageName, Java.Lang.Class.FromType(typeof(CheckoutBroadcastReceiver)).Name);

            /* Set up the Intent and start the checkout activity. */
            Intent intent = checkoutSettings.CreateCheckoutActivityIntent(this, componentName);

            StartActivityForResult(intent, CHECKOUT_ACTIVITY.RequestCodeCheckout);
        }
Пример #2
0
 public ApplyPromotionOverride(IPromotionEngine promotionEngine, CheckoutSettings checkoutSettings)
 {
     this.promotionEngine  = promotionEngine;
     this.checkoutSettings = checkoutSettings;
 }
Пример #3
0
 public PromotionEngine_Brasseler(IUnitOfWorkFactory unitOfWorkFactory, IRulesEngine rulesEngine, IPromotionResultServiceFactory promotionResultServiceFactory, IContentModeProvider contentModeProvider, CheckoutSettings checkoutSettings) :
     base(unitOfWorkFactory, rulesEngine, promotionResultServiceFactory, contentModeProvider, checkoutSettings)
 {
 }
 public PopulatePaymentOptions(Lazy <IEntityTranslationService> entityTranslationService, Lazy <IPaymentService> paymentService, CheckoutSettings checkoutSettings)
 {
     this.paymentService           = paymentService;
     this.entityTranslationService = entityTranslationService;
     this.checkoutSettings         = checkoutSettings;
 }