银联支付报文格式错误5100030
在银联官网下载了一个支付接口demo,测试出现报文格式错误,不知哪里错了,请问有大神知道吗?
这是日志文件:
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[16]------ =====签名报文开始======
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[22]------ 签名key=val&...串 >accessType=0&backUrl=http://115.28.88.181/upacp_demo_b2b/demo...
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[25]------ 摘要sha1x16 >5a615909135ea2c2b7066056f071678acf0b5d9b
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[32]------ 签名串为 >UnvLiNqmrnhFMH2leQr4rS1Dx826N9dhdLEcBLaSVc6AfE/2/lQFZfWjTRwl6uJNLSdXoSmr/w3B2nAzLRmo2mb/sfy3E3dFxs2iq4dSOOZcJokKySADVwCB9FrNO32r31Hs5YxHnI9JYl2vfoHsN9osE6l4D5V1sKeRqXnj8f7JFDTRHDgwAFuyekcDr7LLilta5AsYSOiNykfqLz/mad49Xcur6W18Vlc5rP/dvXR3lhYU/fV5xvqeTUzFDqrVRfPOaIlbOFAPy6WzgS1hdEsCrLyKwaEyG0gv+5tKmNRYsLGDEuMThEOn6Gy5voFdjDroFbHtHYukP0rSkOuyEA==
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[37]------ =====签名报文结束======
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\acp_service.php ], Line[154]------ 自动跳转html>
<code><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></code>
<code><form id="pay_form" name="pay_form" action="https://101.231.204.80:5000/gateway/api/frontTransReq.do" method="post"> <input type="hidden" name="version" id="version" value="5.0.0"> <input type="hidden" name="encoding" id="encoding" value="utf-8"> <input type="hidden" name="txnType" id="txnType" value="01"> <input type="hidden" name="txnSubType" id="txnSubType" value="01"> <input type="hidden" name="bizType" id="bizType" value="000202"> <input type="hidden" name="frontUrl" id="frontUrl" value="http://115.28.88.181/upacp_demo_b2b/demo/api_02_b2b/FrontReceive.php"> <input type="hidden" name="backUrl" id="backUrl" value="http://115.28.88.181/upacp_demo_b2b/demo/api_02_b2b/BackReceive.php"> <input type="hidden" name="signMethod" id="signMethod" value="01"> <input type="hidden" name="channelType" id="channelType" value="07"> <input type="hidden" name="accessType" id="accessType" value="0"> <input type="hidden" name="currencyCode" id="currencyCode" value="156"> <input type="hidden" name="merId" id="merId" value="777290058110048"> <input type="hidden" name="orderId" id="orderId" value="20160330102405"> <input type="hidden" name="txnTime" id="txnTime" value="20160330102405"> <input type="hidden" name="txnAmt" id="txnAmt" value="1000"> <input type="hidden" name="certId" id="certId" value="68759663125"> <input type="hidden" name="signature" id="signature" value="UnvLiNqmrnhFMH2leQr4rS1Dx826N9dhdLEcBLaSVc6AfE/2/lQFZfWjTRwl6uJNLSdXoSmr/w3B2nAzLRmo2mb/sfy3E3dFxs2iq4dSOOZcJokKySADVwCB9FrNO32r31Hs5YxHnI9JYl2vfoHsN9osE6l4D5V1sKeRqXnj8f7JFDTRHDgwAFuyekcDr7LLilta5AsYSOiNykfqLz/mad49Xcur6W18Vlc5rP/dvXR3lhYU/fV5xvqeTUzFDqrVRfPOaIlbOFAPy6WzgS1hdEsCrLyKwaEyG0gv+5tKmNRYsLGDEuMThEOn6Gy5voFdjDroFbHtHYukP0rSkOuyEA=="> </form></code>
<code></code>
回复内容:
在银联官网下载了一个支付接口demo,测试出现报文格式错误,不知哪里错了,请问有大神知道吗?
这是日志文件:
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[16]------ =====签名报文开始======
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[22]------ 签名key=val&...串 >accessType=0&backUrl=http://115.28.88.181/upacp_demo_b2b/demo...
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[25]------ 摘要sha1x16 >5a615909135ea2c2b7066056f071678acf0b5d9b
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[32]------ 签名串为 >UnvLiNqmrnhFMH2leQr4rS1Dx826N9dhdLEcBLaSVc6AfE/2/lQFZfWjTRwl6uJNLSdXoSmr/w3B2nAzLRmo2mb/sfy3E3dFxs2iq4dSOOZcJokKySADVwCB9FrNO32r31Hs5YxHnI9JYl2vfoHsN9osE6l4D5V1sKeRqXnj8f7JFDTRHDgwAFuyekcDr7LLilta5AsYSOiNykfqLz/mad49Xcur6W18Vlc5rP/dvXR3lhYU/fV5xvqeTUzFDqrVRfPOaIlbOFAPy6WzgS1hdEsCrLyKwaEyG0gv+5tKmNRYsLGDEuMThEOn6Gy5voFdjDroFbHtHYukP0rSkOuyEA==
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\secureUtil.php ], Line[37]------ =====签名报文结束======
2016-03-30 16:24:06, INFO, ::1, File[ D:\wamp\wamp\www\upacp_demo_b2b\sdk\acp_service.php ], Line[154]------ 自动跳转html>
<code><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></code>
<code><form id="pay_form" name="pay_form" action="https://101.231.204.80:5000/gateway/api/frontTransReq.do" method="post"> <input type="hidden" name="version" id="version" value="5.0.0"> <input type="hidden" name="encoding" id="encoding" value="utf-8"> <input type="hidden" name="txnType" id="txnType" value="01"> <input type="hidden" name="txnSubType" id="txnSubType" value="01"> <input type="hidden" name="bizType" id="bizType" value="000202"> <input type="hidden" name="frontUrl" id="frontUrl" value="http://115.28.88.181/upacp_demo_b2b/demo/api_02_b2b/FrontReceive.php"> <input type="hidden" name="backUrl" id="backUrl" value="http://115.28.88.181/upacp_demo_b2b/demo/api_02_b2b/BackReceive.php"> <input type="hidden" name="signMethod" id="signMethod" value="01"> <input type="hidden" name="channelType" id="channelType" value="07"> <input type="hidden" name="accessType" id="accessType" value="0"> <input type="hidden" name="currencyCode" id="currencyCode" value="156"> <input type="hidden" name="merId" id="merId" value="777290058110048"> <input type="hidden" name="orderId" id="orderId" value="20160330102405"> <input type="hidden" name="txnTime" id="txnTime" value="20160330102405"> <input type="hidden" name="txnAmt" id="txnAmt" value="1000"> <input type="hidden" name="certId" id="certId" value="68759663125"> <input type="hidden" name="signature" id="signature" value="UnvLiNqmrnhFMH2leQr4rS1Dx826N9dhdLEcBLaSVc6AfE/2/lQFZfWjTRwl6uJNLSdXoSmr/w3B2nAzLRmo2mb/sfy3E3dFxs2iq4dSOOZcJokKySADVwCB9FrNO32r31Hs5YxHnI9JYl2vfoHsN9osE6l4D5V1sKeRqXnj8f7JFDTRHDgwAFuyekcDr7LLilta5AsYSOiNykfqLz/mad49Xcur6W18Vlc5rP/dvXR3lhYU/fV5xvqeTUzFDqrVRfPOaIlbOFAPy6WzgS1hdEsCrLyKwaEyG0gv+5tKmNRYsLGDEuMThEOn6Gy5voFdjDroFbHtHYukP0rSkOuyEA=="> </form></code>
<code></code>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.

