Exemplo n.º 1
0
 static void BulkPayment(Credentials credentials, RemitaRITs remitaRITs)
 {
     credentials.MerchantId = "DEMOMDA1234";
     credentials.ApiToken = "bmR1ZFFFWEx5R2c2NmhnMEk5a25WenJaZWZwbHFFYldKOGY0bHlGZnBZQ1N5WEpXU2Y1dGt3PT0=";
     credentials.ApiKey = "REVNT01EQTEyMzR8REVNT01EQQ==";
     credentials.EncKey = "nbzjfdiehurgsxct";
     credentials.EncVector = "sngtmqpfurxdbkwj";
     BulkPaymentPayload bulkPaymentPayload = new BulkPaymentPayload();
     BulkPaymentInfo bulkPaymentInfo = new BulkPaymentInfo();
     bulkPaymentInfo.bankCode = "044";
     bulkPaymentInfo.batchRef = generateRequestID();
     bulkPaymentInfo.debitAccount = "1234565678";
     bulkPaymentInfo.narration = "Regular payment";
     bulkPaymentInfo.requestId = generateRequestID();
     bulkPaymentInfo.totalAmount = 1000;
     PaymentDetails paymentDetail = new PaymentDetails();
     paymentDetail.transRef = generateRequestID();
     paymentDetail.narration = "Regular Payment";
     paymentDetail.benficiaryEmail = "*****@*****.**";
     paymentDetail.benficiaryBankCode = "058";
     paymentDetail.benficiaryAccountNumber = "05829152080517";
     paymentDetail.amount = 1000;
     List<PaymentDetails> paymentDetails = new List<PaymentDetails>();
     paymentDetails.Add(paymentDetail);
     bulkPaymentPayload.paymentDetails = paymentDetails;
     bulkPaymentPayload.bulkPaymentInfo = bulkPaymentInfo;
     BulkPaymentResponseData bulkPaymentResponseData = remitaRITs.bulkPayment(bulkPaymentPayload);
     Console.WriteLine("++++ RESPONSE: " + JsonConvert.SerializeObject(bulkPaymentResponseData));
 }
Exemplo n.º 2
0
        public BulkPaymentResponseData bulkPayment(BulkPaymentPayload bulkPaymentPayload)
        {
            BulkPayment bulkPayment = new BulkPayment();

            return(bulkPayment.makeBulkPayment(bulkPaymentPayload, NewCredentials));
        }