OpenPr0gramm.PaypalController.GetCheckoutUrl C# (CSharp) Method

GetCheckoutUrl() public method

public GetCheckoutUrl ( string emailAddress, string product, bool termsAccepted ) : Task
emailAddress string
product string
termsAccepted bool
return Task
        public Task<GetCheckoutUrlResponse> GetCheckoutUrl(string emailAddress, string product, bool termsAccepted)
        {
            if (string.IsNullOrWhiteSpace(emailAddress))
                throw new ArgumentNullException(nameof(emailAddress));
            if (string.IsNullOrWhiteSpace(product))
                throw new ArgumentNullException(nameof(product));
            Debug.Assert(product == Pr0miumProducts.ThreeMonths || product == Pr0miumProducts.TwelveMonths);
            return Client.Paypal.GetCheckoutUrl(new PaymentData(Client.GetCurrentNonce(), emailAddress, product, termsAccepted));
        }
    }