当前位置:网站首页>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
边栏推荐
- 【mysql学习笔记27】存储过程
- ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?
- Redisson uses the full solution - redisson official document + comments (Part 2)
- The database is locked. Is there a solution
- 【技能】创建.bat快速打开网页
- ContentType所有类型对比
- Access报表实现小计功能
- LM08丨网格系列之网格反转(精)
- Gdip - hatchBrush图案表
- The H5 page has set the font thickness style, but the wechat access style in Huawei mobile phone doesn't take effect?
猜你喜欢

论文学习——水文时间序列相似性查询的分析与研究

window c盘满了
![[recommendation system] breakthrough and imagination of deep location interactive network dpin for meituan takeout recommendation scenario](/img/10/ed857892d2e0ea72e100a4008e6d69.png)
[recommendation system] breakthrough and imagination of deep location interactive network dpin for meituan takeout recommendation scenario

STM32 uses esp01s to go to the cloud, mqtt FX debugging

Custom events of components ①

Atguigu---- scaffold --02- use scaffold (2)

Day5: scanner object, next() and nextline(), sequential structure, selection structure, circular structure
![[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

SharePoint - modify web application authentication using PowerShell

Gdip - hatchBrush图案表
随机推荐
Li Kou daily question - Day 32 -1822 Symbol of array element product
2022广东省安全员A证第三批(主要负责人)特种作业证考试题库模拟考试平台操作
How to make the two financial transactions faster
Download xshell and xftp
她就是那个「别人家的HR」|ONES 人物
力扣每日一题-第31天-202.快乐数
Redisson utilise la solution complète - redisson Documents officiels + commentaires (Partie 1)
ONES 创始人王颖奇对话《财富》(中文版):中国有没有优秀的软件?
Scala语言学习-07-构造器
How relational databases work
【R语言】年龄性别频数匹配 挑选样本 病例对照研究,对年龄性别进行频数匹配
【mysql学习笔记26】视图
Li Kou daily question - day 31 -202 Happy number
奥迪AUDI EDI 项目中供应商需要了解哪些信息?
2022 tea master (intermediate) recurrent training question bank and answers
[software] phantomjs screenshot
QT -- 1. QT connection database
三极管是一项伟大的发明
[website architecture] solve 90% of distributed transactions in one move, and introduce the working principles and application scenarios of database transactions and distributed transactions
Minecraft 1.16.5 module development (51) tile entity