当前位置:网站首页>Php laraver Wechat payment
Php laraver Wechat payment
2022-07-01 07:55:00 【C'est dur de trouver un nom.】
Paquet d'installation
composer require overtrue/laravel-wechat
Configuration
php artisan vendor:publish --provider="Overtrue\LaravelWeChat\ServiceProvider"
Utiliser(Notez la dernière version de microprimev6)
//app('easywechat.pay') Ou EasyWeChat::pay()
use Overtrue\LaravelWeChat\EasyWeChat;
//Par exemple, le paiement
$app = EasyWeChat::pay();
$config = $app->getConfig();
$data = [
'mchid' => $config['mch_id'],
'out_trade_no' => date('YmdHis'),
'appid' => $config['app_id'],
'description' => $remark,
'notify_url' => '',
'amount' => [
'total' => 1,
'currency' => 'CNY',
]
];
$app->getClient()->post('v3/pay/transactions/native, ['json' => $data])->toArray(false)
- Basé sur: MicroprimeSDK
边栏推荐
- Apple account password auto fill
- How to get a SharePoint online site created using the office365 group template
- 038 network security JS
- Custom events of components ②
- Caesar
- Basic knowledge of MATLAB
- 2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) special operation certificate examination question bank simulated examination platform operation
- Missing API interface actual development series (14): ID card real name authentication verification
- 【微服务|openfeign】Feign的日志记录
- 【批处理DOS-CMD命令-汇总和小结】-Cmd窗口中常用操作符(<、<<、&<、>、>>、&>、&、&&、||、|、()、;、@)
猜你喜欢

base64

Inftnews | from "avalanche" to Baidu "xirang", 16 major events of the meta universe in 30 years

2022电工(中级)复训题库及答案

Conscience Amway universal wheel SolidWorks model material website
![[batch dos-cmd command - summary and summary] - Common operators in the CMD window (<, < <, & <,>, > >, & >, & >, & &, ||, (),;, @)](/img/48/de19e8cc007b93a027a906d4d423b2.png)
[batch dos-cmd command - summary and summary] - Common operators in the CMD window (<, < <, & <,>, > >, & >, & >, & &, ||, (),;, @)

组件的自定义事件②

H5 页面设置了字体的粗细样式,但是在华为手机里微信打开访问样式不生效?

Principle and process of embossing

华为ModelArts训练Alexnet模型

Array: question brushing record
随机推荐
Redisson uses the full solution - redisson official document + comments (Part 2)
How to make the two financial transactions faster
Basic knowledge of MATLAB
2022危险化学品经营单位主要负责人试题及模拟考试
2022茶艺师(初级)操作证考试题库及模拟考试
Lm08 mesh series mesh inversion (fine)
[R language] two /n data merge functions
【mysql学习笔记25】sql语句优化
【mysql学习笔记28】存储函数
[microservice openfeign] feign's log record
Redisson watchdog mechanism, redisson watchdog performance problems, redisson source code analysis
Source code analysis of open source API gateway APIs IX
Access报表实现小计功能
【mysql学习笔记27】存储过程
Array: question brushing record
web254
Eigen矩阵运算库快速上手
Apple account password auto fill
【批处理DOS-CMD命令-汇总和小结】-Cmd窗口中常用操作符(<、<<、&<、>、>>、&>、&、&&、||、|、()、;、@)
力扣每日一题-第31天-1502.判断能否形成等差数列