当前位置:网站首页>php laravel微信支付
php laravel微信支付
2022-07-01 07:55:00 【唉,取個名字真難】
安裝包
composer require overtrue/laravel-wechat
配置
php artisan vendor:publish --provider="Overtrue\LaravelWeChat\ServiceProvider"
使用(注意微擎版本最新v6)
//app('easywechat.pay') 或者 EasyWeChat::pay()
use Overtrue\LaravelWeChat\EasyWeChat;
//例如支付
$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)
- 基於: 微擎SDK
边栏推荐
- LSTM of RNN
- 【无标题】
- 如何让两融交易更极速
- 【批处理DOS-CMD-汇总】扩展变量-延迟变量cmd /v:on、cmd /v:off、setlocal enabledelayedexpansion、DisableDelayedExpansion
- [软件] phantomjs屏幕截图
- Stepsister becomes stepmother, son breaks off relationship with himself, and musk, the world's richest man, why is it so miserable?
- ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?
- 长路漫漫、技术作伴
- Two expressions of string
- Latex table
猜你喜欢

Access报表实现小计功能

Latex table

Gru of RNN
![[programming compulsory training 3] find the longest consecutive number string in the string + the number that appears more than half of the times in the array](/img/5e/068268857b8c7c2065ba552fd23dbb.png)
[programming compulsory training 3] find the longest consecutive number string in the string + the number that appears more than half of the times in the array

Custom events of components ①

奥迪AUDI EDI 项目中供应商需要了解哪些信息?

Introduction to kubernetes resource objects and common commands (II)

038 network security JS

2022年茶艺师(中级)复训题库及答案

Gui Gui programming (XV) - use scale to control font size changes
随机推荐
十大劵商如何开户?另外,手机开户安全么?
Introduction to kubernetes resource objects and common commands (II)
How to get a SharePoint online site created using the office365 group template
2022 operation of refrigeration and air conditioning equipment operation of national question bank simulated examination platform
Missing API interface actual development series (14): ID card real name authentication verification
Eigen矩阵运算库快速上手
Access报表实现小计功能
Custom events of components ②
AUTOSAR learning record (1) – ECUM_ Init
【R语言】年龄性别频数匹配 挑选样本 病例对照研究,对年龄性别进行频数匹配
[microservice openfeign] feign's log record
ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?
Huawei modelarts training alexnet model
LSTM of RNN
base64
Software testing methods and techniques - overview of basic knowledge
力扣——求一组字符中的第一个回文字符
力扣每日一题-第32天-1822.数组元素积的符号
redisson看门狗机制,redisson看门狗性能问题,redisson源码解析
Microsoft stream - how to modify video subtitles