12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using SinochemCloudClient.Legacy;
- using SinochemCloudClient.Models;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace TestSinochemCloudClient.Legacy
- {
- public class TestPayment
- {
- private static string url = "http://10.26.5.222:8008/1/CarFushion/pay";
- public static void TestNormalCase()
- {
- Payment payment = new Payment(url);
- PaymentRequest request = new PaymentRequest
- {
- dept_No = "testing site",
- card_No = "2009059500000166290",
- password = "111111",
- code = "35",
- price = 5.66,
- lpm = 10,
- amount = 56.6,
- gas_Up_Time = DateTime.Now.ToString(),
- rear_Pump_Code = "",
- off_Line_Sign = "0",
- tradeDateTime = DateTime.Now.ToString(),
- mac = "1a2b3c",
- token = "1234556"
- };
- Console.WriteLine("before send payment");
- payment.SendRequest(request);
- Console.WriteLine("got payment messasge code" + payment.Response.code);
- }
- }
- }
|