PagarMe.Transaction.RefundAsync C# (CSharp) Method

RefundAsync() public method

public RefundAsync ( int amount = null ) : void
amount int
return void
		public async void RefundAsync(int? amount = null)
        {
            var request = CreateRequest("POST", "/refund");

            if (amount.HasValue)
                request.Query.Add(new Tuple<string, string>("amount", amount.Value.ToString()));

            await ExecuteSelfRequestAsync(request);
        }