How to set payjs WeChat jsapi paid directories

First you have to be payjs effective opening of the user. Clear payjs is doing can own Baidu.

Set method is very simple, in the background Menu - Settings directory -JSAPI set the system on the right to fill in the payment directory.

Note that: paid directories need to be configured properly to achieve the payment, or when requested JSAPI, there will be "the current page URL is not registered" error prompt.
Notes on the page has made it very clear, let's look at three settings Example:

  1. For example, payment page url is:
http://www.xxx.com/payjs/pay.php

Fill in the paid directories:

http://www.xxx.com/payjs/
  1. For example, payment page url is:
http://www.xxx.com/payjs/order/id/100.html

Fill in the paid directories:

http://www.xxx.com/payjs/order/id/
  1. For example, payment page url is:
http://www.xxx.com/payjs/order?id=100

Fill in the paid directories:

http://www.xxx.com/payjs/

By three examples, we can see that the contents after the last backslash paid URL can be removed.

Guess you like

Origin www.cnblogs.com/payjq/p/11260128.html