What are the magic methods of PHP? PHP's magic methods include: 1.\_\_construct, used to initialize objects; 2.\_\_destruct, used to clean up resources; 3.\_\_call, handle non-existent method calls; 4.\_\_get, implement dynamic attribute access; 5.\_\_set, implement dynamic attribute settings. These methods are automatically called in certain situations, improving code flexibility and efficiency.

In PHP8, match expressions are a new control structure that returns different results based on the value of the expression. 1) It is similar to a switch statement, but returns a value instead of an execution statement block. 2) The match expression is strictly compared (===), which improves security. 3) It avoids possible break omissions in switch statements and enhances the simplicity and readability of the code.

Multithreading in the language can greatly improve program efficiency. There are four main ways to implement multithreading in C language: Create independent processes: Create multiple independently running processes, each process has its own memory space. Pseudo-multithreading: Create multiple execution streams in a process that share the same memory space and execute alternately. Multi-threaded library: Use multi-threaded libraries such as pthreads to create and manage threads, providing rich thread operation functions. Coroutine: A lightweight multi-threaded implementation that divides tasks into small subtasks and executes them in turn.

To open a web.xml file, you can use the following methods: Use a text editor (such as Notepad or TextEdit) to edit commands using an integrated development environment (such as Eclipse or NetBeans) (Windows: notepad web.xml; Mac/Linux: open -a TextEdit web.xml)

In PHP, you can effectively prevent CSRF attacks by using unpredictable tokens. Specific methods include: 1. Generate and embed CSRF tokens in the form; 2. Verify the validity of the token when processing the request.

Linux is best used as server management, embedded systems and desktop environments. 1) In server management, Linux is used to host websites, databases, and applications, providing stability and reliability. 2) In embedded systems, Linux is widely used in smart home and automotive electronic systems because of its flexibility and stability. 3) In the desktop environment, Linux provides rich applications and efficient performance.
