当前位置:网站首页>php laravel微信支付
php laravel微信支付
2022-07-01 07:53: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
边栏推荐
- redisson看门狗机制,redisson看门狗性能问题,redisson源码解析
- Cyclic neural network
- 关系数据库如何工作
- Android screen adaptation (using constraintlayout), kotlin array sorting
- Browser local storage
- PWN attack and defense world int_ overflow
- Gui Gui programming (XV) - use scale to control font size changes
- 2022 tea master (intermediate) recurrent training question bank and answers
- [MySQL learning notes 26] view
- [MySQL learning notes 25] SQL statement optimization
猜你喜欢

Gui Gui programming (XV) - use scale to control font size changes
![[batch DOS CMD summary] extension variables - delay variables CMD /v:on, CMD /v:off, SETLOCAL enabledelayedexpansion, disabledelayedexpansion](/img/ce/6c9e4f2c54710610e8b1f68d6d8088.png)
[batch DOS CMD summary] extension variables - delay variables CMD /v:on, CMD /v:off, SETLOCAL enabledelayedexpansion, disabledelayedexpansion

Caesar

凸印的印刷原理及工艺介绍

redisson使用全解——redisson官方文档+注释(上篇)

Todolist classic case ①

Conscience Amway universal wheel SolidWorks model material website

Redisson utilise la solution complète - redisson Documents officiels + commentaires (Partie 1)
![[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions](/img/2c/07d729d49b1d74553decac4588074e.png)
[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions

Why some people earn nearly 10billion a year, while others earn 3000 a month: the details you ignore actually make the most money
随机推荐
Li Kou daily question - day 31 -1790 Can a string exchange be performed only once to make two strings equal
[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
Redisson uses the complete solution - redisson official documents + Notes (Part 1)
[batch DOS CMD summary] extension variables - delay variables CMD /v:on, CMD /v:off, SETLOCAL enabledelayedexpansion, disabledelayedexpansion
[kv260] generate chip temperature curve with xadc
2022 operation of refrigeration and air conditioning equipment operation of national question bank simulated examination platform
Stepsister becomes stepmother, son breaks off relationship with himself, and musk, the world's richest man, why is it so miserable?
Li Kou daily question - day 31 -1502 Judge whether an arithmetic sequence can be formed
力扣每日一题-第32天-1822.数组元素积的符号
【R语言】年龄性别频数匹配 挑选样本 病例对照研究,对年龄性别进行频数匹配
STM32 uses esp01s to go to the cloud, mqtt FX debugging
[MySQL learning notes 25] SQL statement optimization
【无标题】
【mysql学习笔记28】存储函数
How to create an exclusive vs Code theme
[chapter 72 of the flutter problem series] a solution to the problem that pictures taken in the flutter using the camera plug-in are stretched
Why some people earn nearly 10billion a year, while others earn 3000 a month: the details you ignore actually make the most money
[MySQL learning notes27] stored procedure
奥迪AUDI EDI 项目中供应商需要了解哪些信息?
Do securities account opening affect the security of account opening