Exemplo n.º 1
0
        /// <summary>
        /// Implementation with basic parameters
        /// </summary>
        protected async void TransactionListing()
        {
            var paystackTransactionAPI = new PaystackTransaction(Credential.Key);
            var response = await paystackTransactionAPI.ListTransactions();

            var json = new JavaScriptSerializer().Serialize(response);

            contentDiv.InnerText = json;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Implementation with full parameters
        /// </summary>
        protected async void TransactionListing2()
        {
            var paystackTransactionAPI = new PaystackTransaction(Credential.Key);
            var response = await paystackTransactionAPI.ListTransactions(new TransactionListRequestModel()
            {
                from = DateTime.UtcNow.AddDays(-10), to = DateTime.UtcNow, perPage = 50, status = PayStackDotNetSDK.Helpers.Constants.Transaction.Status.Success
            });

            var json = new JavaScriptSerializer().Serialize(response);

            contentDiv.InnerText = json;
        }