Esempio n. 1
0
        public static string ToFriendlyString(this PaymentBrandForce me)
        {
            switch (me)
            {
            case PaymentBrandForce.ForceOnce:
                return("FORCE_ONCE");

            case PaymentBrandForce.ForceAlways:
                return("FORCE_ALWAYS");

            default:
                throw new NotImplementedException();
            }
        }
 public static MerchantOrder MakeWithPaymentBrandRestrictionButWithoutOtherOptionalFields(PaymentBrand paymentBrand, PaymentBrandForce paymentBrandForce)
 {
     return(new MerchantOrder
     {
         MerchantOrderId = "100",
         Amount = Money.FromDecimal("EUR", 99.99),
         MerchantReturnUrl = "http://localhost/",
         PaymentBrand = paymentBrand,
         PaymentBrandForce = paymentBrandForce
     });
 }