public static void FillOperationDetails(PayPalExpressCheckoutOperation operation, Practice practice, AccountContract contractInfo, Billing billing)
        {
            operation.DefaultCurrencyCode = CurrencyCode.Brazilian_Real;
            operation.PaymentRequests     = new PayPalList <PayPalPaymentRequest>
            {
                new PayPalPaymentRequest
                {
                    BillingAgreementDescription = "O Cerebello é um software de gerênciamento de consultórios e clínicas médicas.",
                    //BillingType = BillingCode.RecurringPayments,
                    Description = "Cerebello - Plano profissional",
                    InvoiceNum  = string.Format("{3}{2}:{0}.{1}", billing.IdentitySetName, billing.IdentitySetNumber, practice.Id, DebugConfig.PayPal.InvoiceIdPrefix),
                    Items       = new PayPalList <PayPalPaymentRequestItem>
                    {
                        new PayPalPaymentRequestItem
                        {
                            Amount      = contractInfo.BillingAmount,
                            Name        = "Cerebello SaaS",
                            Description = "Software de gerenciamento de consultório médico.",
                            Category    = ItemCategory.Digital,
                        },
                    },
                },
            };

            if (contractInfo.BillingDiscountAmount > 0)
            {
                operation.PaymentRequests[0].Items.Add(new PayPalPaymentRequestItem
                {
                    Amount   = -contractInfo.BillingDiscountAmount,
                    Name     = "Desconto",
                    Category = ItemCategory.Digital,
                });
            }
        }
        public static void FillOperationDetails(PayPalExpressCheckoutOperation operation, Practice practice, AccountContract contractInfo, Billing billing)
        {
            operation.DefaultCurrencyCode = CurrencyCode.Brazilian_Real;
            operation.PaymentRequests = new PayPalList<PayPalPaymentRequest>
            {
                new PayPalPaymentRequest
                {
                    BillingAgreementDescription = "O Cerebello é um software de gerênciamento de consultórios e clínicas médicas.",
                    //BillingType = BillingCode.RecurringPayments,
                    Description = "Cerebello - Plano profissional",
                    InvoiceNum = string.Format("{3}{2}:{0}.{1}", billing.IdentitySetName, billing.IdentitySetNumber, practice.Id, DebugConfig.PayPal.InvoiceIdPrefix),
                    Items = new PayPalList<PayPalPaymentRequestItem>
                    {
                        new PayPalPaymentRequestItem
                        {
                            Amount = contractInfo.BillingAmount,
                            Name = "Cerebello SaaS",
                            Description = "Software de gerenciamento de consultório médico.",
                            Category = ItemCategory.Digital,
                        },
                    },
                },
            };

            if (contractInfo.BillingDiscountAmount > 0)
            {
                operation.PaymentRequests[0].Items.Add(new PayPalPaymentRequestItem
                    {
                        Amount = -contractInfo.BillingDiscountAmount,
                        Name = "Desconto",
                        Category = ItemCategory.Digital,
                    });
            }
        }