Based on OpenCart development Alipay, Tenpay, micro-Credit Payment parameter error problem _php instance

Source: Internet
Author: User
Tags opencart

Recently in the OpenCart integrated Alipay, Tenpay and micro-letter sweep code to pay, in fact, these plug-ins are some of the sale, but also quite expensive, or their own development integration bar, save money. But the integration process found some pits, there are opencart pits, but also to pay the SDK pit, waste a lot of time, here to tidy up a few, to the needs of people across the pit.

1. The Notify_url address in micro-credit native mode II must be a public network address

2. Alipay's notify_url cannot be in the form of query string, such as xxx/notify.php? Route=a/b, only for xxx/notify.php.

The best unset ($_get[' route ') in the synchronous callback processing in Alipay and Tenpay in 3.OpenCart is to make payment callback verification, otherwise the callback validation is unsuccessful because this extra parameter participates in the check

4. Micro-Credit Callback notify is the time to send the data stream, so get and post is not paid after the asynchronous notification over the data, in the official SDK when you can change this:

$GLOBALS ["http_raw_post_data"] = file_get_contents ("Php://input", "R");
$notify = new Paynotifycallback ();
$notify->handle (FALSE);

5.PC browser Alipay Use iOS device access will pop up Alipay client to pay, so that is not receiving asynchronous and synchronous notification, so need to determine whether the access device is mobile or client, if the mobile end of the word to be paid by the WAP way to pay

6. Tenpay Pay QQ Browser payment has been wrong parameters, has not found why.

Remind everyone in the use of OpenCart development pay treasure, Tenpay, micro-letter payment, we must be careful, thank friends to pay attention to cloud Habitat community website, this script bracket small wish you happy National Day.

Original address: E8%b4%a2%e4%bb%98%e9%80%9a%ef%bc%8c%e5%be%ae%e4%bf%a1%e6%94%af%e4%bb%98%e6%8e%a5%e5%85%a5%e9%81%87%e5%88%b0%e7 %9a%84%e5%9d%91/

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: 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.