search

Using the PHP version of the SDK, it was not handled properly. I found a test file test/TestImage.php. I started to change it and found that the status code $request -> getCode() was always 0. After debugging all the way, I found that it was getContents. curl error in function! Output curl_errno($ch), SSL certificate problem: unable to get local issuer certificate Use solution is certificate problem.

Error code invalid-method Error reason: The non-existent method namehas not been resolved. It may be that $requestshould be the AlipayCommerceCityfacilitatorVoucherGenerateRequestclass instance in the document or the $alipayClient in the test file -> getContents() returns Value (AlipayMobilePublicMultiMediaExecuteinstance)There is also Warning: openssl_sign(): supplied key param cannot be coerced into a private key in... There are many questions. I looked back at the API and found that there is sample code under the API page. Yo ho ho ho .

There is an error after configuring{"code":"40006","msg":"Insufficient Permissions","sub_code":"isv.insufficient-isv-permissions","sub_msg":"Insufficient ISV permissions"}

Changed the sandbox account and was reminded of another error{"code":"40004","msg":"Business Failed","sub_code":"unknown-sub-code","sub_msg":" Unknown error code"}, but it is an error in the signature verification function checkResponseSign().

object(SignData)[5]
  public 'signSourceData' => string '{"code":"40004","msg":"Business Failed","sub_code":"unknown-sub-code","sub_msg":"未知的错误码"}' (length=101)
  public 'sign' => string 'EfXcLt1HDYQFHnfJRy31/S9+AeCd7J4jw/Zrphi2ImHgCIBGIbyZ8+Ch2yoiGeKN/tqdTPSEOosEI9QF1Nx53fHKHZG1SkrodwVzSSdkVPM9pxCszCn4u0ktTi925BazTFfNoq****JTHflEJ91GOhX19sbFYSnvD6RWus4YeFo=' (length=172)

Trace curl function, url=https://openapi.alipaydev.com/gateway.do?app_id=2016091000478468&version=1.0&format=json&sign_type=RSA&method=alipay.commerce.cityfacilitator.station.query×tamp=2016-10- 27+08%3A31%3A05&auth_token=&alipay_sdk=alipay-sdk-php-20160411&terminal_type=&terminal_info= &prod_code=¬ify_url=&charset=UTF-8&app_auth_token=&sign=T2xEACiz6ET%2FHs5DWdBZqrQQlB8nB8iw4% 2F4VlEtqG6qVePjEop9IgLpgLt%2BOtDCJgbWYA%2FIlzyHXBRs9D1JYfT1wUHzYoXXATcXNm0rssfFLB******** xdLHMn4DCF%2B4QQLLeZrBVV2nj7Kxo1Zz1zv5ElS%2FLialsFA%3D

The emphasis on [×tamp=] above is very confusing. How can × be in it? The previous query should have ended and then it should be the time parameter ×tamp. If you change it to ×tamp=, at least it will return instead of this error: Error code invalid-method Error reason: The method name does not exist. See where there is an error in constructing the url.

array (size=15)
  'app_id' => string '2016091000478468' (length=16)
  'version' => string '1.0' (length=3)
  'format' => string 'json' (length=4)
  'sign_type' => string 'RSA' (length=3)
  'method' => string 'alipay.commerce.cityfacilitator.station.query' (length=45)
  'timestamp' => string '2016-10-27 08:48:32' (length=19)
  'auth_token' => null
  'alipay_sdk' => string 'alipay-sdk-php-20160411' (length=23)
  'terminal_type' => null
  'terminal_info' => null
  'prod_code' => null
  'notify_url' => null
  'charset' => string 'UTF-8' (length=5)
  'app_auth_token' => null
  'sign' => string 'f6ufUiSHCb7LNaXJvTdPEdDzfxKgepILJiKaM3wqueGojpOTZrVFRhVFqAQAxCEze9bVX77fpS/bvT8IVoD+/DMikZrje8SqkrSQvIHG8r1VhucgWplpgJU7HzViE*****************/MoG5OqfPf+H+rU+Eui7+bfYXtTDY=' (length=172)

It can be seen that it should indeed be timestamp. The html escape character of × is ×, so echo "×tamp="; will output something like ×tamp.

<span style="font-size: 15px">foreach ($sysParams as $sysParamKey => $sysParamValue) {
			$requestUrl .= "$sysParamKey=" . urlencode($this->characet($sysParamValue, $this->postCharset)) . "&<span style="color: #ff00ff">amp;</span>";
		}</span>

& was changed to & so excited.

However, the page has nothing, no errors, blank, empty. Keep adjusting

https://support.open.alipay.com/support/myQuestionDetail.htm?id=266419 I have no clue. I asked the question and I have no clue to answer it.

10/28

Regarding the parameter problem I encountered yesterday, I brought timestamp to the front and found that the time parameter was still 6 hours behind, so I just used time()+6*3600 without mentioning it. Then [the signature is invalid]. Help~

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software