PHP code example of nahuomall / mideapay
1. Go to this page and download the library: Download nahuomall/mideapay 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/ */
nahuomall / mideapay example snippets
$obj = \Hyperf\Support\make(\Media\Api\Wechat::class)
$obj->setMchId('你的商户ID');
// app
$res =$obj->app->createOrder([]);
var_dump($res);