Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

After using Alipay successfully, Ecshop prompts "this payment method does not exist or the parameters are wrong".

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail for you about the successful use of Alipay by Ecshop to prompt "this payment method does not exist or the parameters are wrong". The editor thinks it is very practical, so I hope you can get something after reading this article.

1. Question:

The successful payment of ecshop Alipay shows that "this payment method does not exist or the parameters are incorrect".

Second, reason analysis:

Ecshop Alipay shows that the problem of "this payment method does not exist or parameter error" is not a failure, but an ecshop programmer wrote a piece of code wrong, we only need to add to solve it.

This is a mistake made by the ecshop programmer. The failure to set ROOT_PATH when judging the file is caused by the failure of the file_exists function to get the correct location of the article when checking the file.

Third, the solution:

Set the following in respond.php:

If (file_exists ($plugin_file))

Change it to:

If (file_exists (ROOT_PATH.$plugin_file))

Related supplement: file_exists function is to determine whether the file exists, and ROOT_PATH is a global variable is a site directory in ecshop configuration file.

On the "Ecshop using Alipay after the success of the prompt" this payment method does not exist or the parameters are wrong "how to" this article is shared here, I hope the above content can be of some help to you, so that you can learn more knowledge, if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 252

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report