/// <summary>
        /// Check out payment request
        /// </summary>
        /// <param name="merchantAccount"></param>
        /// <returns></returns>
        public Model.Checkout.PaymentRequest CreatePaymentRequestCheckout()
        {
            var amount          = new Model.Checkout.Amount("USD", 1000);
            var paymentsRequest = new Model.Checkout.PaymentRequest
            {
                Reference       = "Your order number ",
                Amount          = amount,
                ReturnUrl       = @"https://your-company.com/...",
                MerchantAccount = "MerchantAccount",
            };

            paymentsRequest.AddCardData("4111111111111111", "10", "2020", "737", "John Smith");
            return(paymentsRequest);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 3DS2 payments request
        /// </summary>
        /// <returns></returns>
        public Model.Checkout.PaymentRequest CreatePaymentRequest3DS2()
        {
            var amount          = new Model.Checkout.Amount("USD", 1000);
            var paymentsRequest = new Model.Checkout.PaymentRequest
            {
                Reference       = "Your order number ",
                Amount          = amount,
                ReturnUrl       = @"https://your-company.com/...",
                MerchantAccount = "MerchantAccount",
                AdditionalData  = new Dictionary <string, string>()
                {
                    { "allow3DS2", "true" }
                },
                Channel = Model.Checkout.PaymentRequest.ChannelEnum.Web
            };

            paymentsRequest.AddCardData("4111111111111111", "10", "2020", "737", "John Smith");
            return(paymentsRequest);
        }