PHP code example of youyiio / php-airpayee

1. Go to this page and download the library: Download youyiio/php-airpayee 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/ */

    

youyiio / php-airpayee example snippets


composer 


ini_set('date.timezone','Asia/Shanghai');

$config = array (	
	//商户编号
	'mch_no' => "",

	//商户密钥
	'secret_key' => "",
	
	//异步通知地址
	'notify_url' => "http://paysdk.airpayee.com/webpay/notify_url.php",
	
	//同步跳转
	'return_url' => "http://paysdk.airpayee.com/webpay/return_url.php",

	//编码格式,定值无需修改
	'charset' => "UTF-8"
);