PHP code example of xybingbing / weixin_pay_sdk

1. Go to this page and download the library: Download xybingbing/weixin_pay_sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xybingbing / weixin_pay_sdk example snippets




$wxpay=new xybingbing\weixin_pay($parameter);		详细请看examples/wechat.php

$wxpay=new xybingbing\weixin_app_pay($parameter);		详细请看examples/app.php

$wxpay=new xybingbing\weixin_scancode_pay($parameter);		详细请看examples/scancode.php

$wxpay=new xybingbing\weixin_pay_card($parameter);		详细请看examples/card.php

$wxpay=new xybingbing\weixin_bonus($parameter);		详细请看examples/bonus.php

$wxpay=new xybingbing\weixin_coupon($parameter);		详细请看examples/coupon.php

$wxpay=new xybingbing\weixin_payment($parameter);		详细请看examples/payment.php