diff --git a/config/wechat.php b/config/wechat.php new file mode 100644 index 0000000..ba49fe2 --- /dev/null +++ b/config/wechat.php @@ -0,0 +1,31 @@ + [ + 'default' => [ + 'app_id' => env('APP_ID', ''), + 'secret' => env('APP_SECRET', ''), + 'token' => env('WECHAT_MINI_PROGRAM_TOKEN', ''), + 'aes_key' => env('WECHAT_MINI_PROGRAM_AES_KEY', ''), + 'response_type' => 'array', + 'log' => [ + 'level' => 'debug', + 'file' => storage_path('wechatlogs/applet'.date('Y-m-d-H').'.log'), + ], + ], + ], + 'payment' => [ + 'default' => [ + 'app_id' => env('APP_ID',''), + 'mch_id' => env('MCH_ID',''), + 'key' => env('MCH_KEY',''), + 'cert_path' => env('CERT_PATH',''), + 'key_path' => env('KEY_PATH',''), + 'notify_url' => env('NOTIFY_URL',''), + 'refund_notify_url' => env('REFUND_NOTIFY_URL',''), + 'wechat_cret_path' => env('WECHAT_CERT_PATH',''), + 'serial_number' => env('SERIAL_NUMBER',''), + ], + ], +];