Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-01 23:09:12 09月30日 Update

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.

Tags: Pay success parameters methods files articles errors how to do hints functions articles more programs programmers problems good practical code location global Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB Huawei Microsoft OPPO Reno