当前位置:网站首页>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
边栏推荐
- 2022制冷与空调设备运行操作国家题库模拟考试平台操作
- LM08丨网格系列之网格反转(精)
- How do the top ten securities firms open accounts? In addition, is it safe to open a mobile account?
- [MySQL learning notes27] stored procedure
- TCP/UDP 通信问题整理
- TodoList经典案例①
- Android screen adaptation (using constraintlayout), kotlin array sorting
- Software testing methods and techniques - overview of basic knowledge
- [R language] age sex frequency matching select samples for case-control study, and perform frequency matching on age and sex
- 浏览器本地存储
猜你喜欢

Minecraft 1.16.5 module development (51) tile entity

【mysql学习笔记25】sql语句优化

Thesis learning -- Analysis and Research on similarity query of hydrological time series

Gru of RNN

The triode is a great invention

2022 test question bank and simulation test of tea master (primary) operation certificate

Android screen adaptation (using constraintlayout), kotlin array sorting

LSTM of RNN
![[kv260] generate chip temperature curve with xadc](/img/fc/e5e4648b09b1123b2d494b75a9f8f7.png)
[kv260] generate chip temperature curve with xadc

PWN attack and defense world int_ overflow
随机推荐
Kickback -- find the first palindrome character in a group of characters
She is the "HR of others" | ones character
Cadence OrCAD capture "network name" is the same, but it is not connected or connected incorrectly. The usage of nodeName of liberation scheme
【mysql学习笔记26】视图
PWN攻防世界int_overflow
2022茶艺师(初级)操作证考试题库及模拟考试
Principle and process of embossing
Missing API interface actual development series (14): ID card real name authentication verification
[R language] two /n data merge functions
Scala language learning-07-constructor
Cyclic neural network
2022年茶艺师(中级)复训题库及答案
Autosar 学习记录(1) – EcuM_Init
Thesis learning -- Analysis and Research on similarity query of hydrological time series
2022 Guangdong Provincial Safety Officer a certificate third batch (main person in charge) special operation certificate examination question bank simulated examination platform operation
力扣每日一题-第31天-1502.判断能否形成等差数列
Latex table
base64
Why some people earn nearly 10billion a year, while others earn 3000 a month: the details you ignore actually make the most money
2022制冷与空调设备运行操作国家题库模拟考试平台操作