Post() 공개 메소드

public Post ( object>.IDictionary parameters ) : void
parameters object>.IDictionary
리턴 void
        private void PostToMerchantServer()
        {
            var braintree = new Braintree(PublicKey);
            var parameters = new Dictionary<string, object>
                                 {
                                     {"cc_number", braintree.Encrypt(CreditCardNumber.Text)},
                                     {"cc_exp_date", braintree.Encrypt(ExpirationDate.Text)},
                                     {"cc_cvv", braintree.Encrypt(Cvv.Text)}
                                 };

            var client = new BraintreeHttpClient(_merchantServerUrl, UploadStringCompleted);
            client.Post(parameters);
        }
예제 #2
0
        private void PostToMerchantServer()
        {
            var braintree  = new Braintree(PublicKey);
            var parameters = new Dictionary <string, object>
            {
                { "cc_number", braintree.Encrypt(CreditCardNumber.Text) },
                { "cc_exp_date", braintree.Encrypt(ExpirationDate.Text) },
                { "cc_cvv", braintree.Encrypt(Cvv.Text) }
            };

            var client = new BraintreeHttpClient(_merchantServerUrl, UploadStringCompleted);

            client.Post(parameters);
        }