예제 #1
0
        public VisaTravelNotificationServiceTest()
        {
            var visaApiUrl   = ConfigurationSettings.AppSettings["visaUrl"];
            var certPath     = ConfigurationSettings.AppSettings["cert"];
            var certPassword = ConfigurationSettings.AppSettings["certPassword"];
            var apiUserId    = ConfigurationSettings.AppSettings["userId"];
            var apiPassword  = ConfigurationSettings.AppSettings["password"];

            _visaApiClient = new VisaApiClient(visaApiUrl, certPath, certPassword, apiUserId, apiPassword);
        }
예제 #2
0
        public FundTransfer()
        {
            visaAPIClient = new VisaApiClient();
            string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss");

            pushFundsRequest =
                "{"
                + "\"systemsTraceAuditNumber\":350420,"
                + "\"retrievalReferenceNumber\":\"401010350420\","
                + "\"localTransactionDateTime\":\"" + strDate + "\","
                + "\"acquiringBin\":409999,\"acquirerCountryCode\":\"101\","
                + "\"senderAccountNumber\":\"1234567890123456\","
                + "\"senderCountryCode\":\"USA\","
                + "\"transactionCurrencyCode\":\"USD\","
                + "\"senderName\":\"John Smith\","
                + "\"senderAddress\":\"44 Market St.\","
                + "\"senderCity\":\"San Francisco\","
                + "\"senderStateCode\":\"CA\","
                + "\"recipientName\":\"Adam Smith\","
                + "\"recipientPrimaryAccountNumber\":\"4957030420210454\","
                + "\"amount\":\"112.00\","
                + "\"businessApplicationId\":\"AA\","
                + "\"transactionIdentifier\":234234322342343,"
                + "\"merchantCategoryCode\":6012,"
                + "\"sourceOfFundsCode\":\"03\","
                + "\"cardAcceptor\":{"
                + "\"name\":\"John Smith\","
                + "\"terminalId\":\"13655392\","
                + "\"idCode\":\"VMT200911026070\","
                + "\"address\":{"
                + "\"state\":\"CA\","
                + "\"county\":\"081\","
                + "\"country\":\"USA\","
                + "\"zipCode\":\"94105\""
                + "}"
                + "},"
                + "\"feeProgramIndicator\":\"123\""
                + "}";
        }
예제 #3
0
 public HelloWorld()
 {
     visaAPIClient = new VisaApiClient();
     string strDate = DateTime.UtcNow.ToString("yyyy-MM-ddThh:mm:ss");
 }