﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetSDK.Test
{
    class GPayTest
    {
        public static void Test1()
        {
            //var str = "accNo=4312&accessMode=01&accessType=0&backUrl=http://&bizType=000000&currency=CNY&customerInfo={\"certifTp\":\"01\",\"certify_id\":\"\",\"customerNm\":\"\",\"phoneNo\":\"13682102678\"}&frontUrl=http://localhost&merId=2000000000003&merOrderId=P16010716485332N275JG&payType=0002&txnAmt=1&txnSubType=01&txnTime=20160107164853&txnType=01&version=1.0.088888888";
            //using (var md = new System.Security.Cryptography.MD5Cng())
            //{
            //    var b= md.ComputeHash(Encoding.UTF8.GetBytes(str));
            //    var s = Convert.ToBase64String(b);
            //    Console.WriteLine(s);
            //}
            var dic = GPayHelper.GetUrlParam(new OrderModel { subject = "测试哦", merId = "00000000001" }, "88888888");
        }
    }
}
