23 lines
957 B
C#
23 lines
957 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
namespace PosSystemConfig
|
|
{
|
|
public class BankPay
|
|
{
|
|
/// <summary>
|
|
/// MisPos交易接口API
|
|
/// </summary>
|
|
/// <param name="pConfigPath">config.ini配置文件绝对路径</param>
|
|
/// <param name="pReq">交易信息结构体拼接字符串</param>
|
|
/// <param name="pRsp">交易结果结构体拼接字符串</param>
|
|
/// <returns>API接口状态</returns>
|
|
[DllImport("Proxydll.dll", EntryPoint = "PAXPAY_Trans", BestFitMapping = false, SetLastError = true, CharSet = CharSet.Auto,
|
|
ExactSpelling = false, ThrowOnUnmappableChar = true, CallingConvention = CallingConvention.StdCall)]
|
|
public static extern int PAXPAY_Trans([MarshalAs(UnmanagedType.LPStr)]string pConfigPath, [MarshalAs(UnmanagedType.LPStr)]string pReq, byte[] pRsp);
|
|
}
|
|
}
|