Ejemplo n.º 1
0
 public string C2BPaymentConfirmationRequest(string TransType, string TransID,
                                             string TransTime, string TransAmount, string BusinessShortCode, string BillRefNumber,
                                             string InvoiceNumber, string OrgAccountBalance, string ThirdPartyTransID,
                                             string MSISDN, KYCInfo KYCInfo, KYCInfo KYCinfo)
 {
     //save to your db and return success
     return("Success?");
 }
Ejemplo n.º 2
0
        public C2BPaymentValidationResult C2BPaymentValidationRequest(string TransType, string TransID,
                                                                      string TransTime, string TransAmount, string BusinessShortCode, string BillRefNumber,
                                                                      string InvoiceNumber, string MSISDN, KYCInfo KYCInfo, KYCInfo KYCinfo)
        {
            var dx = "";//dx is just a var showing you how to verify, perhaps pull row from your db using TransID

            if (dx != null)
            {
                return(new C2BPaymentValidationResult
                {
                    ResultCode = "0",
                    ResultDesc = "Service processing successful",
                    //ThirdPartyTransID = dx.ThirdPartyTransID
                });
            }
            else
            {
                return(new C2BPaymentValidationResult
                {
                    ResultCode = "1",
                    ResultDesc = "Service processing unsuccessful",
                    ThirdPartyTransID = ""
                });
            }
        }