예제 #1
0
        public async Task <string> CancelDelivery(string packageId)
        {
            var postContent = new Dictionary <string, string>
            {
                { "action_type", "cancel_supply" },
                { "transaction_id", packageId }
            };

            var responseString = await client.Send(postContent);

            return(responseString);
        }
예제 #2
0
        public async Task <string> CancelPayment(string paymentId)
        {
            var postContent = new Dictionary <string, string>
            {
                { "action_type", "cancel_pay" },
                { "transaction_id", paymentId }
            };

            var responseString = await client.Send(postContent);

            return(responseString);
        }
예제 #3
0
        public async Task <bool> CheckAvailablity()
        {
            var postContent = new Dictionary <string, string>
            {
                { "action_type", "handshake" },
            };

            var responseString = await client.Send(postContent);

            return(responseString.ToLower().Equals("ok"));
        }