This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static DateTime FormatDate(string date) | |
| { | |
| DateTime startDate; | |
| string[] formats = { "dd/MM/yyyy", "dd/M/yyyy", "d/M/yyyy", "d/MM/yyyy", | |
| "dd/MM/yy", "dd/M/yy", "d/M/yy", "d/MM/yy", "MM/dd/yyyy", "M/dd/yyyy", "M/d/yyyy", "MM/d/yyyy", | |
| "MM/dd/yy", "yyyy/M/dd", "yyyy/MM/dd", "yyyy-MM-dd", "dd-MM-yyyy", "dd-MMMM-yyyy", "dd-M-yyyy", "d-M-yyyy", "d-MM-yyyy", "dd-MMM-yyyy", "dd-MMM-y", "dd-MMMM-y"}; | |
| if (!DateTime.TryParseExact(date, formats, null, DateTimeStyles.None, out startDate)) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Here are some products that you can use to build your fintech app | |
| ## SMS | |
| Termii | |
| Twilio | |
| Interswitch Digital (Vanso) | |
| ## Card and account charge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var client = new QBitNinjaClient("http://api.qbit.ninja/", Network.Main); | |
| var transactionId = uint256.Parse("sourceTransactionId"); | |
| var transactionResponse = client.GetTransaction(transactionId).Result; | |
| Console.WriteLine(transactionResponse.TransactionId); // | |
| Console.WriteLine(transactionResponse.Block.Confirmations); | |
| BitcoinSecret sender = new BitcoinSecret("senderPrivateKey"); | |
| var receivedCoins = transactionResponse.ReceivedCoins; | |
| OutPoint outPointToSpend = null; |