After the payment is successful, ecshop Alipay displays "this payment method does not exist or the parameter is incorrect".

Source: Internet
Author: User

The error is as follows: the payment is successful.

 


Cause analysis

This is because the ecshop programmer has an error. The file_exists function cannot properly obtain the correct position of the document when checking the file because no ROOT_PATH is set during file determination.

Solution

In respond. php

If (file_exists ($ plugin_file ))

Change

If (file_exists (ROOT_PATH. $ plugin_file ))

Supplement: The file_exists function is used to determine whether the file exists, while ROOT_PATH is a global variable that is the configuration file of a site directory in ecshop.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.