SDK
ַ
http://paysdk.weixin.qq.com/

ٴָ
١װnginx+phpfpm+php
ڡSDKѹվĿ¼
ۡ޸lib/WxPay.Config.phpΪԼ̻ŵϢ˵
ݡ֤滻certµļ
ޡ

SDKĿ¼ṹ
|-- cert
|   |-- apiclient_cert.pem
|   `-- apiclient_key.pem
|-- index.php
|-- lib
|   |-- WxPay.Api.php
|   |-- WxPay.Config.php
|   |-- WxPay.Data.php
|   |-- WxPay.Exception.php
|   `-- WxPay.Notify.php
|-- logs
|   |-- 2015-03-06.log
|   `-- 2015-03-11.log
`-- example
    |-- WxPay.JsApiPay.php
    |-- WxPay.MicroPay.php
    |-- WxPay.NativePay.php
	|-- download.php
	|-- micropay.php
	|-- native.php
	|-- native_notify.php
	|-- notify.php
	|-- orderquery.php
	|-- qrcode.php
	|-- refund.php
	|-- refundquery.php
	|-- jsapi.php
    |-- log.php
    `-- phpqrcode

Ŀ¼ܼ
lib
APIӿڷװ
WxPay.Api.php ΢֧APIӿڵķװ
WxPay.Config.php  ̻
WxPay.Data.php   װ
WxPay.Exception.php  쳣
WxPay.Notify.php    ص֪ͨ

cert
֤·֤Ե¼̻ƽ̨https://pay.weixin.qq.com/index.php/account/api_cert

example
·

example/phpqrcode
Դάphp

logs
־ļ

ָ
MCHID = '1225312702';
ʼе̻

APPID = 'wx426b3015555a46be';
ʼеģ˺APPIDӦAPPID

KEY = 'e10adc3949ba59abbe56e057f20f883e'
ʹ̻ƽ̨¼˻¼http://pay.weixin.qq.com ƽ̨õġAPIԿΪ˰ȫΪ32ַ

APPSECRET = '01c6d59a3f9024db6336662ac95c8e74'
ĲJSAPI֧openƽ̨˻ܽJSAPI֧ʱҪȡûopenidʹAPPIDӦĹƽ̨¼http://mp.weixin.qq.com ĿĻȡAppSecret

